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
.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityHow 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
.
Make sure the video you're trying to download has actual subtitles uploaded from the owner.
You can then use, for example:
youtube-dl --write-srt --sub-lang en 'http://www.youtube.com/watch?v=RHy9_RQbrnQ'
There is also an option to download the automatically generated subtitle files, using --write-auto-sub
.
See the youtube-dl
documentation.
If you want a free, easy-to-use program with a simple GUI, there's Google 2 SRT.
It detects all the available languages and converts to SRT, SSA or SUB.
CC
sign available. Which video are you trying to download? Does it work with this one? – slhck Oct 7 '12 at 20:31CC
sign. For video that you have posted it worked fine. But for all that I had tried before it does not work, e.g for this video: youtube.com/watch?v=RHy9_RQbrnQ I get:WARNING: video has no closed captions
unlike as you can see into youtube page. ` – Jack Oct 8 '12 at 0:29python youtube-dl --write-srt --srt-lang en http://www.youtube.com/watch?v=RHy9_RQbrnQ [youtube] Setting language [youtube] RHy9_RQbrnQ: Downloading video webpage [youtube] RHy9_RQbrnQ: Downloading video info webpage [youtube] RHy9_RQbrnQ: Extracting video information [youtube] RHy9_RQbrnQ: Downloading video subtitles WARNING: video has no closed captions
– Jack Oct 8 '12 at 0:31--list-subs
. – pevik Feb 20 '16 at 12:54sudo pip install -U youtube-dl
) – ThorSummoner Apr 24 '16 at 6:43