diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-21 23:24:14 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-21 23:24:14 +0200 |
commit | d777e8288d859c53827ca9b6a2ec753520004e2d (patch) | |
tree | 3b2170cb488a209f90ddd60d3e022d1f66d30cf7 | |
parent | 205d88e2f87cd9728f23fc2cdac2487769e6bb21 (diff) |
Really fix support audio-only or video-only.
-rwxr-xr-x | bin/stream | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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:+\ |