summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-07 09:46:02 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-07 09:46:02 +0200
commit357429ed817166ba0ba47d2e6e13158642b450dc (patch)
treeb15b88d7990b7db7bc4dab8b531bca966266c6a1 /bin/stream
parentcdc8cabc4fe628eb1f524b0a67781460974c82de (diff)
Quit when a single input runs out.
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/stream b/bin/stream
index 8ecbf78..39233ce 100755
--- a/bin/stream
+++ b/bin/stream
@@ -156,7 +156,7 @@ ffmpeg -hide_banner -threads auto -re \
${DVCAM:+-map $((0${ALSA:++1})) \
-codec copy -f dv "$SAVESTEM.dv" }} \
${HEIGHTS_WEBM:+\
- ${HASAUDIO:+-map '0:a' }${HASVIDEO:+$(printf_each ' -map [v%swebm]' "$HEIGHTS_WEBM") } \
+ ${HASAUDIO:+-map '0:a' }${HASVIDEO:+$(printf_each ' -map [v%swebm]' "$HEIGHTS_WEBM") } -shortest \
${HASAUDIO:+\
-codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE" -b:a "$ABITRATE" } \
${HASVIDEO:+\
@@ -172,7 +172,7 @@ ffmpeg -hide_banner -threads auto -re \
}${HASVIDEO:+\
$(tee_rtp v 100 $((FIRSTPORT+2)))}" } \
${HEIGHTS_MPEG:+\
- ${HASAUDIO:+-map '0:a' }${HASVIDEO:+$(printf_each ' -map [v%smpeg]' "$HEIGHTS_MPEG") } \
+ ${HASAUDIO:+-map '0:a' }${HASVIDEO:+$(printf_each ' -map [v%smpeg]' "$HEIGHTS_MPEG") } -shortest \
${HASAUDIO:+\
-codec:a aac -strict experimental -ac "$ACHANNELS" -ar 44100 -b:a $((ACHANNELS*64))k } \
${HASVIDEO:+\