summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-22 11:00:33 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-22 11:00:33 +0200
commitc4bb1cbe780f0b797a3ca2b39c124f85f4ef4551 (patch)
treeff90131edfca9c7223a3e8ea757f584b7d1e8a9b /bin
parent88429972781b35be7e80ce4184e95cfca26d9a32 (diff)
Skip filter when there are no encodings.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/stream7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/stream b/bin/stream
index aaaa523..ca78179 100755
--- a/bin/stream
+++ b/bin/stream
@@ -250,9 +250,10 @@ ffmpeg -hide_banner -threads auto \
${IIDC:+-f libdc1394 -video_size 640x480 -framerate 15 -thread_queue_size 256 -i "$IIDC"} \
${VFILE:+-re${SEEK:+ -ss $SEEK} -i "$VFILE"} \
${LOGO:+-i "$LOGO"} \
- ${HASVIDEO:+-filter_complex \
- "$(filters_compose "${LOGO:+$((VSTREAMINDEX+1))}");
- $(filter_split_codec "$ENCODINGS_WEBM" "$ENCODINGS_MPEG")" } \
+ ${ENCODINGS:+-filter_complex "\
+ ${HASVIDEO:+
+ $(filters_compose "${LOGO:+$((VSTREAMINDEX+1))}");
+ $(filter_split_codec "$ENCODINGS_WEBM" "$ENCODINGS_MPEG") }"} \
${SAVEDIR:+\
${DVCAM:+-map $((0${ALSA:++1})) \
-codec copy -f dv "$SAVESTEM.dv" }} \