summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-21 23:24:14 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-21 23:24:14 +0200
commitd777e8288d859c53827ca9b6a2ec753520004e2d (patch)
tree3b2170cb488a209f90ddd60d3e022d1f66d30cf7 /bin/stream
parent205d88e2f87cd9728f23fc2cdac2487769e6bb21 (diff)
Really fix support audio-only or video-only.
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/stream b/bin/stream
index 60660f0..2638747 100755
--- a/bin/stream
+++ b/bin/stream
@@ -265,10 +265,9 @@ ffmpeg -hide_banner -threads auto \
${HASVIDEO:+\
$(encode_vp8 "$VBITRATE" "$SPEED_VP8") } \
-f tee \
- "${HASAUDIO:+\
- $(tee_rtp a 111 "$FIRSTPORT")${HASMULTIMEDIA:+|}\
- }${HASVIDEO:+\
- $(tee_rtp v 100 $((FIRSTPORT+2)))}" } \
+ "${HASAUDIO:+$(tee_rtp a 111 "$FIRSTPORT")}
+ ${HASMULTIMEDIA:+|}
+ ${HASVIDEO:+$(tee_rtp v 100 $((FIRSTPORT+2)))}" } \
${HEIGHTS_MPEG:+\
${HASAUDIO:+-map '0:a' }${HASVIDEO:+$(printf_each ' -map [v%smpeg]' "$HEIGHTS_MPEG") } -shortest \
${HASAUDIO:+\