From 99e0ed8db8ffd97586fbb2c99948bd17d4d2b7f8 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 28 Apr 2017 10:31:41 +0200 Subject: Save clock-aligned 10-minute segments. --- bin/stream | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/stream b/bin/stream index afb0de5..ca5045a 100755 --- a/bin/stream +++ b/bin/stream @@ -96,7 +96,9 @@ ffmpeg -hide_banner -threads auto -re \ [bg][$((VSTREAMINDEX+1)):v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]}}"} \ ${SAVEDIR:+-map '0:' ${TWOSOURCES:+-map '1:'} \ -codec copy \ - -f matroska "file:$SAVESTEM.mkv"} \ + -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"} \ ${MAYBEAUDIO:+-map '0:a' \ -codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE" -b:a "$ABITRATE" \ -f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200"} \ -- cgit v1.2.3