summaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/gstreamer/source-videotestsrc-as-cam1.sh')
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam1.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
index 5026260..d43709e 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
@@ -1,11 +1,12 @@
#!/bin/sh
+. `dirname "$0"`/../config.sh
gst-launch-1.0 \
videotestsrc pattern=ball foreground-color=0x00ff0000 background-color=0x00440000 !\
- 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. \
\
audiotestsrc freq=440 !\
- audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\
+ audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=$AUDIORATE !\
mux. \
\
matroskamux name=mux !\