Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: YouTube said: Invalid parameters. #751

Closed
kid1412-net opened this issue Mar 23, 2013 · 8 comments
Closed

ERROR: YouTube said: Invalid parameters. #751

kid1412-net opened this issue Mar 23, 2013 · 8 comments

Comments

@kid1412-net
Copy link

@kid1412-net kid1412-net commented Mar 23, 2013

Thanks for coding such a great video download program. I tried to download this video but it's not working with latest version of youtube-dl.

http://www.youtube.com/watch?v=1XSa-u2ZgRc

Could you please fix this error?

Best Regards,
Hai

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 24, 2013

It works for me. Could you post the entire command and the output when you append the -v option?

@kid1412-net
Copy link
Author

@kid1412-net kid1412-net commented Mar 25, 2013

Thanks for your response. Here's the code I used:

youtube-dl -vt "http://www.youtube.com/watch?v=1XSa-u2ZgRc" --format 18

I just want to save this video to .MP4 file.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 25, 2013

Well, I just copied it ant it works for me. Could you post the entire output you get, something like:

$youtube-dl -vt "http://www.youtube.com/watch?v=1XSa-u2ZgRc" --format 18
[debug] youtube-dl version 2013.02.25
[debug] Python version 2.7.2 - Darwin-11.4.2-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] 1XSa-u2ZgRc: Downloading video webpage
[youtube] 1XSa-u2ZgRc: Downloading video info webpage
[youtube] 1XSa-u2ZgRc: Extracting video information
[download] Destination: Prof. Harold W. Kroto at Naresuan part 2-1XSa-u2ZgRc.mp4
[download]  22.7% of 145.24M at  342.60k/s ETA 05:35

It may be your system, also check that the version is the latest, if not, run youtube-dl -U.

@Mariusz-W
Copy link

@Mariusz-W Mariusz-W commented Jun 12, 2013

The problem is is still there also with the most recent version of youtube-dl. Verified on several computers in different operating systems.

On Centos:

youtube-dl -vt -F actVLwGDZQYk
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-vt', '-F', 'actVLwGDZQYk']
[debug] youtube-dl version 2013.05.23
[debug] Python version 3.3.0 - Linux-2.6.18-348.6.1.el5-i686-with-redhat-5.9-Final
[debug] Proxy map: {}
[youtube] Setting language
[youtube] actVLwGDZQYk: Downloading video webpage
[youtube] actVLwGDZQYk: Downloading video info webpage
ERROR: YouTube said: Invalid parameters.
Traceback (most recent call last):
File "/opt/bin/youtube-dl/youtube_dl/FileDownloader.py", line 462, in extract_info
ie_result = ie.extract(url)
File "/opt/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 99, in extract
return self._real_extract(url)
File "/opt/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 564, in _real_extract
raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0])
youtube_dl.utils.ExtractorError: YouTube said: Invalid parameters.

On Cygwin (Windows 7):

youtube-dl -vt -F actVLwGDZQYk
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-vt', '-F', 'actVLwGDZQYk']
[debug] youtube-dl version 2013.05.23
[debug] Python version 2.7.3 - CYGWIN_NT-6.1-WOW64-1.7.20-0.266-5-3-i686-32bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] actVLwGDZQYk: Downloading video webpage
[youtube] actVLwGDZQYk: Downloading video info webpage
ERROR: YouTube said: Invalid parameters.
Traceback (most recent call last):
File "/home/era/bin/youtube-dl/youtube_dl/init.py", line 556, in _real_main
cwd=os.path.dirname(os.path.abspath(file)))
File "/usr/lib/python2.7/subprocess.py", line 679, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 20] Not a directory: '/home/era/bin/youtube-dl/youtube_dl'
Traceback (most recent call last):
File "/home/era/bin/youtube-dl/youtube_dl/FileDownloader.py", line 462, in extract_info
ie_result = ie.extract(url)
File "/home/era/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 99, in extract
return self._real_extract(url)
File "/home/era/bin/youtube-dl/youtube_dl/InfoExtractors.py", line 564, in _real_extract
raise ExtractorError(u'YouTube said: %s' % video_info['reason'][0])
ExtractorError: YouTube said: Invalid parameters.

On Windows 7:

F:>youtube-dl -vt -F actVLwGDZQYk
[debug] youtube-dl version 2013.02.02
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] actVLwGDZQYk: Downloading video webpage
[youtube] actVLwGDZQYk: Downloading video info webpage
ERROR: YouTube said: Invalid parameters.
File "main.py", line 17, in
File "youtube_dl__init__.pyo", line 512, in main
File "youtube_dl__init__.pyo", line 496, in _real_main
File "youtube_dl\FileDownloader.pyo", line 505, in download
File "youtube_dl\InfoExtractors.pyo", line 93, in extract
File "youtube_dl\InfoExtractors.pyo", line 401, in _real_extract
File "youtube_dl\FileDownloader.pyo", line 230, in trouble

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 12, 2013

Thanks for the report, I can reproduce it now.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 12, 2013

@Mariusz-W the actual video id is actVLwGDZQY, not actVLwGDZQYk, running youtube-dl -vt -F actVLwGDZQY works correctly.

I'm closing this, if the error continues to show, I'll reopen it.

@jaimeMF jaimeMF closed this Jun 12, 2013
@Mariusz-W
Copy link

@Mariusz-W Mariusz-W commented Jun 12, 2013

Thanks! A pity that youtube-dl throws error so cryptic messages.

I have a suggestion: since the "wrong" YouTube locator "
http://youtube.com/watch?v=actVLwGDZQYk" was picked by clicking on a
YouTube link, it would be desirable to put a mechanism into `youtube-dl'
that tries to rectify this similarly to what YouTube does: I verified that
if I paste "http://youtube.com/watch?v=actVLwGDZQYk" in the navigation
toolbar in my browser, YouTube opens a correct URL.

MW

On Wed, Jun 12, 2013 at 4:17 AM, Jaime Marquínez Ferrándiz <
notifications@github.com> wrote:

@Mariusz-W https://github.com/Mariusz-W the actual video id is
actVLwGDZQY, not actVLwGDZQYk, running youtube-dl -vt -F actVLwGDZQYworks correctly.

I'm closing this, if the error continues to show, I'll reopen it.


Reply to this email directly or view it on GitHubhttps://github.com//issues/751#issuecomment-19319396
.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 12, 2013

It's not a bad idea, the problem is that we extract the video id from the URL we receive and the following steps use the wrong id then. It can be easily solved if we only take the first 11 characters of the id, but I'm not sure if all the ids have this length.

@ytdl-org ytdl-org deleted a comment from clueserver Jan 15, 2018
@ytdl-org ytdl-org deleted a comment from clueserver Jan 15, 2018
@ytdl-org ytdl-org locked and limited conversation to collaborators Jan 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.