Professional Documents
Culture Documents
SPONSORED BY
How can I download subtitles of a list of videos using youtube-dl? I need an option for this.
However I could not find an option to download only subtitles
204
youtube-dl
81 Share Improve this question edited Jul 24, 2017 at 19:32 asked Jun 13, 2015 at 17:22
Follow user598527 fivetech
3,506 14 44 87 2,193 2 11 5
2 Maybe because he already downloaded the videos, and doesn't want to download them again, just
wants to download the subtitles now because he didn't get them before. That's why I'm using this
option.
– spacefaced
May 8, 2020 at 1:11
Or it messed up the --embed-subtitles step so I want to download them again separately. (Iʼd file
a bug report but the repoʼs down for the moment)
– Daniel H
Oct 28, 2020 at 17:25
@Prometheus … Perhaps because YouTube subtitles are not in the standard .srt format, he got the YT
timestamped formant, now wants .srt … I'm here because I have vids that have no subtitles, so I want
to get them easily.
– Rowe Morehouse
Nov 16, 2020 at 4:56
Sorted by:
4 Answers
Highest score (default)
250
Subtitle Options:
https://superuser.com/questions/927523/how-to-download-only-subtitles-of-videos-using-youtube-dl 1/4
9/23/22, 12:24 PM How to download only subtitles of videos using youtube-dl - Super User
Share Improve this answer Follow answered Jun 13, 2015 at 18:04
l'L'l
3,000 1 14 9
61 I gave the docs a fair look and didn't find the --skip-download option which is hidden under
Verbosity / Simulation Options. Glad @fivetech asked this question, or I may still be stuck.
– Zaz
Aug 7, 2016 at 19:04
4 It's clearly "mentioned in documentation" and "clearly mentioned in this answer": "--write-auto-sub
Write automatic subtitle file (YouTube only)"
– radekg
Sep 16, 2017 at 7:41
Share Improve this answer edited Oct 3, 2018 at 9:43 answered Aug 29, 2018 at 16:22
Follow m3asmi
681 5 4
@pouya will your option download both autogenerated and proper subtitles of english lang, for
example?
– Edward Torvalds
Feb 1, 2021 at 7:10
"example"
--convert=srt will output to a file named example.en.srt where en stands for
English es for Spanish etc.
Tesla.com.
OPTIONAL - If you need the text to be cleaned up you can use python to clean it a little:
import re
bad_words = ['-->','</c>']
newfile.write(line)
uniqlines = set(result.readlines())
print(mylst)
rmdup.writelines(set(mylst))
Output newfile.txt:
Tesla.com.
Share Improve this answer edited Jun 7, 2021 at 14:54 answered Apr 14, 2020 at 1:16
Follow He Hernan Pesantez
Pesan 179 1 3
7 convert subs doesn't seem to work if you use the --skip-download option it just gives it in vtt format
– pt123
Aug 29, 2020 at 22:50
4 In my case, I still need to run ffmpeg -i foo.vtt foo.srt to convert caption manually.
– 林果皞
Feb 25, 2021 at 22:23
https://superuser.com/questions/927523/how-to-download-only-subtitles-of-videos-using-youtube-dl 3/4
9/23/22, 12:24 PM How to download only subtitles of videos using youtube-dl - Super User
2 After some testing, I can say that 1) --convert-subs switch doesn't work with the --skip-
download one; 2) anyway youtube-dl uses ffmpeg (or avconv from the dead Libav project) to
do the subtitle conversion, so the ffmpeg -i foo.vtt foo.srt produces the equal srt file; 3) both
--convert-subs=srt and --convert-subs srt options works.
– Ivan Shatsky
Dec 16, 2021 at
0:48
Usage
Click the links to see screenshots of steps 1 and 2.
1. Paste the URL in the Google subtitles text box and click Read.
2. Choose the language by selecting the appropriate check box provided and press Go.
3. View the destination folder that was input in the SRT subtitles textbox to locate the SRT
files.
Share Improve this answer edited Jun 12, 2020 at 13:48 answered Nov 18, 2015 at 5:56
Follow Community Bot jegadesh
1 99 1 2
9 The issue with this is that it only works with YouTube; youtube-dl supports hundreds of other sites.
– Hayden Schiff
Nov 14, 2016 at 2:48
1 Thanks so much, jegadesh! Google2SRT is just what I needed to download auto-generated closed
captions/subtitles from YouTube, since youtube-dl does not handle them properly (instead returning foo
has no subtitles).
– Miles Wolbe
Feb 4, 2018 at 6:31
3 @miles-wolbe I'd appreciate it if you could mention a YouTube video where youtube-dl failed.
– naki
Mar 19, 2019 at 7:37
Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this
question. The reputation requirement helps protect this question from spam and non-answer activity.
https://superuser.com/questions/927523/how-to-download-only-subtitles-of-videos-using-youtube-dl 4/4