-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtitles are misaligned after cutting #21
Comments
This may be quite difficult to implement fully since the youtube-dl supports embedding of multiple subtitle formats (srt, vtt, ttml, srv etc) |
Yeah, either I'll have to write parsers for each format or see if I can get youtube-dl to force them into a single format. |
Yes, you can. There is Also, something I forgot to mention is my previous comment: the video may also contain multiple subs; each possibly in a different format.
huh, interesting. Though that thread doesn't mention about more complex filters, it seems it might be worth looking into. That would help avoid a lot of headaches of trying to implement a full subtitle parser |
After cutting a video subtitles end up misaligned, we'll need to extract them like so: https://superuser.com/a/927507/889417 then figure out how to cut them and add them to the new video
Example subtitle file, downloaded via
youtube-dl --all-subs --skip-download https://www.youtube.com/watch\?v\=Ye8mB6VsUHw
The text was updated successfully, but these errors were encountered: