summaryrefslogtreecommitdiff
path: root/bin/loop+encode+stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-16 13:59:07 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-16 13:59:07 +0200
commit3fe329a251c3b2dae13d3cc9663da231f5f49db4 (patch)
tree6f2963d88b746afd1a5d840394fecb6fb87cc648 /bin/loop+encode+stream
parent8dcd0a663d409ae42d5ae2fb9f73a8c29f46a2d3 (diff)
Rename and split variable ABITRATE → ABITRATE_OPUS ABITRATE_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 fc944fe..b767dca 100755
--- a/bin/loop+encode+stream
+++ b/bin/loop+encode+stream
@@ -17,7 +17,7 @@ FIRSTPORT=${2:-5002} # even number - next 3 ports used too
ACHANNELS=2
AFRAMERATE_OPUS=48000
-ABITRATE=32000
+ABITRATE_OPUS=32000
# TODO
HEIGHT=360
@@ -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_OPUS" -b:a "$ABITRATE" \
+ -codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE_OPUS" -b:a "$ABITRATE_OPUS" \
-f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \
-map '0:v' \
-pix_fmt yuv420p \