Skip to content
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

Valid timecodes not parsed by VTTParser #21

Open
berndmoos opened this issue Jan 14, 2023 · 1 comment
Open

Valid timecodes not parsed by VTTParser #21

berndmoos opened this issue Jan 14, 2023 · 1 comment

Comments

@berndmoos
Copy link

In one of my sample files, VTT time codes look like this:

00:59.000 --> 01:23.000
VTTParser will throw an exception when reading the file. I think this is because it has not recognized this line as being a timecode line. It works fine when time code lines have hours, like so:

00:00:00.389 --> 00:00:07.910

As far as I can see from the specification, both notations should be valid.

The following lines should be changed accordingly:

!textLine.substring(13, 16).equals("-->")

!textLine.substring(13, 16).equals("-->")

berndmoos added a commit to berndmoos/noophq_subtitle that referenced this issue May 11, 2024
berndmoos added a commit to berndmoos/noophq_subtitle that referenced this issue May 11, 2024
@amentan
Copy link

amentan commented Jul 4, 2024

use ffmpeg command: ffmpeg -i your_file.vtt your_file.srt

aparamythis added a commit to Contexity/subtitle that referenced this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants