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

[YouTube] No video formats found #32533

Closed
6 tasks done
DonaldsoJo opened this issue Aug 28, 2023 · 9 comments · Fixed by #32638
Closed
6 tasks done

[YouTube] No video formats found #32533

DonaldsoJo opened this issue Aug 28, 2023 · 9 comments · Fixed by #32638

Comments

@DonaldsoJo
Copy link

DonaldsoJo commented Aug 28, 2023

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2023.08.28.40298
  • 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

❯ .\youtube-dl -F https://youtu.be/Z5-rdr0qhWk?si=Hg_dbGgMSsDSSS7Y --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-F', 'https://youtu.be/Z5-rdr0qhWk?si=Hg_dbGgMSsDSSS7Y', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2023.08.28.40298 (single file build)
** This build is unofficial daily builds, provided for ease of use.
** Please do not ask for any support.
[debug] Python 3.4.4 (CPython AMD64 32bit) - Windows-10-10.0.19041 - OpenSSL 1.0.2d 9 Jul 2015
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Z5-rdr0qhWk: Downloading webpage
[youtube] Z5-rdr0qhWk: Downloading API JSON
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
WARNING: unable to extract player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "D:\a\youtube-dl\youtube-dl\youtube_dl\YoutubeDL.py", line 825, in wrapper
  File "D:\a\youtube-dl\youtube-dl\youtube_dl\YoutubeDL.py", line 846, in __extract_info
  File "D:\a\youtube-dl\youtube-dl\youtube_dl\extractor\common.py", line 535, in extract
  File "D:\a\youtube-dl\youtube-dl\youtube_dl\extractor\youtube.py", line 2121, in _real_extract
  File "D:\a\youtube-dl\youtube-dl\youtube_dl\extractor\common.py", line 1375, in _sort_formats
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Trying to download the audio of a YouTube video. (As I have for several years, using the same command format)
youtube-dl -f 140 https://youtu.be/Z5-rdr0qhWk?si=GQzP0TI3DqEMOc2U
I have the latest version.
Other commands fail in the same way.
Summary trace:
a long list of "WARNING: unable to extract player URL"
followed by "ERROR: No video formats found"

@brickinthewall4138
Copy link

I have the same problem, using 2023.08.07 (same messages and same traceback, albeit with different line numbers).

@nicolaasjan
Copy link

Same here.
Download is fine with yt-dlp:

yt-dlp -v -f 140 --ignore-config https://www.youtube.com/watch?v=Z5-rdr0qhWk
[debug] Command-line config: ['-v', '-f', '140', '--ignore-config', 'https://www.youtube.com/watch?v=Z5-rdr0qhWk']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2023.08.28 [56b3dc033] (zip)
[debug] Python 3.8.10 (CPython x86_64 64bit) - Linux-5.4.0-156-generic-x86_64-with-glibc2.29 (OpenSSL 1.1.1f  31 Mar 2020, glibc 2.31)
[debug] exe versions: ffmpeg N-111711-gd295b6b693-Nico-20230808 (fdk,setts), ffprobe N-111711-gd295b6b693-Nico-20230808, phantomjs 2.1.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.07.22, mutagen-1.46.0, secretstorage-3.3.3, sqlite3-2.6.0, websockets-11.0.3, xattr-0.9.6
[debug] Proxy map: {}
[debug] Loaded 1864 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=Z5-rdr0qhWk
[youtube] Z5-rdr0qhWk: Downloading webpage
[youtube] Z5-rdr0qhWk: Downloading ios player API JSON
[youtube] Z5-rdr0qhWk: Downloading android player API JSON
[youtube] Z5-rdr0qhWk: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[info] Z5-rdr0qhWk: Downloading 1 format(s): 140
[debug] Invoking http downloader on "https://rr2---sn-5hne6n6e.googlevideo.com/videoplayback?expire=1693253966&ei=7qzsZMqmN5Tgx_APk6aomAk&ip=<REDACTED>&id=o-APNbdVoy82I-psumOQsr-wbbFcOW93RyFWlOG2b9jMH-&itag=140&source=youtube&requiressl=yes&mh=my&mm=31%2C29&mn=sn-5hne6n6e%2Csn-5hneknek&ms=au%2Crdu&mv=m&mvi=2&pl=14&initcwndbps=2625000&vprv=1&svpuc=1&mime=audio%2Fmp4&gir=yes&clen=3543074&dur=223.027&lmt=1540827468320064&mt=1693232006&fvip=5&keepalive=yes&fexp=24007246&beids=24350017&c=IOS&txp=5532432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRAIgdpz3LAc5f2zfnEyF1B0q_XnaNWwHd1rzSDbU_kuKoKACIGgSqGwyaeqUWHgl70RHm1bWUxjqnI2YPnvMbatbTT9O&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAIn5B-jMNuO3Gxg_8SLSPArVMYwWAahsbCfLClQZX2lJAiBV4kQ9_MRnxrNT4GihxUcCyMtouY6887Ub_Cie8b59cA%3D%3D"
[download] Destination: @TheCarsOfficial ― JUST WHAT I NEEDED (1978) [Z5-rdr0qhWk].m4a
[download] 100% of    3.38MiB in 00:00:00 at 8.71MiB/s
[FixupM4a] Correcting container of "@TheCarsOfficial ― JUST WHAT I NEEDED (1978) [Z5-rdr0qhWk].m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:@TheCarsOfficial ― JUST WHAT I NEEDED (1978) [Z5-rdr0qhWk].m4a' -map 0 -dn -ignore_unknown -c copy -f mp4 -movflags +faststart 'file:@TheCarsOfficial ― JUST WHAT I NEEDED (1978) [Z5-rdr0qhWk].temp.m4a'

