aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-02-27 20:54:00 +0000
committerJonas Smedegaard <dr@jones.dk>2017-02-27 20:54:00 +0000
commit6ce57b47f050c39fbf28f4af639ef19608a74cfa (patch)
treeb6ef01437b5b8d9f0038ce9965792f7e69eb86f1 /example-scripts/gstreamer
parentf953824dd2a18f15c2beeb5bd792f5f13fb75a44 (diff)
Use voctobox (not localhost) as voctocore host.
Diffstat (limited to 'example-scripts/gstreamer')
-rwxr-xr-xexample-scripts/gstreamer/play-cam1-av.sh9
-rwxr-xr-xexample-scripts/gstreamer/play-mixed-audio.sh9
-rwxr-xr-xexample-scripts/gstreamer/play-mixed-av.sh9
-rwxr-xr-xexample-scripts/gstreamer/play-mixed-video.sh9
-rwxr-xr-xexample-scripts/gstreamer/play-mixer-video.sh9
-rwxr-xr-xexample-scripts/gstreamer/record-mixed-av.sh9
-rwxr-xr-xexample-scripts/gstreamer/source-all-videotestsrces.sh1
-rwxr-xr-xexample-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh3
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-background-loop.sh3
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam1.sh3
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-cam2.sh3
-rwxr-xr-xexample-scripts/gstreamer/source-videotestsrc-as-grabber.sh3
-rwxr-xr-xexample-scripts/gstreamer/visualize-mixed-audio.sh9
13 files changed, 67 insertions, 12 deletions
diff --git a/example-scripts/gstreamer/play-cam1-av.sh b/example-scripts/gstreamer/play-cam1-av.sh
index ab237ec..b4b48ea 100755
--- a/example-scripts/gstreamer/play-cam1-av.sh
+++ b/example-scripts/gstreamer/play-cam1-av.sh
@@ -1,6 +1,13 @@
#!/bin/sh
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
gst-launch-1.0 \
- tcpclientsrc host=localhost port=13000 !\
+ tcpclientsrc host=$MIXHOST port=13000 !\
matroskademux name=demux \
\
demux. !\
diff --git a/example-scripts/gstreamer/play-mixed-audio.sh b/example-scripts/gstreamer/play-mixed-audio.sh
index a1dfa1f..426a1ce 100755
--- a/example-scripts/gstreamer/play-mixed-audio.sh
+++ b/example-scripts/gstreamer/play-mixed-audio.sh
@@ -1,5 +1,12 @@
#!/bin/sh
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
gst-launch-1.0 \
- tcpclientsrc host=localhost port=11000 !\
+ tcpclientsrc host=$MIXHOST port=11000 !\
matroskademux !\
alsasink ts-offset=500000000
diff --git a/example-scripts/gstreamer/play-mixed-av.sh b/example-scripts/gstreamer/play-mixed-av.sh
index 7437f43..c2a9636 100755
--- a/example-scripts/gstreamer/play-mixed-av.sh
+++ b/example-scripts/gstreamer/play-mixed-av.sh
@@ -1,6 +1,13 @@
#!/bin/sh
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
gst-launch-1.0 \
- tcpclientsrc host=localhost port=11000 !\
+ tcpclientsrc host=$MIXHOST port=11000 !\
matroskademux name=demux \
\
demux. !\
diff --git a/example-scripts/gstreamer/play-mixed-video.sh b/example-scripts/gstreamer/play-mixed-video.sh
index 49cc6f7..5fd4fac 100755
--- a/example-scripts/gstreamer/play-mixed-video.sh
+++ b/example-scripts/gstreamer/play-mixed-video.sh
@@ -1,6 +1,13 @@
#!/bin/sh
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
gst-launch-1.0 \
- tcpclientsrc host=localhost port=11000 !\
+ tcpclientsrc host=$MIXHOST port=11000 !\
matroskademux !\
glupload !\
glimagesink ts-offset=500000000
diff --git a/example-scripts/gstreamer/play-mixer-video.sh b/example-scripts/gstreamer/play-mixer-video.sh
index 49cc6f7..5fd4fac 100755
--- a/example-scripts/gstreamer/play-mixer-video.sh
+++ b/example-scripts/gstreamer/play-mixer-video.sh
@@ -1,6 +1,13 @@
#!/bin/sh
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
gst-launch-1.0 \
- tcpclientsrc host=localhost port=11000 !\
+ tcpclientsrc host=$MIXHOST port=11000 !\
matroskademux !\
glupload !\
glimagesink ts-offset=500000000
diff --git a/example-scripts/gstreamer/record-mixed-av.sh b/example-scripts/gstreamer/record-mixed-av.sh
index b8818c6..a1b4c84 100755
--- a/example-scripts/gstreamer/record-mixed-av.sh
+++ b/example-scripts/gstreamer/record-mixed-av.sh
@@ -1,6 +1,13 @@
#!/bin/sh
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
gst-launch-1.0 \
- tcpclientsrc host=localhost port=11000 !\
+ tcpclientsrc host=$MIXHOST port=11000 !\
matroskademux name=demux \
\
demux. !\
diff --git a/example-scripts/gstreamer/source-all-videotestsrces.sh b/example-scripts/gstreamer/source-all-videotestsrces.sh
index a733107..8e28335 100755
--- a/example-scripts/gstreamer/source-all-videotestsrces.sh
+++ b/example-scripts/gstreamer/source-all-videotestsrces.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
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 5c77882..bc2172b 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
+
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
@@ -26,4 +27,4 @@ gst-launch-1.0 \
mux. \
\
matroskamux name=mux !\
- tcpclientsink host=localhost port=10000
+ tcpclientsink host=$MIXHOST port=10000
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh b/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
index b889517..3a43ec3 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
@@ -11,4 +12,4 @@ gst-launch-1.0 \
mux. \
\
matroskamux name=mux !\
- tcpclientsink host=localhost port=16000
+ tcpclientsink host=$MIXHOST port=16000
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
index 5d05a25..e79ee91 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
@@ -15,4 +16,4 @@ gst-launch-1.0 \
mux. \
\
matroskamux name=mux !\
- tcpclientsink host=localhost port=10000
+ tcpclientsink host=$MIXHOST port=10000
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
index a89de52..8380680 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
@@ -15,4 +16,4 @@ gst-launch-1.0 \
mux. \
\
matroskamux name=mux !\
- tcpclientsink host=localhost port=10001
+ tcpclientsink host=$MIXHOST port=10001
diff --git a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
index 005b027..e921a89 100755
--- a/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
+++ b/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+
confdir="`dirname "$0"`/../"
. $confdir/default-config.sh
if [ -f $confdir/config.sh ]; then
@@ -15,4 +16,4 @@ gst-launch-1.0 \
mux. \
\
matroskamux name=mux !\
- tcpclientsink host=localhost port=10002
+ tcpclientsink host=$MIXHOST port=10002
diff --git a/example-scripts/gstreamer/visualize-mixed-audio.sh b/example-scripts/gstreamer/visualize-mixed-audio.sh
index ce9bc0a..84c2e0a 100755
--- a/example-scripts/gstreamer/visualize-mixed-audio.sh
+++ b/example-scripts/gstreamer/visualize-mixed-audio.sh
@@ -1,6 +1,13 @@
#!/bin/sh
+
+confdir="`dirname "$0"`/../"
+. $confdir/default-config.sh
+if [ -f $confdir/config.sh ]; then
+ . $confdir/config.sh
+fi
+
gst-launch-1.0 \
- tcpclientsrc host=localhost port=13000 !\
+ tcpclientsrc host=$MIXHOST port=13000 !\
matroskademux !\
audioconvert !\
wavescope shader=none style=lines !\