summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-20 12:22:47 +0100
committerwm4 <wm4@nowhere>2020-02-20 12:25:45 +0100
commitf5c1d71639ee3a462028bd07481b147c07206d99 (patch)
tree1cb37a3fe385b89555ff6b5e1562453ad42a00ff /options
parenteaa10a25c70d43a124e152210b46aeb234f22d92 (diff)
downloadmpv-f5c1d71639ee3a462028bd07481b147c07206d99.tar.bz2
mpv-f5c1d71639ee3a462028bd07481b147c07206d99.tar.xz
ytdl_hook: try to skip interleaved streams with all_formats
If a "format" has both audio and video codec set, it might contain both audio and video. all_format assumes that each format is just a quality variant containing a single track. This seems to happen with sites that provide a HLS master URL. youtube-dl tends to "butcher" it, and the result isn't very ideal. I guess HLS "renditions" simply don't map well to youtube-dl's output format and what mpv expects. Playing master HLS directly is also less than ideal, because of libavformat's stupid probing. Fix this by not using the delay-opening mechanism if it appears like we detected such a case. Add a metadata override to set the track titles to "muxed-N", to indicate that they form a single unit. (Mostly helpful for testing.)
Diffstat (limited to 'options')
0 files changed, 0 insertions, 0 deletions