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, requested format #1548

Closed
ghost opened this issue Oct 3, 2013 · 8 comments
Closed

Error, requested format #1548

ghost opened this issue Oct 3, 2013 · 8 comments

Comments

@ghost
Copy link

@ghost ghost commented Oct 3, 2013

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', '-f', '35', '-o', '4189410114_%(title)s.%(ext)s', 'http://www.youtube.com/watch?v=D38EUIll1pM']
[debug] youtube-dl version 2013.10.01.1
[debug] Python version 2.7.3 - Linux-2.6.32-308.8.2.el5.028stab101.1-x86_64-with-debian-7.1
[debug] Proxy map: {}
ERROR: requested format not available; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 334, in extract_info
ie_result = ie.extract(url)
File "./youtube-dl/youtube_dl/extractor/common.py", line 103, in extract
return self._real_extract(url)
File "./youtube-dl/youtube_dl/extractor/youtube.py", line 1459, in _real_extract
video_url_list = self._get_video_url_list(url_map)
File "./youtube-dl/youtube_dl/extractor/youtube.py", line 1233, in _get_video_url_list
raise ExtractorError(u'requested format not available')
ExtractorError: requested format not available; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

My version is up-to-date. Error is once again not...

@phihag
Copy link
Contributor

@phihag phihag commented Oct 3, 2013

This invocation works fine for me. Most likely, YouTube doesn't have format 35 on your location. What is the output of

youtube-dl --list-formats D38EUIll1pM

for you?

Remove -f 35 or specify multiple fallback formats with slashes, like -f 35/34/5.

@ghost
Copy link
Author

@ghost ghost commented Oct 3, 2013

Noo.. this format for concrete example is once again not
my output:

./youtube-dl --list-formats D38EUIll1pM
[youtube] Setting language
[youtube] D38EUIll1pM: Downloading video webpage
[youtube] D38EUIll1pM: Downloading video info webpage
[youtube] D38EUIll1pM: Extracting video information
[youtube] D38EUIll1pM: Encrypted signatures detected.
Available formats:
35 : flv [480x854]
44 : webm [480x854]
34 : flv [360x640]
18 : mp4 [360x640]
43 : webm [360x640]
5 : flv [240x400]
36 : 3gp [240x320]
17 : 3gp [144x176]
135 : mp4 [480p](DASH Video)
134 : mp4 [360p](DASH Video)
133 : mp4 [240p](DASH Video)
160 : mp4 [192p](DASH Video)
141 : mp4 [256k](DASH Audio)
140 : mp4 [128k](DASH Audio)
139 : mp4 [48k](DASH Audio)

@ghost
Copy link
Author

@ghost ghost commented Oct 3, 2013

look at this, youtube "lost" sometimes itag 35 (for example last request)...
http://pastebin.com/uNk4nJyc

@phihag
Copy link
Contributor

@phihag phihag commented Oct 3, 2013

Sorry, I don't understand your first sentence: Once again not what?

@ghost
Copy link
Author

@ghost ghost commented Oct 3, 2013

Some queries work but sometimes is problem, look my last comment and pastebin example.

@phihag
Copy link
Contributor

@phihag phihag commented Oct 3, 2013

What do you suggest should youtube-dl do when it encounters a video whose metadata is in place, but that's actually not downloadable?

@ghost
Copy link
Author

@ghost ghost commented Oct 3, 2013

Maybe automatic download of a similar format available?

@phihag
Copy link
Contributor

@phihag phihag commented Oct 3, 2013

@amkrankruleuen Well, you specifically asked for format 35 in your command line, so youtube-dl is trying to download that. Note that I was wrong in my prior assessment, the problem starts before the downloading in that YouTube doesn't include the URL for version 35 in its answer.

Simply use multiple formats (or no -f at all, that will automatically pick the best version) with slashes as described above to get youtube-dl to fall back to other versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.