Reputation: 301
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:
Does Youtube API offer a way to access this information?
Thank you in advance!!
Upvotes: 20
Views: 39551
Reputation: 2691
In case you want to download just the auto-generated subtitles:
yt-dlp --write-auto-subs --skip-download 'Video_URL'
(yt-dlp seems to be better maintained than youtube-dl)
Upvotes: 5
Reputation: 301
You can download automatic captions for virtually any "public" or "unlisted" YouTube video so long as the owner of the video hasn't disabled embedding for the video by using one of two websites I have created:
DIY Captions, mentioned in an earlier version of this answer, is now basically a menu page that gives access to these two sites as well as to my "YouTube Transcription Pad." A fourth option opens the video in "oTranscribe" a transcription tool created by Elliott Bentley, that can be used for audio files and for YouTube videos.
Upvotes: 30
Reputation: 1168
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.
Upvotes: 7