Closed AntonOfTheWoods closed 1 year ago
@AntonOfTheWoods Thanks for the bug report and fix! :) I've released version 1.6.1 of the library that writes WebVTT in correct order as you suggested. I'm not sure about SRT, so for backward compatibility I've kept it as-is.
Great, thanks. I'm 99.9% certain that having subs in start time order is going to be compatible with SRT, and about 80% sure it's also necessary there also (bad things seemed to happen with VLC when they were out of order, though it might have been something else too...). It's good for me though, and I can't find anything resembling a proper spec, so I guess it's an implementation detail :).
I couldn't find a source of truth for
SRT
butWebVTT
specifies that:Cue timings
Currently the
to_file
method doesn't sort according tostart
, which means if the input cues aren't in order, invalidWebVTT
are created.