From 13197f0c92482fe5e21948305392046b540d4ddb Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 7 May 2017 01:16:11 +0200 Subject: Fix save DVCAM as dv (not convoluted and seemingly unreadable matroska). --- bin/stream | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/stream b/bin/stream index 275bdbd..1c20f13 100755 --- a/bin/stream +++ b/bin/stream @@ -152,11 +152,9 @@ ffmpeg -hide_banner -threads auto -re \ $(filter_scale "${WINPUT:+bg}")${WINPUT:+${LOGO:+; $(filter_watermark)}}; $(filter_split_codec "$HEIGHTS_WEBM" "$HEIGHTS_MPEG")" } \ - ${SAVEDIR:+-map '0:' ${TWOSOURCES:+-map '1:'} \ - -codec copy \ - -f segment -segment_format matroska -segment_format_options live=1:reserve_index_space=512kB \ - -segment_list "$SAVESTEM.ffconcat" -segment_list_flags live \ - -segment_time 600 -segment_atclocktime 1 -strftime 1 "$SAVESTEM-%H%M.mkv"} \ + ${SAVEDIR:+\ + ${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:+\ -- cgit v1.2.3