AdvancedProfanityFilter icon indicating copy to clipboard operation
AdvancedProfanityFilter copied to clipboard

Option to Adjust Caption Sync in Milliseconds

Open richardfrost opened this issue 4 years ago • 1 comments

:loudspeaker: The Shortcoming

Ability to adjust the timings for muting.

:microscope: Describe the solution you'd like

Would you add an time regulator/adjuster to sync what's being said and what is on the subtitles? You have good settings but I think a little slider for miliseconds could be perhaps added to those awesome features you already display!

:pencil: Additional context

Reported by Giovanni Wozz on the Chrome Web Store

richardfrost avatar Mar 22 '20 21:03 richardfrost

As it stands today, there are 4 different methods (modes) used for audio filtering:

  • Element
  • Cue
  • Text
  • Watcher

The only mode that would support 2 way syncing is cue. That is because the other methods can't see the text that is coming in the future. It could be possible to adjust it backwards, but for now I don't have plans to address that.

You can see which mode a particular site uses by going to the Audio tab in the Options page and then clicking on "View Supported Sites". Look at the config for `"mode": "cue" to identify the ones where this would work.

Currently, you can adjust the sync with a config change for a particular site. I think it would make sense to add an interface to control it, but I haven't gotten around to it. Anyway, at present, you should be able to adjust the sync for a site that uses the cue mode by using the "videoCueSync" property like this:

{
    "www.cbs.com": [
    {
      "mode": "cue",
      "videoCueLanguage": "en",
      "videoCueRequireShowing": false,
      "videoCueSync": -1.5
    }
  ],
}

In this example, captions would be moved back by 1.5 seconds. A positive number would move them forward that many seconds.

It seems to me that it would make more sense for this setting to be temporary for the current page/video, because its not likely that all videos would benefit from the same offset value as it usually varies from video to video.

  • [ ] Add interface to Pop-up when a cue rule is active for temporarily adjusting the sync

richardfrost avatar Mar 22 '20 22:03 richardfrost