diff --git a/bazarr/app/config.py b/bazarr/app/config.py
index 009c4235e..ac2796d1f 100644
--- a/bazarr/app/config.py
+++ b/bazarr/app/config.py
@@ -219,7 +219,8 @@ defaults = {
'subsync_threshold': '90',
'use_subsync_movie_threshold': 'False',
'subsync_movie_threshold': '70',
- 'debug': 'False'
+ 'debug': 'False',
+ 'force_audio': 'False'
},
'series_scores': {
"hash": 359,
diff --git a/bazarr/subtitles/tools/subsyncer.py b/bazarr/subtitles/tools/subsyncer.py
index bedbbde60..7fea01fbc 100644
--- a/bazarr/subtitles/tools/subsyncer.py
+++ b/bazarr/subtitles/tools/subsyncer.py
@@ -54,6 +54,10 @@ class SubSyncer:
try:
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.getboolean('force_audio'):
+ unparsed_args.append('--no-fix-framerate ')
+ unparsed_args.append('--reference-stream')
+ unparsed_args.append('a:0')
if settings.subsync.getboolean('debug'):
unparsed_args.append('--make-test-case')
parser = make_parser()
diff --git a/frontend/src/pages/Settings/Subtitles/index.tsx b/frontend/src/pages/Settings/Subtitles/index.tsx
index adb0b56d5..2c71b3cdc 100644
--- a/frontend/src/pages/Settings/Subtitles/index.tsx
+++ b/frontend/src/pages/Settings/Subtitles/index.tsx
@@ -364,6 +364,14 @@ const SettingsSubtitlesView: FunctionComponent = () => {
Must be 4 digit octal
+
+
+ Use the audio track as reference for syncing, instead of using the
+ embedded subtitle.
+