Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to download the automatic captions from a video?

My goal is to download automatic caption from a set of youtube videos. (I just want to get video information and subtitles of videos according to a query) The first thing I read is that you cannot download subtitles if you are not the owner. But I do not want the subtitles the owner uploaded, I just need the automatic ones.

For that I've seen some solutions, most of them with external applications . One of them is thorugh this URL: http://video.google.com/timedtext?type=track&v=3wszM2SA12E&name=Automatic&lang=en The problem are:

  1. that this is not the best way to access youtube data.
  2. It doesnt work with every video.

Does Youtube API offer a way to access this information?

Thank you in advance!!

like image 709
user2095138 Avatar asked Feb 21 '13 11:02

user2095138


People also ask

Can I auto generate subtitles from a video file?

Automatic Subtitles GeneratorWith VEED, you can automatically generate subtitles for your videos. Then, you can render them into the video permanently (hardcode subtitles), or if you prefer, download them as a separate subtitle file instead (SRT, VTT, TXT, etc.)

Can you download YouTube generated subtitles?

YouTube offers viewers the option to download a video's subtitles as text, provided that the video's creator has already added those subtitles to their video file.


2 Answers

You can download automatic captions for virtually any YouTube video that has them visible to the public at a site which I have created for being able to edit YouTube's automatic captions.

Go to this page, www.diycaptions.com, and then paste the URL for the video in the second input box on the page which will take you to the Transcription Pad. On that page, you will see links for downloading the automatic captions for the video you specified either in .srt format or in plain text format (.txt).

If you want to correct them, you can use the editor on my site to very easily make corrections. Just paste the YouTube URL into the first input box on the page and you'll be taken to an integrated editor where you can easily make the text accurate and suitable for upload to YouTube or to third-party captioning sites like www.amara.org or www.dotsub.com.

like image 64
Mike Ridgway Avatar answered Sep 29 '22 12:09

Mike Ridgway


Yes it is (as of now). There is a tool called youtube-dl. It supports many options that one could check alone. Just as an example:

>youtube-dl https://www.youtube.com/watch?v=YOUR_VIDEO_HASH --write-auto-sub --sub-lang en

This will download the video along with the auto-generated subtitles in english.

like image 23
Alexander Mihailov Avatar answered Sep 29 '22 10:09

Alexander Mihailov