summaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2016-08-05 16:32:49 +0200
committerMaZderMind <git@mazdermind.de>2016-08-05 16:32:49 +0200
commit463ab55b178935d72442b71748786c22f1f0e027 (patch)
treeb5bb905495e6131bd64f2b4aa625f438169eeaa7 /example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
parent59f0abcf365e7c80bb51912d95ccc6d262d759c8 (diff)
allows overriding the default-config of the example-scripts
Diffstat (limited to 'example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh')
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-background-loop.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh b/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
index ea550ef..b889517 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-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
+
gst-launch-1.0 \
videotestsrc pattern=smpte !\
video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \