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.
[NRK] Ambiguous subtitle duration thousands #18399
Comments
|
04.60 is 04.600 I don't get it, why would we convert .60 to .060? isn't this a mistake from the subtitles author end? |
|
@evexoio: They probably do something like |
|
@forthrin can you open a PR please? |
|
I've found a way to get around the issue. The site provides two subtitle formats, VTT and TTML, but only the latter has the thousands issue. However, youtube-dl doesn't pick up the VTT file, because the site metadata points to a m3u8 file, which again points to a VTT file. This may be non-standard, but that's how they do it. Getting the VTT file and adding I am not proud of this crappy code. I assume it breaks with several of the project's programming conventions, but I couldn't find any other way to do it at the moment, and it works. Maybe someone can suggest a way to clean up the code, so it can be submitted to the project?
|
Please see the subtitles at: https://undertekst.nrk.no/prod/KMTE20/00/KMTE20006218CA/TMP/KMTE20006218CA.ttml
Notice the duration that ends with ".60". When converting to
.srt, youtube-dl incorrectly interprets this as ".600" rather than the ".060" evidently intended by the author, causing several subtitles to overrun the succeeding subtitle, which in turn makes VLC annoyingly display the subtitles over each other. The problem applies for all subtitled videos on the entire site, so it's a major nuisance.