-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
YouTube format 22 is missing for some videos #30442
Comments
Might that be because that format is not being distributed by YT for those videos? yt-dl just plays back what YT tells it regarding the available formats.. |
The 2 examples have the format 22 |
FWIW, with the youtube-dl fork yt-dlp, both videos can be downloaded in format 22. yt-dlp -v -f 22 https://www.youtube.com/watch?v=jgpJVI3tDbY
[debug] Command-line config: ['-v', '-f', '22', 'https://www.youtube.com/watch?v=jgpJVI3tDbY']
[debug] User config file: /home/nico/.config/yt-dlp/config
[debug] User config: ['-o', '/dev/shm/test-dlp/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--no-mtime', '--add-metadata', '--convert-thumbnails', 'jpg', '--embed-thumbnail', '--ppa', 'ThumbnailsConvertor:-q:v 1', '--ppa', 'ffmpeg:-metadata synopsis=""', '--force-ipv4', '--sponsorblock-remove', 'all', '--console-title', '--cookies-from-browser', 'firefox', '--downloader', 'aria2c', '--downloader-args', 'aria2c:-x 10 -s 10 -j 10 -k 1M --log-level=info --file-allocation=none']
[Cookies] Extracting cookies from firefox
[debug] Extracting cookies from: "/home/nico/.mozilla/firefox/ivy4ozwp.default-release-1/cookies.sqlite"
[Cookies] Extracted 167 cookies from firefox
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2021.12.29 [6223f67a8] (zip)
[debug] Python version 3.6.9 (CPython 64bit) - Linux-5.4.0-91-generic-x86_64-with-LinuxMint-19.3-tricia
[debug] exe versions: ffmpeg N-104865-g571e8ca2dd-Nico-20211216-with-non-monotonous-DTS-Fix (fdk,setts), ffprobe N-104865-g571e8ca2dd-Nico-20211216-with-non-monotonous-DTS-Fix, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome, secretstorage, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=jgpJVI3tDbY
[youtube] jgpJVI3tDbY: Downloading webpage
[youtube] jgpJVI3tDbY: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[SponsorBlock] Fetching SponsorBlock segments
[debug] SponsorBlock query: https://sponsor.ajay.app/api/skipSegments/74a2?service=YouTube&categories=%5B%22outro%22%2C+%22intro%22%2C+%22filler%22%2C+%22interaction%22%2C+%22selfpromo%22%2C+%22preview%22%2C+%22music_offtopic%22%2C+%22sponsor%22%5D
[SponsorBlock] No segments were found in the SponsorBlock database
[info] jgpJVI3tDbY: Downloading 1 format(s): 22
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: /dev/shm/test-dlp/The Best of Classical Music 🎻 Mozart, Beethoven, Bach, Chopin, Vivaldi 🎹 Most Famous Classic Pieces.webp
[ThumbnailsConvertor] Converting thumbnail "/dev/shm/test-dlp/The Best of Classical Music 🎻 Mozart, Beethoven, Bach, Chopin, Vivaldi 🎹 Most Famous Classic Pieces.webp" to jpg
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -f image2 -pattern_type none -i 'file:/dev/shm/test-dlp/The Best of Classical Music 🎻 Mozart, Beethoven, Bach, Chopin, Vivaldi 🎹 Most Famous Classic Pieces.webp' -bsf:v mjpeg2jpeg -movflags +faststart -q:v 1 -metadata synopsis= 'file:/dev/shm/test-dlp/The Best of Classical Music 🎻 Mozart, Beethoven, Bach, Chopin, Vivaldi 🎹 Most Famous Classic Pieces.jpg'
Deleting original file /dev/shm/test-dlp/The Best of Classical Music 🎻 Mozart, Beethoven, Bach, Chopin, Vivaldi 🎹 Most Famous Classic Pieces.webp (pass -k to keep)
[debug] Invoking downloader on "https://rr2---sn-5hne6nsk.googlevideo.com/videoplayback?expire=1640807509&ei=9WfMYabHEIHJ1wLugL7QBQ&ip=<REDACTED>&id=o-ALfaBc8AZad4pfqhM2kJ2aMP_i4detrv1FPOcr_e18ig&itag=22&source=youtube&requiressl=yes&mh=uJ&mm=31%2C29&mn=sn-5hne6nsk%2Csn-5hnekn7z&ms=au%2Crdu&mv=m&mvi=2&pl=19&initcwndbps=2200000&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=12499.371&lmt=1628984091657916&mt=1640785521&fvip=2&fexp=24001373%2C24007246&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAP5HHcdqxrqO1YmuNEGkVLM45BpMSLhWRpfLpnXpS01tAiBMxxGUNADsZvHm4VI_ZBBcGTMQppKiAtmELvJ8Aj8kkQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgM93lwzPzkvsq6FxAgzRmfghuXvkFvfZ0mAWqGfnQ_o8CIG3hqzzxqLBJpicGeL_pkB_kuiWDQ2IpxdLDDD99clMi"
[download] Destination: /dev/shm/test-dlp/The Best of Classical Music 🎻 Mozart, Beethoven, Bach, Chopin, Vivaldi 🎹 Most Famous Classic Pieces.mp4
[debug] aria2c command line: aria2c -c --console-log-level=warn --summary-interval=0 --download-result=hide --file-allocation=none -x16 -j16 -s16 --min-split-size 1M --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Encoding: gzip, deflate' --header 'Accept-Language: en-us,en;q=0.5' --interface 0.0.0.0 --check-certificate=true --remote-time=false --show-console-readout=true -x 10 -s 10 -j 10 -k 1M --log-level=info --file-allocation=none --dir /dev/shm/test-dlp/ --out './The Best of Classical Music 🎻 Mozart, Beethoven, Bach, Chopin, Vivaldi 🎹 Most Famous Classic Pieces.mp4.part' --auto-file-renaming=false -- 'https://rr2---sn-5hne6nsk.googlevideo.com/videoplayback?expire=1640807509&ei=9WfMYabHEIHJ1wLugL7QBQ&ip=<REDACTED>&id=o-ALfaBc8AZad4pfqhM2kJ2aMP_i4detrv1FPOcr_e18ig&itag=22&source=youtube&requiressl=yes&mh=uJ&mm=31%2C29&mn=sn-5hne6nsk%2Csn-5hnekn7z&ms=au%2Crdu&mv=m&mvi=2&pl=19&initcwndbps=2200000&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=12499.371&lmt=1628984091657916&mt=1640785521&fvip=2&fexp=24001373%2C24007246&c=ANDROID&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAP5HHcdqxrqO1YmuNEGkVLM45BpMSLhWRpfLpnXpS01tAiBMxxGUNADsZvHm4VI_ZBBcGTMQppKiAtmELvJ8Aj8kkQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgM93lwzPzkvsq6FxAgzRmfghuXvkFvfZ0mAWqGfnQ_o8CIG3hqzzxqLBJpicGeL_pkB_kuiWDQ2IpxdLDDD99clMi'
[#5c8ca1 204MiB/2.1GiB(9%) CN:10 DL:9.0MiB ETA:3m43s]^C
ERROR: Interrupted by user Formats:
|
So this is probably a function of the client data presented to YT. Perhaps this patch can be adapted to offer the desired formats. I see that it listed formats 22 and 139 for the test video in that issue. See #30117 (comment). |
Duplicate of #30117. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Format 22 is now being found by current HEAD, but that may just reflect a site change. |
Format 22 (mp4 1280x720 avc1.64001F, mp4a.40.2) of some YouTube videos cannot be downloaded or listed by -F option.
Example:
https://www.youtube.com/watch?v=jgpJVI3tDbY
https://www.youtube.com/watch?v=DOBjwlfIZdE
The text was updated successfully, but these errors were encountered: