summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-06 16:54:58 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-06 16:54:58 +0200
commitd3e6dec404ac9137351e7a42db7c00fd7458213e (patch)
treeb0cdac7e6d5aff0f0127a62aa0399149374ff90e
parentf6c9bd0e9e81210b119df4a608c6c2be274ba2b8 (diff)
Tidy whitespace.
-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}" }