diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-04-24 08:49:16 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-04-24 08:49:16 +0200 |
commit | 02dbe051b24febac0583bbb64aa37dc5636a2b89 (patch) | |
tree | e23c679fbf99f1769a57f96877fe21184f897b57 /bin | |
parent | 2015793e894a829ba072d233cbaa8114d2968e06 (diff) |
Cosmetics: Apply AFRAMERATE before ABITRATE.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/decode+edit+encode+stream | 2 | ||||
-rwxr-xr-x | bin/loop+encode+stream | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/decode+edit+encode+stream b/bin/decode+edit+encode+stream index 04a733c..3c6e1a4 100755 --- a/bin/decode+edit+encode+stream +++ b/bin/decode+edit+encode+stream @@ -30,7 +30,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 -b:a "$ABITRATE" -ar "$AFRAMERATE" \ + -codec:a libopus -ac 2 -ar "$AFRAMERATE" -b:a "$ABITRATE" \ -vn \ -f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \ -an \ diff --git a/bin/loop+encode+stream b/bin/loop+encode+stream index 100b6c1..4266b53 100755 --- a/bin/loop+encode+stream +++ b/bin/loop+encode+stream @@ -25,7 +25,7 @@ VBITRATE=256000 # + Use same RTP payload types as GStreamer ffmpeg -threads auto -re \ -stream_loop -1 -i "$INPUT" \ - -codec:a libopus -ac 2 -b:a "$ABITRATE" -ar "$AFRAMERATE" \ + -codec:a libopus -ac 2 -ar "$AFRAMERATE" -b:a "$ABITRATE" \ -vn \ -f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \ -an \ |