Some online video players give you the option to add or subtract delay e.g. by ±0.5s to subtitles to manually sync them to the video currently playing. However I become functionally dyslexic when it comes to actually figuring out how much delay has to be added. I end up randomly adding or subtracting delay and make it work through trial and error.

Is there some rule of thumb I could follow instead to systematically sync subtitles?

  • Fallibilist@feddit.uk
    link
    fedilink
    arrow-up
    4
    ·
    1 hour ago

    VLC has hotkey for this. It’s pretty easy to tweak with just trial an error and no need to go to settings to guestimate the values.

  • whaleross@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 hours ago

    I count the seconds to get in the ball park and fine tweak on the go.

    Line.
    1… 2… 3… 4… 5… 6… 7…
    Subtitles.
    Ok, seven and a half seconds.

      • Lumidaub@feddit.org
        link
        fedilink
        arrow-up
        7
        ·
        5 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.xyzOP
          link
          fedilink
          arrow-up
          1
          ·
          5 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.

          • scrion@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            4 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.

            You could, however, compute the best match and set that manually, if that’s all you’re after, i. e. skip the automation part. You’d still need to access the source audio and subtitles.

            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.

          • Lumidaub@feddit.org
            link
            fedilink
            arrow-up
            4
            ·
            5 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.

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 @pawb.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    6 hours ago

    Trial and error, basically. Change the delay, wait a second and then see if it makes it better or worse (at least for VLC there is a delay in the setting actually changing the sync in my experience so you need to give it a second to see the difference). Repeat until it’s perfect.

    It also helps to do this in a dialogue heavy scene so you can match the audio to mouth movement.

    • enchantedgoldapple@sopuli.xyzOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      5 hours ago

      There must be a better way to do this though. I waste too much time tinkering with the syncing at times.

      I realised what I’m asking for is essentially a modified version of ‘trial and error’. I should clarify that I’m looking for a technique I could follow to instead of clicking buttons and modifying values by pure randomness and hoping the subtitles sync.

      • Ghostalmedia@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        5 hours ago

        Every video player has a slightly different codebase. I imagine all of these are going to be a hair different when it comes to timing.

  • RamRabbit@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    7
    ·
    edit-2
    6 hours ago

    By default, they are synced by the subtitle creator. I have only had to modify probably 2 videos ever, in my life.

    The rule of thumb is: don’t mess with the syncing. It’s already synced.

    • Hal@piefed.nz
      link
      fedilink
      English
      arrow-up
      4
      ·
      6 hours ago

      I don’t know that I’ve ever seen subtitles synced correctly outside of streaming services. You must have a different setup to me.

    • FriendOfDeSoto@startrek.website
      link
      fedilink
      English
      arrow-up
      4
      ·
      6 hours ago

      I think the problem arises mostly from trying to add subtitles to arrrr creatively acquired videos where the settings of the creator were not adhered to in the strictest sense.

      I mean, I totally wouldn’t know about that myself, I just heard about it online.

      • Lumidaub@feddit.org
        link
        fedilink
        arrow-up
        3
        ·
        6 hours ago

        It also arises simply from digital copies of DVDs that don’t come with subtitles. Which I unfortunately know too much about.

    • enchantedgoldapple@sopuli.xyzOP
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      Unfortunately from where I watch movies it is pretty common for the stream and the subtitles to not sync by default as they come from different sources, so syncing them manually is inevitable.