summaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/gstreamer/source-videotestsrc-as-grabber.sh')
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-grabber.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
index b5cd84c..005b027 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-grabber.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=snow !\
video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \