summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-07 01:16:11 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-07 01:16:11 +0200
commit13197f0c92482fe5e21948305392046b540d4ddb (patch)
tree430fe031b061e40309d393c9564e26995a0891e6 /bin/stream
parentad977a6874a78f41a04ea4deb1e258fc2d1e376d (diff)
Fix save DVCAM as dv (not convoluted and seemingly unreadable matroska).
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream8
1 files changed, 3 insertions, 5 deletions
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:+\