From 70844759a6d289825aff588f5bed3d7253ffdb24 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 28 Apr 2017 01:03:34 +0200 Subject: Support container source. --- bin/stream | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/stream') 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 \ -- cgit v1.2.3