diff --git a/app/wyzebridge/ffmpeg.py b/app/wyzebridge/ffmpeg.py index b05e60da..a3006de4 100644 --- a/app/wyzebridge/ffmpeg.py +++ b/app/wyzebridge/ffmpeg.py @@ -35,7 +35,7 @@ def get_ffmpeg_cmd( thread_queue = "-thread_queue_size 8 -analyzeduration 32 -probesize 32" if audio and "codec" in audio: # `Option sample_rate not found.` if we try to specify -ar for aac: - rate = "" if audio["codec"] == "aac" else f" -ar {audio['rate']}" + rate = "" if audio["codec"] == "aac" else f" -ar {audio['rate']} -ac 1" audio_in = f"{thread_queue} -f {audio['codec']}{rate} -i /tmp/{uri}_audio.pipe" audio_out = audio["codec_out"] or "copy" a_filter = env_bool("AUDIO_FILTER", "volume=5") + ",adelay=0|0"