summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-28 01:03:34 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-28 01:03:34 +0200
commit70844759a6d289825aff588f5bed3d7253ffdb24 (patch)
tree1708bd29395e21813bf310c7a9bf254ef83f3fa2 /bin/stream
parente3253453cff0ccca207276a45dee45cf0a957808 (diff)
Support container source.
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 3ab064a..1755141 100755
--- a/bin/stream
+++ b/bin/stream
@@ -38,6 +38,8 @@ while [ $# -gt 0 ]; do
dvcam) DVCAM=auto; XINPUT=$((XINPUT+1));;
dc=*) IIDC=${1#*=}; VINPUT=$((VINPUT+1));;
dc) IIDC=/dev/fw1; VINPUT=$((VINPUT+1));;
+ container=*) XFILE=${1#*=}; XINPUT=$((XINPUT+1));;
+ *.avi|*.mkv|*.mov|*.mp4|*.ogg|*.ogv|*.webm) XFILE=$1; XINPUT=$((XINPUT+1));;
*.png) LOGO=$1; WINPUT=$((WINPUT+1));;
--) shift; break;;
*) exit1 "Unsupported input: $1";;
@@ -77,6 +79,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} \
+ ${XFILE:+-i "$XFILE"} \
${IIDC:+-f libdc1394 -video_size 640x480 -framerate 15 -thread_queue_size 256 -i "$IIDC"} \
${LOGO:+-i "$LOGO"} \
-filter_complex \