-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
plugins.youtube: fix adaptive streams KeyError #5139
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
plugins.youtube: fix adaptive streams KeyError #5139
Conversation
916af6d
to
a93703f
Compare
Only outputs audio streams for me. And yes, in VLC only plays audio. |
False. Streamlink remuxes video and audio streams into the output, as you can see in its debug log, as well as
|
Your question is completely unrelated to this PR or even the youtube plugin.
The only ones you'll see when using the youtube plugin are streamlink/src/streamlink/plugins/youtube.py Lines 245 to 247 in 142d17f
streamlink/src/streamlink/plugins/youtube.py Line 384 in 142d17f
Locking the thread, as this discussion doesn't belong here. |
ref #5137
--->
This fixes how audio-only streams are included in the stream selection. Previously, the order of adaptive formats mattered and simply the last item was included, regardless the bitrate. Now, it's only using the best audio quality. HOWEVER, this implementation ignores different codec profiles/versions and merges everything together into the same codec name. This is one of the issues I've talked about in #4902. Doesn't matter here much though for the couple of audio-only streams.
The download throttling issue with unsigned adaptive stream request URLs is still present of course (see YT meta issue).