mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-09-20 07:25:58 +08:00
Merge 4a14707f06
into b8aa2a8b1a
This commit is contained in:
commit
63cfdf1431
|
@ -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:
|
||||
|
|
|
@ -367,6 +367,8 @@ class VideoSpeechTransformer(TransformerMixin):
|
|||
"1",
|
||||
"-acodec",
|
||||
"pcm_s16le",
|
||||
"-af",
|
||||
"aresample=async=1",
|
||||
"-ar",
|
||||
str(self.frame_rate),
|
||||
"-",
|
||||
|
|
Loading…
Reference in a new issue