How do I download videos from YouTube with subtitles / captions?
I'd tried by using youtube-dl, with --write-srt --str-lang
flags but I always get:
WARNING: video has no closed captions
.
downloadyoutube
How do I download videos from YouTube with subtitles / captions?
I'd tried by using youtube-dl, with --write-srt --str-lang
flags but I always get:
WARNING: video has no closed captions
.
Best Answer
Make sure the video you're trying to download has actual subtitles uploaded from the owner.
You can then use, for example:
There is also an option to download the automatically generated subtitle files, using
--write-auto-sub
.See the
youtube-dl
documentation.