@dirkf
Copy link
Contributor

dirkf commented Aug 28, 2023

This seems to be another manifestation of #32499 and fixed by the WIP YT extractor that fixes that:

$ python -m youtube_dl -v -F 'https://youtu.be/Z5-rdr0qhWk?si=GQzP0TI3DqEMOc2U'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-F', u'https://youtu.be/Z5-rdr0qhWk?si=GQzP0TI3DqEMOc2U']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 86e3cf5e5
[debug] Python 2.7.15 (CPython i686 32bit) - Linux-6.1.0-11-686-pae-i686-with-debian-12.1 - OpenSSL 1.1.1a  20 Nov 2018 - glibc 2.1.3
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Z5-rdr0qhWk: Downloading webpage
[youtube] Z5-rdr0qhWk: Downloading player c153b631
[debug] [youtube] Decrypted nsig VtPNynxZT9NIRusX => inur3uwD_Gn-KQ
[debug] [youtube] Decrypted nsig jrknynRP_TZIcnRl => CnkX3H-tkccp6w
[info] Available formats for Z5-rdr0qhWk:
format code  extension  resolution note
249          webm       audio only tiny   49k , webm_dash container, opus  (48000Hz), 1.32MiB
250          webm       audio only tiny   65k , webm_dash container, opus  (48000Hz), 1.75MiB
140          m4a        audio only tiny  127k , m4a_dash container, mp4a.40.2 (44100Hz), 3.38MiB
251          webm       audio only tiny  130k , webm_dash container, opus  (48000Hz), 3.46MiB
160          mp4        192x144    144p   11k , mp4_dash container, avc1.4d400c, 30fps, video only, 326.04KiB
278          webm       192x144    144p   24k , webm_dash container, vp9, 30fps, video only, 666.09KiB
394          mp4        192x144    144p   33k , mp4_dash container, av01.0.00M.08, 30fps, video only, 910.98KiB
133          mp4        320x240    240p   17k , mp4_dash container, avc1.4d400d, 30fps, video only, 482.46KiB
242          webm       320x240    240p   49k , webm_dash container, vp9, 30fps, video only, 1.31MiB
395          mp4        320x240    240p   67k , mp4_dash container, av01.0.00M.08, 30fps, video only, 1.80MiB
134          mp4        480x360    360p   37k , mp4_dash container, avc1.4d401e, 30fps, video only, 1008.61KiB
243          webm       480x360    360p   86k , webm_dash container, vp9, 30fps, video only, 2.30MiB
396          mp4        480x360    360p  111k , mp4_dash container, av01.0.01M.08, 30fps, video only, 2.95MiB
135          mp4        640x480    480p   89k , mp4_dash container, avc1.4d401e, 30fps, video only, 2.38MiB
244          webm       640x480    480p  137k , webm_dash container, vp9, 30fps, video only, 3.65MiB
397          mp4        640x480    480p  189k , mp4_dash container, av01.0.04M.08, 30fps, video only, 5.03MiB
18           mp4        480x360    360p  162k , avc1.42001E, 30fps, mp4a.40.2 (44100Hz) (best)
$

@Vangelis66
Copy link

Vangelis66 commented Aug 30, 2023

@DonaldsoJo wrote:

  • I'm reporting a broken site support issue

... Actually, you are, so why haven't you checked that ? 😉

I have the latest version.

... You think you do:

[debug] youtube-dl version 2023.08.28.40298 (single file build)
** This build is unofficial daily builds, provided for ease of use.
** Please do not ask for any support.

... but, in reality, you DON'T!

The "unofficial daily builds" that are being auto-released by GitHub Actions and are found in below repo:

https://github.com/ytdl-patched/youtube-dl/tags

are, in fact, being compiled on quite old yt-dl source code, specifically master-git-20230617-g07af479 from 2.5 months ago...
As pinned issue #30839 explains (which you should've carefully read prior to filing a new issue here 😜 ), having the "latest" yt-dl version now implies you have migrated to the "nightly" update channel,

https://github.com/ytdl-org/ytdl-nightly/releases/latest

which now is at version 2023.08.07 ; having done that, you'd have probably still encountered #32499 (as attested by @brickinthewall4138), but, at least, you'd have truly been on "latest" 😉 ...

@nicolaasjan wrote:

Same here.

