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.
Hi,
youtube-dl version is 2018.09.18.
I am trying to download english autogenerated subtitles to the following video:
https://www.youtube.com/watch?v=f-wWBGo6a2w
I am GETTING WRONG AUTOGENERATED subtitles. Both the ttml and vtt subtitles that I am getting are wrong,
For example, if you watch given video online on youtube with autogenerated english subtitles turned on,
the first sentence will be "well thenk you all very much for comming"
but in the vtt and ttml files that I am getting the first line is "Thank you all for coming "
plus the vtt file that I am getting is truncated.
Please somebody help
I am attaching the autogenerated subtitles that I am getting for that video:
example.zip
and this is the code I am using:
import youtube_dl
at = '2018_'
video_name = 'ppppp'
youtube_url = 'https://www.youtube.com/watch?v=f-wWBGo6a2w'
ydl_opts2 = {
'skip_download': True,
'subtitleslangs': ['en'],
'subtitlesformat': 'ttml',
'writeautomaticsub': True,
"outtmpl" : r"{}_{}.%(ext)s".format(video_name, at),
}
with youtube_dl.YoutubeDL(ydl_opts2) as ydl:
ydl.download([youtube_url])