summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-11 14:13:56 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-11 14:13:56 +0200
commit44c56454c3463e6c7058b1b183a91fbe318c3791 (patch)
treee51b94e0cced873eb6d2671e229d12a842a7d32d /bin/stream
parent3814d318885097515966eb5cdf3c15db42d43c8c (diff)
Support SEEKing in file sources.
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream4
1 files changed, 2 insertions, 2 deletions
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);