diff options
author | Hoang Dinh <[email protected]> | 2024-09-22 10:28:08 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-09-22 13:28:08 -0400 |
commit | c69be93cd6bf9cf4ce6339052e938a3c5420e31f (patch) | |
tree | 185781f7ea1f36999bb47638397ce03db93da4e3 /custom_libs/subliminal_patch/providers/whisperai.py | |
parent | 14a361dd97bb89204c748f60ef6052544d992dac (diff) | |
download | bazarr-c69be93cd6bf9cf4ce6339052e938a3c5420e31f.tar.gz bazarr-c69be93cd6bf9cf4ce6339052e938a3c5420e31f.zip |
Improved embeddedsubtitles provider by turning on Audio Sync during audio extraction processv1.4.5-beta.2
Diffstat (limited to 'custom_libs/subliminal_patch/providers/whisperai.py')
-rw-r--r-- | custom_libs/subliminal_patch/providers/whisperai.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/providers/whisperai.py b/custom_libs/subliminal_patch/providers/whisperai.py index d427f8ad2..866585cdb 100644 --- a/custom_libs/subliminal_patch/providers/whisperai.py +++ b/custom_libs/subliminal_patch/providers/whisperai.py @@ -143,7 +143,7 @@ def encode_audio_stream(path, ffmpeg_path, audio_stream_language=None): logger.debug(f"Whisper will only use the {audio_stream_language} audio stream for {path}") inp = inp[f'a:m:language:{audio_stream_language}'] - out, _ = inp.output("-", format="s16le", acodec="pcm_s16le", ac=1, ar=16000) \ + out, _ = inp.output("-", format="s16le", acodec="pcm_s16le", ac=1, ar=16000, af="aresample=async=1") \ .run(cmd=[ffmpeg_path, "-nostdin"], capture_stdout=True, capture_stderr=True) except ffmpeg.Error as e: |