mpv
mpv copied to clipboard
Improve detection/filtering of predefined YouTube subtitles in particular cases
Hi. This can be either a question or a feature request. Here's an example to illustrate things.
In this YT video for example, if you want to access the (apparently only) available english predefined subtitles, they are named en-en-nP7-2PuUI7o
(see attached screenshot), and they are #45 on a list of more than 200 subtitles. I know other videos with similar naming issues.
Here's my current Windows command line: mpv https://www.youtube.com/watch?v=dfnCAmr569k --slang=en --ytdl-raw-options=ignore-config=,sub-lang=en,write-sub=,write-auto-sub=
I have tried to find a correct syntax for sub-lang
. Unfortunately it seems that wildcards such as sub-lang=en*
are not supported at this time. See this past issue: https://github.com/mpv-player/mpv/issues/8518
Hence my question: is there any way to improve such Windows command line and get the wanted english subtitles easily without cycling through more than 200 subtitles? Otherwise I'd like to make a feature request so that MPV can be improved accordingly.
Thanks in advance!