From 357429ed817166ba0ba47d2e6e13158642b450dc Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 7 May 2017 09:46:02 +0200 Subject: Quit when a single input runs out. --- bin/stream | 4 ++-- 1 file 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:+\ -- cgit v1.2.3