VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 3 of 3
  1. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    solved -- see post # 3 below.

    Hi all. I mainly use youtube-dl for most videos I want to download. But now I would like to include the closed-captions if possible.

    I mainly use this command line below, and in this links case, it has cc text that display on top of the video. Thanks in advanced.

    Code:
    youtube-dl --no-mtime --write-description --write-thumbnail -l -t --no-part -c -f 18 https://www.youtube.com/watch?v=BR7ertku1jI
    Last edited by vhelp; 7th Sep 2015 at 11:11.
    Quote Quote  
  2. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    update... I found the info I was looking for, they were under the headings, "subtitiles". Anyway. I can't seem to retrieve the ones in this link.. using as a test since it is a short download: https://www.youtube.com/watch?v=BR7ertku1jI. When I click the [cc] button at the youtube website, it displays the closed captions, or subtitles, but they don't show up when I use the --all-subs command, for instance.

    https://github.com/rg3/youtube-dl/#subtitle-options

    Code:
    Subtitle Options:
    
    --write-sub            Write subtitle file
    --write-auto-sub       Write automatic subtitle file (YouTube only)
    --all-subs             Download all the available subtitles of the video
    --list-subs            List all available subtitles for the video
    --sub-format FORMAT    Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"
    --sub-lang LANGS       Languages of the subtitles to download (optional) separated by comm
    Quote Quote  
  3. Member vhelp's Avatar
    Join Date
    Mar 2001
    Location
    New York
    Search Comp PM
    solved.. I found the answer.. use --write-auto-sub in the command line string. The example below now writes out the .srt file (i updated my file association to recognize it so it can open in notepad) in addition to the other file details I want as indicated in the command line string, below.

    Code:
    youtube-dl --no-mtime --write-description --write-thumbnail -l -t --no-part -c --write-auto-sub -f 18 https://www.youtube.com/watch?v=BR7ertku1jI
    file: "Kerri Gallagher Makes 2015 USATF 1500 Final-BR7ertku1jI.en"

    Code:
    1
    00:00:00,020 --> 00:00:03,610
    he was slow things up by stuff there's a
    the trip at the end you guys see that on
    
    2
    00:00:03,610 --> 00:00:04,020
    now
    
    3
    00:00:04,020 --> 00:00:09,320
    my internet left run everything
    
    4
    00:00:09,320 --> 00:00:14,500
    what that
    
    5
    00:00:14,500 --> 00:00:17,430
    block that last 100 you're coming on
    strong at the end up as a bunch of
    
    6
    00:00:17,430 --> 00:00:17,830
    people
    
    7
    00:00:17,830 --> 00:00:20,770
    you're gonna lie
    
    8
    00:00:20,770 --> 00:00:23,670
    pins I just
    
    9
    00:00:23,670 --> 00:00:29,430
    document patient
    
    10
    00:00:29,430 --> 00:00:30,400
    you work with Hamas
    
    11
    00:00:30,400 --> 00:00:33,800
    sent with senior was what is messages
    wage them online
    
    12
    00:00:33,800 --> 00:00:39,860
    for this I mean he thinks pretense of we
    talk just
    
    13
    00:00:39,860 --> 00:00:41,880
    axing you
    
    14
    00:00:41,880 --> 00:00:46,120
    miss me secret went to
    
    15
    00:00:46,120 --> 00:00:49,500
    plans for file anything that you think
    you have to do to himself in position
    
    16
    00:00:49,500 --> 00:00:54,720
    just stay connected
    
    17
    00:00:54,720 --> 00:00:57,680
    for the next hour as good as the woman's
    15 it this year
    
    18
    00:00:57,680 --> 00:01:01,020
    I mean the Intimidator glad to be here
    
    19
    00:01:01,020 --> 00:01:04,110
    this is this a good step today disorder
    this is a good step
    
    20
    00:01:04,110 --> 00:01:07,580
    I ran really well two years ago doesn't
    13 us surprise
    
    21
    00:01:07,580 --> 00:01:11,690
    funny 397 yes magnetic
    
    22
    00:01:11,690 --> 00:01:19,330
    temperature am I'm Lumber Company now
    yes a strong field
    
    23
    00:01:19,330 --> 00:01:23,190
    no thank you hailed today congrat in it
    Last edited by vhelp; 7th Sep 2015 at 11:15.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!