Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
1  
Well, does the video have closed captions? I cannot reproduce this issue for videos that have the CC sign available. Which video are you trying to download? Does it work with this one? – slhck Oct 7 '12 at 20:31
    
Yes. Have the CC 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:29
    
See exaclty what I have tried: python 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
    
Quite interesting is to check subtitles with --list-subs. – pevik Feb 20 at 12:54
    
if you're on a LTS distribution, ensure you use an uo-to-date version of youtube-dl, the TLS apt package on ubuntu:14.04 for example, does not work with generated closed captions, but that current pip release version does (sudo pip install -U youtube-dl) – ThorSummoner Apr 24 at 6:43
up vote 28 down vote accepted

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.

share|improve this answer
1  
Is there no way to download the one translated by youtube? – Jack Oct 27 '13 at 21:11
    
Not that I'm aware of, no. There appear to be some programs for downloading subtitles (like Google2SRT mentioned in the other answers), but those are all for the "real" closed captions. – slhck Oct 27 '13 at 22:01
1  
@Jack: youtube-dl has since added an option "--write-auto-sub" (at least in version 2014.09.22.1). I didn't try it, but that may be what you were looking for. – Tim Landscheidt Nov 11 '14 at 1:11
    
This doesn't work as of August 2015, please fix. – user20749 Aug 2 '15 at 8:17
1  
This worked for me just now with youtube-dl version 2015.08.16.1. – Jeff Allen Nov 2 '15 at 6:03

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.

enter image description here

share|improve this answer
    
It doesn't convert properly check with this video youtube.com/watch?v=XJGiS83eQLk – csharpwinphonexaml Dec 18 '15 at 13:50

Just use JDownloader.

JDownloader is the best program to download anything over the web. It can automatically detect downloadable content and give you some specific info about that content -e.g. Video quality, available subtitles, thumbnail images, etc...

And it's a powerful software, like you can download an entire YouTube playlist however you want, or just gave it an Instagram profile and let it download all the album seamlessly..

This is a quick video that demonstrates how to download a YouTube video

https://m.youtube.com/watch?v=twesf2ubwGQ

And this is the link where you can download JDownloader

http://jdownloader.org/scripts/dl2.php?v=102

Note that your antivirus may give you false positives because JD contains some ads in its installation program. Don't forget to uncheck these ads too.

Also, keep in mind that you might can't download auto generated subs with JDownloader..

Hope this will solve your problem mate 👍

share|improve this answer
1  
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. - From Review – Ramhound Feb 20 at 16:09
1  
@ramhound's comment is not entirely accurate - you might want to rewrite your answer to include the how rather than the what - see this meta post for more details – Journeyman Geek Feb 21 at 0:08
    
Thanks journeyman geek 👍 I'm new on this platform – ek.bic Feb 21 at 0:28

protected by Community Apr 11 '15 at 12:37

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.