diff options
Diffstat (limited to 'example-scripts/gstreamer')
5 files changed, 30 insertions, 5 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 f100cb0..5c77882 100755 --- a/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh +++ b/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh @@ -1,5 +1,10 @@ #!/bin/sh -. `dirname "$0"`/../config.sh +confdir="`dirname "$0"`/../" +. $confdir/default-config.sh +if [ -f $confdir/config.sh ]; then + . $confdir/config.sh +fi + gst-launch-1.0 \ uridecodebin \ uri=http://c3voc.mazdermind.de/testfiles/avsync.mp4 \ diff --git a/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh b/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh index ea550ef..b889517 100755 --- a/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh +++ b/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh @@ -1,5 +1,10 @@ #!/bin/sh -. `dirname "$0"`/../config.sh +confdir="`dirname "$0"`/../" +. $confdir/default-config.sh +if [ -f $confdir/config.sh ]; then + . $confdir/config.sh +fi + gst-launch-1.0 \ videotestsrc pattern=smpte !\ video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \ diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh index d43709e..5d05a25 100755 --- a/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh +++ b/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh @@ -1,5 +1,10 @@ #!/bin/sh -. `dirname "$0"`/../config.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=0x00ff0000 background-color=0x00440000 !\ video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \ diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh index 2d39d9f..a89de52 100755 --- a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh +++ b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh @@ -1,5 +1,10 @@ #!/bin/sh -. `dirname "$0"`/../config.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=0x0000ff00 background-color=0x00004400 !\ video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \ diff --git a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh index b5cd84c..005b027 100755 --- a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh +++ b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh @@ -1,5 +1,10 @@ #!/bin/sh -. `dirname "$0"`/../config.sh +confdir="`dirname "$0"`/../" +. $confdir/default-config.sh +if [ -f $confdir/config.sh ]; then + . $confdir/config.sh +fi + gst-launch-1.0 \ videotestsrc pattern=snow !\ video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \ |