summaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh')
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-background-loop.sh3
1 files changed, 2 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 a96786a..ea550ef 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
@@ -1,7 +1,8 @@
#!/bin/sh
+. `dirname "$0"`/../config.sh
gst-launch-1.0 \
videotestsrc pattern=smpte !\
- video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 !\
+ video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \
mux. \
\
matroskamux name=mux !\