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/gstreamer/source-videotestsrc-as-cam2.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'example-scripts/gstreamer/source-videotestsrc-as-cam2.sh') diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh index 2d39d9f..a89de52 100755 --- a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh +++ b/example-scripts/gstreamer/source-videotestsrc-as-cam2.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=ball foreground-color=0x0000ff00 background-color=0x00004400 !\ video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \ -- cgit v1.2.3