... Until dirkf kindly divulges the "WIP YT extractor" code 😄 , I "shoehorned" in yt-dl's youtube.py the "downstream" fix from yt-dlp/yt-dlp@378ae9f

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ffmpeg-location', '.\\FFmpeg', '--external-downloader-args', '-v 8 -stats', '-vF', 'https://youtu.be/Z5-rdr0qhWk?si=GQzP0TI3DqEMOc2U']
[debug] Encodings: locale cp1253, fs mbcs, out cp737, pref cp1253
[debug] youtube-dl version 2023.08.04.2154
[debug] Lazy loading extractors enabled
[debug] Single file build
[debug] Python 3.4.10 (CPython x86 32bit) - Windows-Vista-6.0.6003-SP2 - OpenSSL 1.0.2k  26 Jan 2017
[debug] exe versions: ffmpeg n6.1-dev-1700-N-111584-ga4e6168, ffprobe n6.1-dev-1700-N-111584-ga4e6168, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] Z5-rdr0qhWk: Downloading webpage
[debug] [youtube] Decrypted nsig TFhF98o5a6EtYjbMd => KGICjS3bV6b6YA
[debug] [youtube] Decrypted nsig 0GmbWnEK-1sF-qZNI => tZ2cm3YsAW0_uQ
[info] Available formats for Z5-rdr0qhWk:
format code  extension  resolution note
249          webm       audio only tiny   49k , webm_dash container, opus  (48000Hz), 1.32MiB
250          webm       audio only tiny   65k , webm_dash container, opus  (48000Hz), 1.75MiB
140          m4a        audio only tiny  127k , m4a_dash container, mp4a.40.2 (44100Hz), 3.38MiB
251          webm       audio only tiny  130k , webm_dash container, opus  (48000Hz), 3.46MiB
160          mp4        192x144    144p   11k , mp4_dash container, avc1.4d400c, 30fps, video only, 326.04KiB
278          webm       192x144    144p   24k , webm_dash container, vp9, 30fps, video only, 666.09KiB
394          mp4        192x144    144p   33k , mp4_dash container, av01.0.00M.08, 30fps, video only, 910.98KiB
133          mp4        320x240    240p   17k , mp4_dash container, avc1.4d400d, 30fps, video only, 482.46KiB
242          webm       320x240    240p   49k , webm_dash container, vp9, 30fps, video only, 1.31MiB
395          mp4        320x240    240p   67k , mp4_dash container, av01.0.00M.08, 30fps, video only, 1.80MiB
134          mp4        480x360    360p   37k , mp4_dash container, avc1.4d401e, 30fps, video only, 1008.61KiB
243          webm       480x360    360p   86k , webm_dash container, vp9, 30fps, video only, 2.30MiB
396          mp4        480x360    360p  111k , mp4_dash container, av01.0.01M.08, 30fps, video only, 2.95MiB
135          mp4        640x480    480p   89k , mp4_dash container, avc1.4d401e, 30fps, video only, 2.38MiB
244          webm       640x480    480p  137k , webm_dash container, vp9, 30fps, video only, 3.65MiB
397          mp4        640x480    480p  189k , mp4_dash container, av01.0.04M.08, 30fps, video only, 5.03MiB
18           mp4        480x360    360p  162k , avc1.42001E, 30fps, mp4a.40.2 (44100Hz) (best)

@DonaldsoJo
Copy link
Author

@Vangelis66 thanks for the clarification.
I admit, I just used the -U option and assumed I had the "latest". Mea culpa.
But, as you expected, the nightly build didn't actually fix the problem. :-(

@dirkf
Copy link
Contributor

dirkf commented Aug 30, 2023

Absent divulging, cookies should work round the issue per #32499.

@nicolaasjan
Copy link

... Until dirkf kindly divulges the "WIP YT extractor" code 😄 , I "shoehorned" in yt-dl's youtube.py the "downstream" fix from yt-dlp/yt-dlp@378ae9f

Thanks for this!🌻

I applied the change in youtube.py and compiled again.
No error now. 🙂

@DonaldsoJo
Copy link
Author

I tried the --cookies switch as described in the FAQ (search for cookies).
This did indeed fix the problem. So many thanks for the suggestion.

I was using Chrome and got the "get cookies.txt LOCALLY" extension.
I opened YouTube and the video I wanted.
Then created a cookies.txt file using the extension.
Then the following command line (and result):

youtube-dl --cookies .\www.youtube.com_cookies.txt -f 140 https://youtu.be/Z5-rdr0qhWk?si=-N0irE61t6FmzdSe
[youtube] Z5-rdr0qhWk: Downloading webpage
[dashsegments] Total fragments: 1
[download] Destination: @TheCarsOfficial ― JUST WHAT I NEEDED (1978)-Z5-rdr0qhWk.m4a
[download] 100% of 3.38MiB in 00:00
WARNING: Z5-rdr0qhWk: writing DASH m4a. Only some players support this container. Install ffmpeg or avconv to fix this automatically.

I'm ok with that kind of workaround, but it would be nice if youtube-dl worked without faffing with cookies.

Thanks for the help.
Should I close this issue? Or leave it open?

@dirkf
Copy link
Contributor

dirkf commented Aug 30, 2023

Duplicate of #32499.

@dirkf dirkf closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
@dirkf dirkf changed the title No video formats found [YouTube] No video formats found Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants