Skip to content

Commit

Permalink
Update subsyncer.py
Browse files Browse the repository at this point in the history
Removed the "no fix framerate" argument so that ffsubsync is able to fix subtitles being used for TV series that lightly speed up their broadcast versions of their shows.

This argument was initially put into place because earlier versions of ffsubsync didn't do well without it. To be safe, the "max offset seconds" was also added, to avoid ffsubsync offseting a subtitle more than 10 seconds.
  • Loading branch information
balkce authored Oct 19, 2023
1 parent 2ad7ddf commit b2b02cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bazarr/subtitles/tools/subsyncer.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def sync(self, video_path, srt_path, srt_lang, media_type, sonarr_series_id=None
unparsed_args = [self.reference, '-i', self.srtin, '-o', self.srtout, '--ffmpegpath', self.ffmpeg_path, '--vad',
self.vad, '--log-dir-path', self.log_dir_path]
if settings.subsync.force_audio:
unparsed_args.append('--no-fix-framerate')
unparsed_args.append('--max-offset-seconds')
unparsed_args.append('10')
unparsed_args.append('--reference-stream')
unparsed_args.append('a:0')
if settings.subsync.debug:
Expand Down

0 comments on commit b2b02cc

Please sign in to comment.