From 463ab55b178935d72442b71748786c22f1f0e027 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 5 Aug 2016 16:32:49 +0200 Subject: allows overriding the default-config of the example-scripts --- example-scripts/ffmpeg/source-background-loop.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'example-scripts/ffmpeg/source-background-loop.sh') diff --git a/example-scripts/ffmpeg/source-background-loop.sh b/example-scripts/ffmpeg/source-background-loop.sh index d88164d..a88c39d 100755 --- a/example-scripts/ffmpeg/source-background-loop.sh +++ b/example-scripts/ffmpeg/source-background-loop.sh @@ -1,5 +1,10 @@ #!/bin/sh -. `dirname "$0"`/../config.sh +confdir="`dirname "$0"`/../" +. $confdir/default-config.sh +if [ -f $confdir/config.sh ]; then + . $confdir/config.sh +fi + wget -nc -O /tmp/bg.ts http://c3voc.mazdermind.de/testfiles/bg.ts while true; do cat /tmp/bg.ts || exit 1; done |\ ffmpeg -y -nostdin -re -i - \ -- cgit v1.2.3