summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-20 09:24:08 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-20 09:24:08 +0200
commit9ff03506f6710135e9aeccc636e6db9c117ef890 (patch)
tree090671283a6ca37f8e76ef967746360646f3b6a8
parent7939259c588ce443c8618f3420c27af4d10cba4c (diff)
Support AVI-muxed dv-stream input.
-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"} \