You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.
The thing is I know website where libjass is used, also it have video and subtitles for it, but that subtitles are not syncronized (need add about +2 seconds to every line), I can't change any website resourses, but, will be great if I can call function from libjass what will automatically retime every line, something like assObject.setTimeShifting(2000); (+2000 ms, may be negative).
I check API and don't find function, so it looks like it not exist. Would be great having something like that in this library.
The text was updated successfully, but these errors were encountered:
There's no public API for it. One workaround is that once you have the ASS object, you can iterate over each Dialogue in ass.dialogues and change its _start and _end private properties.
var ass = libjass.ASS.fromUrl(...).then(ass => { shift(ass, 2.000); return ass; });
function shift(ass, time) {
for (const dialogue of ass.dialogues) {
dialogue._start += time;
dialogue._end += time;
}
}
The thing is I know website where libjass is used, also it have video and subtitles for it, but that subtitles are not syncronized (need add about +2 seconds to every line), I can't change any website resourses, but, will be great if I can call function from libjass what will automatically retime every line, something like
assObject.setTimeShifting(2000);
(+2000 ms, may be negative).I check API and don't find function, so it looks like it not exist. Would be great having something like that in this library.
The text was updated successfully, but these errors were encountered: