Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
YouTube sub-titles and captions. #1875
Comments
|
As you can see in the following screenshot, the video has only automatic captions. Since those are of an inferior quality and different technical sources, youtube-dl distinguishes automatic captions from manually generated subtitles (at the moment, we may change that to avoid user confusion). Google2SRT does not make that distinction, and downloads the automatically generated subtitles as well - note the incorrect transcription of Pass in |
|
Thank you for the explanation. Just curious, how does youtube-dl distinguish automatic captions and manually generated sub-titles ? And, I think, you should maintain this differentiation. Perhaps, show a warning message that the item being downloaded is an automatic caption or a manually generated sub-title; but, the distinction should be made, in my opinion. |
|
Technically, the URLs for automatic captions and manually generated are different, so youtube-dl doesn't have to do anything special to distinguish the two. |
|
Thanks. One last question. By "automatically generated subtitles files" (returned by --write-auto-sub), are you referring to a result of automatic translation ? I guess, what I am asking is, is there a way YouTube says, this sub-title has been provided by a real human and not an API (or service) ? |
|
YouTube uses (automatic) voice recognition to recognize text in the original language, and then uses automatic translations to generate text in all other languages. Apart from the programmers, there are no humans involved (that's kind of Google's thing). It's up to the uploader how the non-auto subtitles are generated, but typically these are created by humans. |
|
Thank you, Philipp ! |

How does youtube-dl differentiate sub-titles and captions ? The result of the command to list sub-titles seems to consider them different.
The video does have sub-titles as I can download the same using Google2SRT tool (http://google2srt.sourceforge.net/). Although, it seems, Google2SRT does the download from http://video.google.com.
So, can the sub-titles or captions or timed-text can be downloaded for a given YouTube video using youtube-dl ?