Skip to content

Commit

Permalink
mono audio
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Aug 22, 2024
1 parent 40425f6 commit 591363b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/wyzebridge/ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 591363b

Please sign in to comment.