diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-04-24 08:59:07 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-04-24 08:59:07 +0200 |
commit | 5f51d9a1ac60fcb524344bf0987957fcf0c212f2 (patch) | |
tree | 1711581becafdb5468dae20165e7e2fdd08a8b2b /bin/decode+edit+encode+stream | |
parent | 02dbe051b24febac0583bbb64aa37dc5636a2b89 (diff) |
Add variable ACHANNELS.
Diffstat (limited to 'bin/decode+edit+encode+stream')
-rwxr-xr-x | bin/decode+edit+encode+stream | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/decode+edit+encode+stream b/bin/decode+edit+encode+stream index 3c6e1a4..f38252f 100755 --- a/bin/decode+edit+encode+stream +++ b/bin/decode+edit+encode+stream @@ -14,6 +14,7 @@ fi FIRSTPORT=${2:-5002} # even number - next 3 ports used too +ACHANNELS=2 AFRAMERATE=48000 ABITRATE=32000 @@ -30,7 +31,7 @@ ffmpeg -threads auto -re \ -vf \ "[0:v]scale=-1:$HEIGHT[bg]; [bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20" \ - -codec:a libopus -ac 2 -ar "$AFRAMERATE" -b:a "$ABITRATE" \ + -codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE" -b:a "$ABITRATE" \ -vn \ -f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \ -an \ |