aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts/gstreamer')
-rwxr-xr-xexample-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh5
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-background-loop.sh3
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam1.sh5
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam2.sh5
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-grabber.sh5
5 files changed, 14 insertions, 9 deletions
diff --git a/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh b/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh
index 14d9f6c..f100cb0 100755
--- a/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh
+++ b/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+. `dirname "$0"`/../config.sh
gst-launch-1.0 \
uridecodebin \
uri=http://c3voc.mazdermind.de/testfiles/avsync.mp4 \
@@ -8,7 +9,7 @@ gst-launch-1.0 \
queue !\
videoconvert !\
videoscale !\
- 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. \
\
src. !\
@@ -16,7 +17,7 @@ gst-launch-1.0 \
audioconvert !\
audioresample !\
audiorate !\
- 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 !\
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 !\
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 !\
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
index 4e723b4..2d39d9f 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
@@ -1,11 +1,12 @@
#!/bin/sh
+. `dirname "$0"`/../config.sh
gst-launch-1.0 \
videotestsrc pattern=ball foreground-color=0x0000ff00 background-color=0x00004400 !\
- 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=550 !\
- 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 !\
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
index 67a6c65..b5cd84c 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
@@ -1,11 +1,12 @@
#!/bin/sh
+. `dirname "$0"`/../config.sh
gst-launch-1.0 \
videotestsrc pattern=snow !\
- 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 !\
- 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 !\