Youtube, best audio has been failing to download when format code 251 #8485

Closed
opened 2026-02-21 03:12:24 -05:00 by deekerman · 6 comments
Owner

Originally created by @CurtisLeeBolin on GitHub (Aug 12, 2016).

  • I've verified and I assure that I'm running youtube-dl 2016.08.12
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Bug report (encountered problems with youtube-dl)

$ youtube-dl -v http://youtu.be/WPW4-JUIPys
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://youtu.be/WPW4-JUIPys']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.08.12
[debug] Git HEAD: 3cddb8d
[debug] Python version 3.5.2 - Linux-4.7.0-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.1.2, ffprobe 3.1.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] WPW4-JUIPys: Downloading webpage
[youtube] WPW4-JUIPys: Downloading video info webpage
[youtube] WPW4-JUIPys: Extracting video information
[youtube] WPW4-JUIPys: Downloading MPD manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on 'https://r3---sn-n0qqxoapo3-v3je.googlevideo.com/videoplayback?id=58f5b8f895083f2b&itag=136&source=youtube&requiressl=yes&initcwndbps=2358750&mn=sn-n0qqxoapo3-v3je&mm=31&ms=au&mv=m&shardbypass=yes&pl=24&pcm2cms=yes&hcs=yes&ratebypass=yes&mime=video/mp4&gir=yes&clen=3190983026&lmt=1405514947008010&dur=43140.163&sver=3&key=dg_yt0&mt=1470997842&fexp=9419452,9422596,9428398,9429745,9431012,9433096,9433221,9433946,9435253,9435526,9436618,9437058,9437553,9438327,9438662,9438805,9438838,9439434,9439580,9439813,9439957,9440367,9440795,9440927,9441399,9441535,9442144,9442424,9442426,9442857,9443748,9444728&upn=wl6DZGByh6o&signature=854CC6023C3041DBEEB760F476916EFF0091DCBC.84CF72A3BE41911B6B7FB78B9D88A2809EB8E56C&ip=74.195.243.163&ipbits=0&expire=1471019803&sparams=ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mn,mm,ms,mv,shardbypass,pl,pcm2cms,hcs,ratebypass,mime,gir,clen,lmt,dur'
[download] Peaceful FROGS & CRICKETS Sleep Sounds - 12 Hours - The Sounds of Nature, to Help Relax and Unwind-WPW4-JUIPys.f136.mp4 has already been downloaded
[download] 100% of 2.97GiB
[debug] Invoking downloader on 'https://r3---sn-n0qqxoapo3-v3je.googlevideo.com/videoplayback?id=58f5b8f895083f2b&itag=251&source=youtube&requiressl=yes&initcwndbps=2358750&mn=sn-n0qqxoapo3-v3je&mm=31&ms=au&mv=m&shardbypass=yes&pl=24&pcm2cms=yes&hcs=yes&ratebypass=yes&mime=audio/webm&gir=yes&clen=883743384&lmt=1423711662330808&dur=43140.260&sver=3&key=dg_yt0&mt=1470997842&fexp=9419452,9422596,9428398,9429745,9431012,9433096,9433221,9433946,9435253,9435526,9436618,9437058,9437553,9438327,9438662,9438805,9438838,9439434,9439580,9439813,9439957,9440367,9440795,9440927,9441399,9441535,9442144,9442424,9442426,9442857,9443748,9444728&upn=wl6DZGByh6o&signature=724970BA4F85F6752BF251F987CA93DFFFC411FA.6345F1774657BA145FD78B98DBEB7CA9F0990C02&ip=74.195.243.163&ipbits=0&expire=1471019803&sparams=ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mn,mm,ms,mv,shardbypass,pl,pcm2cms,hcs,ratebypass,mime,gir,clen,lmt,dur'
[download] Got server HTTP error. Retrying (attempt 1 of 10)...
[download] Got server HTTP error. Retrying (attempt 2 of 10)...
[download] Got server HTTP error. Retrying (attempt 3 of 10)...
[download] Got server HTTP error. Retrying (attempt 4 of 10)...
[download] Got server HTTP error. Retrying (attempt 5 of 10)...
[download] Got server HTTP error. Retrying (attempt 6 of 10)...
[download] Got server HTTP error. Retrying (attempt 7 of 10)...
[download] Got server HTTP error. Retrying (attempt 8 of 10)...
[download] Got server HTTP error. Retrying (attempt 9 of 10)...
[download] Got server HTTP error. Retrying (attempt 10 of 10)...
ERROR: giving up after 10 retries
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/lee/Projects/youtube-dl/youtube_dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/home/lee/Projects/youtube-dl/youtube_dl/__init__.py", line 433, in main
    _real_main(argv)
  File "/home/lee/Projects/youtube-dl/youtube_dl/__init__.py", line 423, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 1786, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 702, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 748, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 1430, in process_video_result
    self.process_info(new_info)
  File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 1688, in process_info
    partial_success = dl(fname, new_info)
  File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 1636, in dl
    return fd.download(name, info)
  File "/home/lee/Projects/youtube-dl/youtube_dl/downloader/common.py", line 354, in download
    return self.real_download(filename, info_dict)
  File "/home/lee/Projects/youtube-dl/youtube_dl/downloader/http.py", line 128, in real_download
    self.report_error('giving up after %s retries' % retries)
  File "/home/lee/Projects/youtube-dl/youtube_dl/downloader/common.py", line 162, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 565, in report_error
    self.trouble(error_message, tb)
  File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 527, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

