summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/stream12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/stream b/bin/stream
index 686b1c1..a0a2fae 100755
--- a/bin/stream
+++ b/bin/stream
@@ -137,8 +137,10 @@ ffmpeg -hide_banner -threads auto -re \
-max-intra-rate 0 \
-qmin 4 -qmax 56 } \
-f tee \
- "${HASAUDIO:+[select=\'a\':f=rtp:payload_type=111]rtp://$IP:$FIRSTPORT?pkt_size=1200| \
- }${HASVIDEO:+[select=\'v\':f=rtp:payload_type=100]rtp://$IP:$((FIRSTPORT+2))?pkt_size=1200}" } \
+ "${HASAUDIO:+\
+ [select=\'a\':f=rtp:payload_type=111]rtp://$IP:$FIRSTPORT?pkt_size=1200| \
+ }${HASVIDEO:+\
+ [select=\'v\':f=rtp:payload_type=100]rtp://$IP:$((FIRSTPORT+2))?pkt_size=1200}" } \
${HEIGHTS_MPEG:+\
${HASAUDIO:+-map '0:a' }${HASVIDEO:+$(printf_each ' -map [v%smpeg]' "$HEIGHTS_MPEG") } \
${HASAUDIO:+\
@@ -148,5 +150,7 @@ ffmpeg -hide_banner -threads auto -re \
-codec:v libx264 -tune zerolatency -preset ultrafast \
-maxrate "$VBITRATE" -bufsize "$((VBITRATE*2))" -crf 23 } \
-f tee \
- "${HASAUDIO:+[select=\'a\':f=rtp:payload_type=96]rtp://$IP:$((FIRSTPORT+4))?pkt_size=1200| \
- }${HASVIDEO:+[select=\'v\':f=rtp:payload_type=97]rtp://$IP:$((FIRSTPORT+6))?pkt_size=1200}" }
+ "${HASAUDIO:+\
+ [select=\'a\':f=rtp:payload_type=96]rtp://$IP:$((FIRSTPORT+4))?pkt_size=1200| \
+ }${HASVIDEO:+\
+ [select=\'v\':f=rtp:payload_type=97]rtp://$IP:$((FIRSTPORT+6))?pkt_size=1200}" }