Ubuntu – youtube-dl keep both auto-generated subtitles and prewritten ones

youtubeyoutube-dl

when i download a video with youtube-dl and the –all-subs, –write-sub, –write-auto-sub, i get a mixture of prewritten subtitles and autogenerated ones

for example, this video: https://www.youtube.com/watch?v=kHYZDveT46c has prewritten english subtitles and autogenerated ones. when using the aforementioned switches, i only end up with the prewritten ones. i want the autogenerated ones too. is there any way for me to do that? thx

Best Answer

The other answer is wrong and actually misleads and wastes people's time with this "latest version" thing which is an issue on his end and has nothing to do with the question...

The actual answer is that youtube-dl names its subtitle files only with the language in it (ex: file.en.vtt), which means that a potential auto-en would be named the same way as en, hence the resulting rule that real subtitles will always be prioritized over auto subtitles if both are asked for in the command. This is something that needs to be asked of the devs if we want to be able to do it with youtube-dl alone.

Source :

https://github.com/ytdl-org/youtube-dl/issues/1412

Done, but currently --write-sub --write-auto-sub --all-sub would download en, fr, auto-es. Downloading both en and auto-en would require creating a new field in info dicts for automatic captions.