-
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] Unable to extract yt initial data (live) #32973
Comments
Yet: $ ./youtube-dl-20240807 -vF 'https://www.youtube.com/live/QJ42yFBHgZk'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-vF', u'https://www.youtube.com/live/QJ42yFBHgZk']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2024.08.07 [c5098961b] (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 2.7.15 (CPython i686 32bit) - Linux-6.1.0-26-686-pae-i686-with-debian-12.8 - OpenSSL 1.1.1a 20 Nov 2018 - glibc 2.1.3
[debug] exe versions: ffmpeg 5.1.6-0, ffprobe 5.1.6-0
[debug] Proxy map: {}
[youtube:tab] live: Downloading webpage
[youtube] QJ42yFBHgZk: Downloading webpage
[debug] [youtube] Decrypted nsig tqHWgWT1ggyyPbVj => -_FrJhdsXbosmQ
[debug] [youtube] Decrypted nsig Drg_nvve4GYgn5kM => Zv0ej5DSAzR7nA
[info] Available formats for QJ42yFBHgZk:
format code extension resolution note
251 webm audio only audio_quality_medium 89k , webm_dash container, opus (48000Hz), 130.87MiB
140 m4a audio only audio_quality_medium 129k , m4a_dash container, mp4a.40.2 (44100Hz), 189.55MiB
160 mp4 256x144 144p 56k , mp4_dash container, avc1.4d400c, 30fps, video only, 83.29MiB
243 webm 640x360 360p 173k , webm_dash container, vp9, 30fps, video only, 254.31MiB
134 mp4 640x360 360p 235k , mp4_dash container, avc1.4d401e, 30fps, video only, 345.13MiB
136 mp4 1280x720 720p 832k , mp4_dash container, avc1.64001f, 30fps, video only, 1.19GiB
18 mp4 640x360 360p 363k , avc1.42001E, 30fps, mp4a.40.2 (44100Hz), 532.79MiB (best)
$ (same with Py3.11) Presumably you are getting some captcha or blocking page that does not contain the expected initial data block. You could try to provoke that page in a private/incognito browser session and solve any resulting challenge, then close the session, after which passing the resulting cookies, perhaps with the same UA, might succeed. |
@dirkf this is what I did:
It fails also specifying the user agent (after having restored the cookies):
|
Please try your command without and with cookies using the single-file build from the latest nightly release. |
See #30839 that you were asked to read and also https://github.com/ytdl-org/youtube-dl/releases/latest. |
@dirkf thanks for the explaination, I thought that running from head was better. However, the following is using cookies:
and without cookies:
I was running this one https://github.com/ytdl-org/ytdl-nightly/releases/download/2024.08.07/youtube-dl-2024.08.07.tar.gz. |
If something is tricky to reproduce, running the single-file nightly build for the platform sets a known baseline for testing. Also, its verbose log shows the build and platform details more fully. The first log looks like the expected behaviour for the stable release, that was fixed in PR #31675. |
Using head commit c509896:
The text was updated successfully, but these errors were encountered: