summaryrefslogtreecommitdiff
path: root/bin/loop+encode+stream
diff options
context:
space:
mode:
Diffstat (limited to 'bin/loop+encode+stream')
-rwxr-xr-xbin/loop+encode+stream4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/loop+encode+stream b/bin/loop+encode+stream
index cc21629..fc944fe 100755
--- a/bin/loop+encode+stream
+++ b/bin/loop+encode+stream
@@ -16,7 +16,7 @@ fi
FIRSTPORT=${2:-5002} # even number - next 3 ports used too
ACHANNELS=2
-AFRAMERATE=48000
+AFRAMERATE_OPUS=48000
ABITRATE=32000
# TODO
@@ -37,7 +37,7 @@ fi
ffmpeg -hide_banner -threads auto -re \
-stream_loop -1 -i "$INPUT" \
-map '0:a' \
- -codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE" -b:a "$ABITRATE" \
+ -codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE_OPUS" -b:a "$ABITRATE" \
-f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \
-map '0:v' \
-pix_fmt yuv420p \