diff options
Diffstat (limited to 'bin/loop+encode+stream')
-rwxr-xr-x | bin/loop+encode+stream | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/loop+encode+stream b/bin/loop+encode+stream index 7c1ab79..100b6c1 100755 --- a/bin/loop+encode+stream +++ b/bin/loop+encode+stream @@ -15,6 +15,7 @@ fi FIRSTPORT=${2:-5002} # even number - next 3 ports used too +AFRAMERATE=48000 ABITRATE=32000 VBITRATE=256000 @@ -24,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 48000 \ + -codec:a libopus -ac 2 -b:a "$ABITRATE" -ar "$AFRAMERATE" \ -vn \ -f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \ -an \ |