diff options
Diffstat (limited to 'example-scripts/gstreamer/source-videotestsrc-as-cam3.sh')
-rwxr-xr-x | example-scripts/gstreamer/source-videotestsrc-as-cam3.sh | 19 |
1 files changed, 19 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 |