summaryrefslogtreecommitdiff
path: root/example-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'example-scripts')
-rwxr-xr-xexample-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh2
-rwxr-xr-xexample-scripts/gstreamer/source-background-loop.py2
-rwxr-xr-xexample-scripts/gstreamer/source-test-background.sh6
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-background-loop.sh8
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam1.sh12
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam2.sh12
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-grabber.sh12
-rwxr-xr-xexample-scripts/misc/benchmark.sh6
-rwxr-xr-xexample-scripts/misc/perf.sh6
9 files changed, 54 insertions, 12 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 ca7fc27..14d9f6c 100755
--- a/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh
+++ b/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh
@@ -8,7 +8,7 @@ gst-launch-1.0 \
queue !\
videoconvert !\
videoscale !\
- video/x-raw,format=UYVY,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 ! \
+ video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 ! \
mux. \
\
src. !\
diff --git a/example-scripts/gstreamer/source-background-loop.py b/example-scripts/gstreamer/source-background-loop.py
index be59d18..fd63fc0 100755
--- a/example-scripts/gstreamer/source-background-loop.py
+++ b/example-scripts/gstreamer/source-background-loop.py
@@ -15,7 +15,7 @@ class LoopSource(object):
uridecodebin name=src uri=http://c3voc.mazdermind.de/testfiles/bg.ts !
videoscale !
videoconvert !
- video/x-raw,format=UYVY,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 !
+ video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 !
matroskamux !
tcpclientsink host=localhost port=16000
"""
diff --git a/example-scripts/gstreamer/source-test-background.sh b/example-scripts/gstreamer/source-test-background.sh
deleted file mode 100755
index 94dc978..0000000
--- a/example-scripts/gstreamer/source-test-background.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-gst-launch-1.0 \
- videotestsrc pattern=ball !\
- video/x-raw,format=UYVY,width=1280,height=720,framerate=25/1,pixel-aspect-ratio=1/1 !\
- matroskamux !\
- tcpclientsink host=localhost port=16000
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh b/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
new file mode 100755
index 0000000..acd2bcc
--- /dev/null
+++ b/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+gst-launch-1.0 \
+ videotestsrc pattern=ball !\
+ video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 !\
+ mux. \
+ \
+ matroskamux name=mux !\
+ tcpclientsink host=localhost port=16000
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
new file mode 100755
index 0000000..0f29b63
--- /dev/null
+++ b/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+gst-launch-1.0 \
+ videotestsrc pattern=red !\
+ video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 !\
+ mux. \
+ \
+ audiotestsrc !\
+ audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\
+ mux. \
+ \
+ matroskamux name=mux !\
+ tcpclientsink host=localhost port=10000
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
new file mode 100755
index 0000000..e51dd09
--- /dev/null
+++ b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+gst-launch-1.0 \
+ videotestsrc pattern=green !\
+ video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 !\
+ mux. \
+ \
+ audiotestsrc !\
+ audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\
+ mux. \
+ \
+ matroskamux name=mux !\
+ tcpclientsink host=localhost port=10001
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
new file mode 100755
index 0000000..37d8961
--- /dev/null
+++ b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+gst-launch-1.0 \
+ videotestsrc pattern=blue !\
+ video/x-raw,format=I420,width=1920,height=1080,framerate=25/1,pixel-aspect-ratio=1/1 !\
+ mux. \
+ \
+ audiotestsrc !\
+ audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\
+ mux. \
+ \
+ matroskamux name=mux !\
+ tcpclientsink host=localhost port=10002
diff --git a/example-scripts/misc/benchmark.sh b/example-scripts/misc/benchmark.sh
index 70b8cfa..c60f897 100755
--- a/example-scripts/misc/benchmark.sh
+++ b/example-scripts/misc/benchmark.sh
@@ -5,8 +5,10 @@ PID=$!
echo "PID=$PID"
sleep 1
../control-server/set-composite-side-by-side-equal.sh >/dev/null 2>/dev/null
-../ffmpeg/source-testvideo-as-cam1.sh >/dev/null 2>/dev/null &
-../ffmpeg/source-testvideo-as-cam2.sh >/dev/null 2>/dev/null &
+../gstreamer/source-videotestsrc-as-cam1.sh >/dev/null 2>/dev/null &
+../gstreamer/source-videotestsrc-as-cam2.sh >/dev/null 2>/dev/null &
+../gstreamer/source-videotestsrc-as-grabber.sh >/dev/null 2>/dev/null &
+../gstreamer/source-videotestsrc-as-background-loop.sh >/dev/null 2>/dev/null &
pidstat -p $PID 1 &
sleep 10
kill $PID
diff --git a/example-scripts/misc/perf.sh b/example-scripts/misc/perf.sh
index e347151..c20f10b 100755
--- a/example-scripts/misc/perf.sh
+++ b/example-scripts/misc/perf.sh
@@ -5,8 +5,10 @@ PID=$!
echo "PID=$PID"
sleep 1
../control-server/set-composite-side-by-side-equal.sh >/dev/null 2>/dev/null
-../ffmpeg/source-testvideo-as-cam1.sh >/dev/null 2>/dev/null &
-../ffmpeg/source-testvideo-as-cam2.sh >/dev/null 2>/dev/null &
+../gstreamer/source-videotestsrc-as-cam1.sh >/dev/null 2>/dev/null &
+../gstreamer/source-videotestsrc-as-cam2.sh >/dev/null 2>/dev/null &
+../gstreamer/source-videotestsrc-as-grabber.sh >/dev/null 2>/dev/null &
+../gstreamer/source-videotestsrc-as-background-loop.sh >/dev/null 2>/dev/null &
sudo perf top -g -p $PID
kill $PID
wait