From 44c56454c3463e6c7058b1b183a91fbe318c3791 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 11 May 2017 14:13:56 +0200 Subject: Support SEEKing in file sources. --- bin/stream | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/stream b/bin/stream index 21f0fe5..77d59a3 100755 --- a/bin/stream +++ b/bin/stream @@ -143,9 +143,9 @@ tee_rtp() { stream=$1; pt=$2; port=$3; ffmpeg -hide_banner -threads auto \ ${ALSA:+-f alsa -sample_rate "$AFRAMERATE" -channels "$ACHANNELS" -thread_queue_size 2048 -i "$ALSA"} \ ${DVCAM:+-f iec61883 -thread_queue_size 64 -i $DVCAM} \ - ${XFILE:+-re -i "$XFILE"} \ + ${XFILE:+-re${SEEK:+ -ss $SEEK} -i "$XFILE"} \ ${IIDC:+-f libdc1394 -video_size 640x480 -framerate 15 -thread_queue_size 256 -i "$IIDC"} \ - ${VFILE:+-re -i "$VFILE"} \ + ${VFILE:+-re${SEEK:+ -ss $SEEK} -i "$VFILE"} \ ${LOGO:+-i "$LOGO"} \ ${HASVIDEO:+-filter_complex \ "$(filter_split_height); -- cgit v1.2.3