JavascriptSubtitlesOctopus
JavascriptSubtitlesOctopus copied to clipboard
JSO doesn’t nor enables users to set storage size
ASS rendering depends on the original video’s storage resolution. Even if we can somehow obtain the video resolution of the current associated video stream, this may not be correct if there are multiple resolutions available to choose from or resolution is dynamically adjusted for bandwidth. Thus JSO should at least (also?) provide a means for users of the regular JS interface to manually set storage size from e.g. some out-of-band metadata.
Currently all subtitles (without LayoutRes{X,Y}) for which libass’ fallback guess is wrong and use affected features thus render incorrectly.
https://github.com/ThaUnknown/jassub/blob/main/src/jassub.js#L286 videos have a resize event which fires whenever the video resolution changes, be that because the video track was changed or because of some encoding black magic