Closed limaalef closed 3 months ago
When you say "--quality best" and the MPD includes a bandwidth attribute, as is the case here, the stream with the highest bandwidth will be chosen.
There should probably be an option to allow you to specify the ids of the streams you want explicitly, but you can solve your problem using the XSLT rewriting functionality. You want to "drop" the AdaptationSet elements which have a Role child with value="alternate". You need to write an XPath expression to identify those AdaptationSet elements (see the doc, you will also need to make sure the xsltproc commandline application is installed). Probably something like
--drop-elements "//mpd:AdaptationSet[.//mpd:Role[@value='alternate']]"
When you say "--quality best" and the MPD includes a bandwidth attribute, as is the case here, the stream with the highest bandwidth will be chosen.
There should probably be an option to allow you to specify the ids of the streams you want explicitly, but you can solve your problem using the XSLT rewriting functionality. You want to "drop" the AdaptationSet elements which have a Role child with value="alternate". You need to write an XPath expression to identify those AdaptationSet elements (see the doc, you will also need to make sure the xsltproc commandline application is installed). Probably something like
--drop-elements "//mpd:AdaptationSet[.//mpd:Role[@value='alternate']]"
Thank you so much
Hello!
First of all, thank you. Your program helped me a lot!
So I have some problems to selecting the best video quality in some cases.
The manifest is like this:
When i use just
--quality best
the program download one of two 1280x720@6348 Kbps (@ 59,94 fps), but i dont know what, if the main option or the alternateWhen i add
--prefer-video-width 1280
the program download one of two 1280x720@4091 Kbps (@ 29,97 fps) , but again i dont know what, if the main option or the alternateIn this case, there are two options of each quality because the service provide main streams as expected and the other option is something like a sequence of screenshots and isnt the normal videostream (i really dont know why)
I got the information that yt-dlp provide to try explain this case
So, is there any way that I can select the exact option I want to download?
PS: adding the raw MPD
PS 2: I downloaded the version 0.2.8 ans worked as I wanted, saving my target version (id=dzEzM2Of).