Thanks to visit codestin.com
Credit goes to github.com

Skip to content

format selection by bitrate (vbr>123) appears to be broken #33054

@wellsyw

Description

@wellsyw

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

D:\ffmpeg-bin>youtube-dl -F eU4NVFsnhg8
[youtube] eU4NVFsnhg8: Downloading webpage
[youtube] eU4NVFsnhg8: Downloading TVHTML5 API JSON
[info] Available formats for eU4NVFsnhg8:
format code  extension  resolution note
251-drc      webm       audio only audio_quality_medium  118k , webm_dash container, opus  (48000Hz), 507.27MiB
251          webm       audio only audio_quality_medium  118k , webm_dash container, opus  (48000Hz), 509.79MiB
140          m4a        audio only audio_quality_medium  129k , m4a_dash container, mp4a.40.2 (44100Hz), 555.63MiB
140-drc      m4a        audio only audio_quality_medium  129k , m4a_dash container, mp4a.40.2 (44100Hz), 555.63MiB
160          mp4        256x144    144p  120k , mp4_dash container, avc1.4d400c, 30fps, video only, 516.86MiB
243          webm       640x360    360p  440k , webm_dash container, vp9, 30fps, video only, 1.84GiB
134          mp4        640x360    360p  584k , mp4_dash container, avc1.4d401e, 30fps, video only, 2.45GiB
136          mp4        1280x720   720p 2187k , mp4_dash container, avc1.64001f, 30fps, video only, 9.17GiB
18           mp4        640x360    360p  712k , avc1.42001E, 30fps, mp4a.40.2 (44100Hz) (best)

D:\ffmpeg-bin>youtube-dl -v -f "136[vbr>800]+140" eU4NVFsnhg8
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', '136[vbr>800]+140', 'eU4NVFsnhg8']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2025.02.07 [711e72c29] (single file build)
[debug] ** This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl.
[debug] ** For support, visit the main site.
[debug] Python 3.4.4 (CPython AMD64 32bit) - Windows-10-10.0.22621 - OpenSSL 1.0.2d 9 Jul 2015
[debug] exe versions: ffmpeg n5.1.6-9-gdcdfd7fb62-20241109, ffprobe n5.1.6-9-gdcdfd7fb62-20241109
[debug] Proxy map: {}
[youtube] eU4NVFsnhg8: Downloading webpage
[youtube] eU4NVFsnhg8: Downloading TVHTML5 API JSON
[debug] [youtube] Decrypted nsig OkcttjHjr5dCOAIQ => hZR2vNaM02p0Mg
[debug] [youtube] Decrypted nsig t4nZTSgjVyqH7cDm => SClZOjSMp7mEHw
ERROR: requested format not available
Traceback (most recent call last):
  File "D:\a\ytdl-nightly\ytdl-nightly\youtube_dl\YoutubeDL.py", line 879, in wrapper
  File "D:\a\ytdl-nightly\ytdl-nightly\youtube_dl\YoutubeDL.py", line 986, in __extract_info
  File "D:\a\ytdl-nightly\ytdl-nightly\youtube_dl\YoutubeDL.py", line 1020, in process_ie_result
  File "D:\a\ytdl-nightly\ytdl-nightly\youtube_dl\YoutubeDL.py", line 1856, in process_video_result
youtube_dl.utils.ExtractorError: requested format not available

Description

-f 136[vbr>800]+140 should match the available video format (it is 2187 kbps), shouldn't it? Yet it doesn't. 136[vbr<800] doesn't give a match either.

The same command-line works in yt-dlp, it seems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions