summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/stream b/bin/stream
index 6395225..523181c 100755
--- a/bin/stream
+++ b/bin/stream
@@ -74,6 +74,8 @@ while [ $# -gt 0 ]; do
dvcam) DVCAM=auto; XINPUT=$((XINPUT+1));;
dc=*) IIDC=${1#*=}; VINPUT=$((VINPUT+1));;
dc) IIDC=/dev/fw1; VINPUT=$((VINPUT+1));;
+ dv-stream=*) AVISTREAM="-f avi -i ${1#*=}"; XINPUT=$((XINPUT+1));;
+ dv-stream) AVISTREAM="-f avi -i udp://localhost:10000"; XINPUT=$((XINPUT+1));;
videofile=*) VFILE=${1#*=}; VINPUT=$((VINPUT+1));;
*.ffv1|*.yuv|*.vp8|*.vp9) VFILE=$1; VINPUT=$((VINPUT+1));;
container=*) XFILE=${1#*=}; XINPUT=$((XINPUT+1));;
@@ -221,6 +223,7 @@ tee_rtp() { stream=$1; pt=$2; port=$3;
ffmpeg -hide_banner -threads auto \
${ALSA:+-f alsa -sample_rate "$AFRAMERATE_SRC" -channels "$ACHANNELS" -thread_queue_size 2048 -i "$ALSA"} \
${DVCAM:+-f iec61883 -thread_queue_size 64 -i $DVCAM} \
+ ${AVISTREAM:-} \
${XFILE:+-re${SEEK:+ -ss $SEEK} -i "$XFILE"} \
${IIDC:+-f libdc1394 -video_size 640x480 -framerate 15 -thread_queue_size 256 -i "$IIDC"} \
${VFILE:+-re${SEEK:+ -ss $SEEK} -i "$VFILE"} \