Comment on How do i sync subtitles while watching movies?
Lumidaub@feddit.org 13 hours ago
What’s your setup? Where are you watching, what format are the subtitles?
Comment on How do i sync subtitles while watching movies?
Lumidaub@feddit.org 13 hours ago
What’s your setup? Where are you watching, what format are the subtitles?
enchantedgoldapple@sopuli.xyz 13 hours ago
I watch movies online in my browser through uhh… alternative means. Subtitle formats aren’t listed explicitly, though I assume it is .lrc given they are imported from open subtitles.org.
Lumidaub@feddit.org 13 hours ago
Oh so you don’t actually have access to the files themselves. That’s unfortunate. Then I fear you’re at the mercy of whoever wrote that browser plugin.
enchantedgoldapple@sopuli.xyz 12 hours ago
I must restate that the option of syncing subtitles by hand is still available in the interface, as mentioned in the post. It is only the question of how to deterministically set the subtitle delay without resorting to tinkering with the controls randomly.
Lumidaub@feddit.org 12 hours ago
I get that but I wouldn’t know any such way. There are dedicated subtitle tools that can sync audio and text but those need the files. Failing that you can only do it by ear.
If the subtitle file was downloaded from opensubtitles automatically, there’s also the very real possibility that it’s the wrong file. It might be the correct movie but the subtitles might be synced to a different framerate and there’d be no way for you to know.
scrion@lemmy.world 11 hours ago
If the subtitles are actual subtitles and not dubs, you can extract timestamps from the audio with a model such as whisper + timestamp support. You could then optimize the overlap of timestamps in the subtitle format (e. g. SRT) with the timestamps provided by the model. That would give you a best fit delay, potentially even shifting over time.
Given that you’re in a browser and don’t even have access to the subtitle data, that’s a purely theoretical exercise. While it might be possible to retrieve the subtitles from the site / API the browser is using and then set the delay in the browser component as well, that’d be far too much effort vs. switching to a better playback method.
If the audio is in a different language, all bets are off, there is nothing to sync against. Translations also won’t help, since there are multiple ways to translate any given source material, and the origin and length don’t match up between languages, naturally.