From 591363b3f42766b8dc1808b689fcfee15a715b92 Mon Sep 17 00:00:00 2001 From: mrlt8 <67088095+mrlt8@users.noreply.github.com> Date: Wed, 21 Aug 2024 19:20:01 -0700 Subject: [PATCH] mono audio --- app/wyzebridge/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"