diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-07 01:16:11 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-07 01:16:11 +0200 |
commit | 13197f0c92482fe5e21948305392046b540d4ddb (patch) | |
tree | 430fe031b061e40309d393c9564e26995a0891e6 /bin/stream | |
parent | ad977a6874a78f41a04ea4deb1e258fc2d1e376d (diff) |
Fix save DVCAM as dv (not convoluted and seemingly unreadable matroska).
Diffstat (limited to 'bin/stream')
-rwxr-xr-x | bin/stream | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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:+\ |