aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-02-28 15:10:39 +0100
committerJonas Smedegaard <dr@jones.dk>2017-02-28 15:10:39 +0100
commitcb42a9ad193179c527b44eccd3ca3ac59d573386 (patch)
tree8967af004209c8d7f159e45e5807979c7ca5953f /example-scripts/gstreamer
parent6ce57b47f050c39fbf28f4af639ef19608a74cfa (diff)
Add composition Matrix Two-by-two.
Diffstat (limited to 'example-scripts/gstreamer')
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam3.sh19
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam4.sh19
2 files changed, 38 insertions, 0 deletions
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam3.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam3.sh
new file mode 100755
index 0000000..85787b2
--- /dev/null
+++ b/example-scripts/gstreamer/source-videotestsrc-as-cam3.sh
@@ -0,0 +1,19 @@
+#!/bin/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=0x000000ff background-color=0x00000044 !\
+ video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \
+ mux. \
+ \
+ audiotestsrc freq=660 !\
+ audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=$AUDIORATE !\
+ mux. \
+ \
+ matroskamux name=mux !\
+ tcpclientsink host=$MIXHOST port=10002
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam4.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam4.sh
new file mode 100755
index 0000000..6bee2f3
--- /dev/null
+++ b/example-scripts/gstreamer/source-videotestsrc-as-cam4.sh
@@ -0,0 +1,19 @@
+#!/bin/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=0x00ffff00 background-color=0x00444400 !\
+ video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \
+ mux. \
+ \
+ audiotestsrc freq=770 !\
+ audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=$AUDIORATE !\
+ mux. \
+ \
+ matroskamux name=mux !\
+ tcpclientsink host=$MIXHOST port=10003