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 0e99129..3ab064a 100755
--- a/bin/stream
+++ b/bin/stream
@@ -36,6 +36,8 @@ while [ $# -gt 0 ]; do
alsa) ALSA=default; AINPUT=$((AINPUT+1));;
dvcam=*) DVCAM=${1#*=}; XINPUT=$((XINPUT+1));;
dvcam) DVCAM=auto; XINPUT=$((XINPUT+1));;
+ dc=*) IIDC=${1#*=}; VINPUT=$((VINPUT+1));;
+ dc) IIDC=/dev/fw1; VINPUT=$((VINPUT+1));;
*.png) LOGO=$1; WINPUT=$((WINPUT+1));;
--) shift; break;;
*) exit1 "Unsupported input: $1";;
@@ -75,6 +77,7 @@ VBITRATE=256000
ffmpeg -hide_banner -threads auto -re \
${ALSA:+-f alsa -sample_rate "$AFRAMERATE" -channels "$ACHANNELS" -thread_queue_size 1024 -i "$ALSA"} \
${DVCAM:+-f iec61883 -i $DVCAM} \
+ ${IIDC:+-f libdc1394 -video_size 640x480 -framerate 15 -thread_queue_size 256 -i "$IIDC"} \
${LOGO:+-i "$LOGO"} \
-filter_complex \
"[$VSTREAMINDEX:v]scale=-1:$HEIGHT[bg]${LOGO:+;