$ youtube-dl --list-format http://youtu.be/WPW4-JUIPys                                                                                                                                                                                                                            
[youtube] WPW4-JUIPys: Downloading webpage
[youtube] WPW4-JUIPys: Downloading video info webpage
[youtube] WPW4-JUIPys: Extracting video information
[youtube] WPW4-JUIPys: Downloading MPD manifest
[info] Available formats for WPW4-JUIPys:
format code  extension  resolution note
249          webm       audio only DASH audio  120k , opus @ 50k (48000Hz), 291.89MiB
250          webm       audio only DASH audio  136k , opus @ 70k (48000Hz), 375.10MiB
140          m4a        audio only DASH audio  170k , m4a_dash container, mp4a.40.2@128k (44100Hz), 660.49MiB
171          webm       audio only DASH audio  193k , vorbis@128k (44100Hz), 662.64MiB
251          webm       audio only DASH audio  226k , opus @160k (48000Hz), 842.80MiB
160          mp4        256x144    DASH video  262k , avc1.42c00c, 15fps, video only, 480.99MiB
278          webm       256x144    DASH video  301k , webm container, vp9, 15fps, video only, 206.40MiB
242          webm       426x240    DASH video  324k , vp9, 30fps, video only, 358.62MiB
134          mp4        640x360    DASH video  376k , avc1.4d401e, 30fps, video only, 785.70MiB
243          webm       640x360    DASH video  399k , vp9, 30fps, video only, 751.22MiB
133          mp4        426x240    DASH video  410k , avc1.4d4015, 30fps, video only, 1.16GiB
244          webm       854x480    DASH video  548k , vp9, 30fps, video only, 1.21GiB
135          mp4        854x480    DASH video  661k , avc1.4d401f, 30fps, video only, 1.45GiB
247          webm       1280x720   DASH video  962k , vp9, 30fps, video only, 1.84GiB
136          mp4        1280x720   DASH video 1377k , avc1.4d401f, 30fps, video only, 2.97GiB
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)

Format code 251 is the problematic audio. Every video I have tried that has 251 as the best audio has failed to download with the same error. I was able to download all other audio streams (249, 250, 140, and 171)

