summaryrefslogtreecommitdiff
path: root/bin/loop+encode+stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-16 13:56:49 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-16 13:56:49 +0200
commit8dcd0a663d409ae42d5ae2fb9f73a8c29f46a2d3 (patch)
tree2b2b842ca80e3c6c0870ce38c8865fddfab52b95 /bin/loop+encode+stream
parent4cf5f65c2eb911b3f94cbbaa8480b588173a3fd8 (diff)
Rename and split variable AFRAMERATE → AFRAMERATE_SRC AFRAMERATE_OPUS AFRAMERATE_AAC.
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 \