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).