Originally created by @CurtisLeeBolin on GitHub (Aug 12, 2016). - [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.08.12** - [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections - [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones - [x] Bug report (encountered problems with youtube-dl) --- ``` $ youtube-dl -v http://youtu.be/WPW4-JUIPys [debug] System config: [] [debug] User config: [] [debug] Command-line args: ['-v', 'http://youtu.be/WPW4-JUIPys'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2016.08.12 [debug] Git HEAD: 3cddb8d [debug] Python version 3.5.2 - Linux-4.7.0-1-ARCH-x86_64-with-arch [debug] exe versions: ffmpeg 3.1.2, ffprobe 3.1.2, rtmpdump 2.4 [debug] Proxy map: {} [youtube] WPW4-JUIPys: Downloading webpage [youtube] WPW4-JUIPys: Downloading video info webpage [youtube] WPW4-JUIPys: Extracting video information [youtube] WPW4-JUIPys: Downloading MPD manifest WARNING: Requested formats are incompatible for merge and will be merged into mkv. [debug] Invoking downloader on 'https://r3---sn-n0qqxoapo3-v3je.googlevideo.com/videoplayback?id=58f5b8f895083f2b&itag=136&source=youtube&requiressl=yes&initcwndbps=2358750&mn=sn-n0qqxoapo3-v3je&mm=31&ms=au&mv=m&shardbypass=yes&pl=24&pcm2cms=yes&hcs=yes&ratebypass=yes&mime=video/mp4&gir=yes&clen=3190983026&lmt=1405514947008010&dur=43140.163&sver=3&key=dg_yt0&mt=1470997842&fexp=9419452,9422596,9428398,9429745,9431012,9433096,9433221,9433946,9435253,9435526,9436618,9437058,9437553,9438327,9438662,9438805,9438838,9439434,9439580,9439813,9439957,9440367,9440795,9440927,9441399,9441535,9442144,9442424,9442426,9442857,9443748,9444728&upn=wl6DZGByh6o&signature=854CC6023C3041DBEEB760F476916EFF0091DCBC.84CF72A3BE41911B6B7FB78B9D88A2809EB8E56C&ip=74.195.243.163&ipbits=0&expire=1471019803&sparams=ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mn,mm,ms,mv,shardbypass,pl,pcm2cms,hcs,ratebypass,mime,gir,clen,lmt,dur' [download] Peaceful FROGS & CRICKETS Sleep Sounds - 12 Hours - The Sounds of Nature, to Help Relax and Unwind-WPW4-JUIPys.f136.mp4 has already been downloaded [download] 100% of 2.97GiB [debug] Invoking downloader on 'https://r3---sn-n0qqxoapo3-v3je.googlevideo.com/videoplayback?id=58f5b8f895083f2b&itag=251&source=youtube&requiressl=yes&initcwndbps=2358750&mn=sn-n0qqxoapo3-v3je&mm=31&ms=au&mv=m&shardbypass=yes&pl=24&pcm2cms=yes&hcs=yes&ratebypass=yes&mime=audio/webm&gir=yes&clen=883743384&lmt=1423711662330808&dur=43140.260&sver=3&key=dg_yt0&mt=1470997842&fexp=9419452,9422596,9428398,9429745,9431012,9433096,9433221,9433946,9435253,9435526,9436618,9437058,9437553,9438327,9438662,9438805,9438838,9439434,9439580,9439813,9439957,9440367,9440795,9440927,9441399,9441535,9442144,9442424,9442426,9442857,9443748,9444728&upn=wl6DZGByh6o&signature=724970BA4F85F6752BF251F987CA93DFFFC411FA.6345F1774657BA145FD78B98DBEB7CA9F0990C02&ip=74.195.243.163&ipbits=0&expire=1471019803&sparams=ip,ipbits,expire,id,itag,source,requiressl,initcwndbps,mn,mm,ms,mv,shardbypass,pl,pcm2cms,hcs,ratebypass,mime,gir,clen,lmt,dur' [download] Got server HTTP error. Retrying (attempt 1 of 10)... [download] Got server HTTP error. Retrying (attempt 2 of 10)... [download] Got server HTTP error. Retrying (attempt 3 of 10)... [download] Got server HTTP error. Retrying (attempt 4 of 10)... [download] Got server HTTP error. Retrying (attempt 5 of 10)... [download] Got server HTTP error. Retrying (attempt 6 of 10)... [download] Got server HTTP error. Retrying (attempt 7 of 10)... [download] Got server HTTP error. Retrying (attempt 8 of 10)... [download] Got server HTTP error. Retrying (attempt 9 of 10)... [download] Got server HTTP error. Retrying (attempt 10 of 10)... ERROR: giving up after 10 retries File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/lee/Projects/youtube-dl/youtube_dl/__main__.py", line 19, in <module> youtube_dl.main() File "/home/lee/Projects/youtube-dl/youtube_dl/__init__.py", line 433, in main _real_main(argv) File "/home/lee/Projects/youtube-dl/youtube_dl/__init__.py", line 423, in _real_main retcode = ydl.download(all_urls) File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 1786, in download url, force_generic_extractor=self.params.get('force_generic_extractor', False)) File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 702, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 748, in process_ie_result return self.process_video_result(ie_result, download=download) File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 1430, in process_video_result self.process_info(new_info) File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 1688, in process_info partial_success = dl(fname, new_info) File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 1636, in dl return fd.download(name, info) File "/home/lee/Projects/youtube-dl/youtube_dl/downloader/common.py", line 354, in download return self.real_download(filename, info_dict) File "/home/lee/Projects/youtube-dl/youtube_dl/downloader/http.py", line 128, in real_download self.report_error('giving up after %s retries' % retries) File "/home/lee/Projects/youtube-dl/youtube_dl/downloader/common.py", line 162, in report_error self.ydl.report_error(*args, **kargs) File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 565, in report_error self.trouble(error_message, tb) File "/home/lee/Projects/youtube-dl/youtube_dl/YoutubeDL.py", line 527, in trouble tb_data = traceback.format_list(traceback.extract_stack()) ``` --- ``` $ youtube-dl --list-format http://youtu.be/WPW4-JUIPys [youtube] WPW4-JUIPys: Downloading webpage [youtube] WPW4-JUIPys: Downloading video info webpage [youtube] WPW4-JUIPys: Extracting video information [youtube] WPW4-JUIPys: Downloading MPD manifest [info] Available formats for WPW4-JUIPys: format code extension resolution note 249 webm audio only DASH audio 120k , opus @ 50k (48000Hz), 291.89MiB 250 webm audio only DASH audio 136k , opus @ 70k (48000Hz), 375.10MiB 140 m4a audio only DASH audio 170k , m4a_dash container, mp4a.40.2@128k (44100Hz), 660.49MiB 171 webm audio only DASH audio 193k , vorbis@128k (44100Hz), 662.64MiB 251 webm audio only DASH audio 226k , opus @160k (48000Hz), 842.80MiB 160 mp4 256x144 DASH video 262k , avc1.42c00c, 15fps, video only, 480.99MiB 278 webm 256x144 DASH video 301k , webm container, vp9, 15fps, video only, 206.40MiB 242 webm 426x240 DASH video 324k , vp9, 30fps, video only, 358.62MiB 134 mp4 640x360 DASH video 376k , avc1.4d401e, 30fps, video only, 785.70MiB 243 webm 640x360 DASH video 399k , vp9, 30fps, video only, 751.22MiB 133 mp4 426x240 DASH video 410k , avc1.4d4015, 30fps, video only, 1.16GiB 244 webm 854x480 DASH video 548k , vp9, 30fps, video only, 1.21GiB 135 mp4 854x480 DASH video 661k , avc1.4d401f, 30fps, video only, 1.45GiB 247 webm 1280x720 DASH video 962k , vp9, 30fps, video only, 1.84GiB 136 mp4 1280x720 DASH video 1377k , avc1.4d401f, 30fps, video only, 2.97GiB 17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k 36 3gp 320x180 small , mp4v.20.3, mp4a.40.2 43 webm 640x360 medium , vp8.0, vorbis@128k 18 mp4 640x360 medium , avc1.42001E, mp4a.40.2@ 96k 22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best) ``` --- Format code 251 is the problematic audio. Every video I have tried that has 251 as the best audio has failed to download with the same error. I was able to download all other audio streams (249, 250, 140, and 171)
Author
Owner

@yan12125 commented on GitHub (Aug 12, 2016):

Got the same error. For this video my Firefox always plays audio format 140. I don't know how to make YouTube play the best audio (251). Anyway it may be a YouTube server side error and it might be fixed soon.

@yan12125 commented on GitHub (Aug 12, 2016): Got the same error. For this video my Firefox always plays audio format 140. I don't know how to make YouTube play the best audio (251). Anyway it may be a YouTube server side error and it might be fixed soon.
Author
Owner

@yan12125 commented on GitHub (Aug 12, 2016):

Oh, from Firefox's debug console I see there's a request to format 251. It returns 500 Internal Server Error and YouTube's player decides to play the next available format. I'm closing this as it's not youtube-dl's fault and we can do nothing for that.

@yan12125 commented on GitHub (Aug 12, 2016): Oh, from Firefox's debug console I see there's a request to format 251. It returns 500 Internal Server Error and YouTube's player decides to play the next available format. I'm closing this as it's not youtube-dl's fault and we can do nothing for that.
Author
Owner

@CurtisLeeBolin commented on GitHub (Aug 12, 2016):

This has been a problem for over 2 weeks. I think youtube-dl should fallback to a lower audio quality or something else.

@CurtisLeeBolin commented on GitHub (Aug 12, 2016): This has been a problem for over 2 weeks. I think youtube-dl should fallback to a lower audio quality or something else.
Author
Owner

@CurtisLeeBolin commented on GitHub (Aug 12, 2016):

@yan12125, please reopen. 2 weeks is not a temporary youtube server problem.

@CurtisLeeBolin commented on GitHub (Aug 12, 2016): @yan12125, please reopen. 2 weeks is not a temporary youtube server problem.
Author
Owner

@yan12125 commented on GitHub (Aug 12, 2016):

I see lots of similar reports on this issue tracker. Let me investigate them all.

@yan12125 commented on GitHub (Aug 12, 2016): I see lots of similar reports on this issue tracker. Let me investigate them all.
Author
Owner

@yan12125 commented on GitHub (Aug 13, 2016):

All other examples in this issue tracker now work fine. I've leave some comments at #3721. Please go there for further discussions.

@yan12125 commented on GitHub (Aug 13, 2016): All other examples in this issue tracker now work fine. I've leave some comments at #3721. Please go there for further discussions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#8485
No description provided.