aboutsummaryrefslogtreecommitdiff
path: root/voctocore/scripts
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-05-10 16:28:38 +0200
committerMaZderMind <github@mazdermind.de>2015-05-10 16:28:38 +0200
commitb9ec27da68ddce2afc94454e92a78fe262812a0e (patch)
treeeb917f731b6d199c6a76b1cf541d6f6af29ca6fd /voctocore/scripts
parentf8a0b46028b9c902da7ce67590f9ce952ea44544 (diff)
Implementing a Video-Switching-Server is easy … if you know what your're doing
Diffstat (limited to 'voctocore/scripts')
-rwxr-xr-xvoctocore/scripts/play-cam1-mirror.sh5
-rwxr-xr-xvoctocore/scripts/test-audio-cam1.sh6
-rwxr-xr-xvoctocore/scripts/test-av-sync-cam1.sh23
-rwxr-xr-xvoctocore/scripts/test-video-cam1.sh7
-rwxr-xr-xvoctocore/scripts/videosrc1.sh30
-rwxr-xr-xvoctocore/scripts/videosrc2.sh29
6 files changed, 41 insertions, 59 deletions
diff --git a/voctocore/scripts/play-cam1-mirror.sh b/voctocore/scripts/play-cam1-mirror.sh
new file mode 100755
index 0000000..75e65c7
--- /dev/null
+++ b/voctocore/scripts/play-cam1-mirror.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+gst-launch-1.0 \
+ tcpclientsrc host=localhost port=13000 !\
+ gdpdepay !\
+ xvimagesink
diff --git a/voctocore/scripts/test-audio-cam1.sh b/voctocore/scripts/test-audio-cam1.sh
new file mode 100755
index 0000000..0ca10d8
--- /dev/null
+++ b/voctocore/scripts/test-audio-cam1.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+gst-launch-1.0 \
+ audiotestsrc !\
+ audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\
+ gdppay !\
+ tcpclientsink host=localhost port=20000
diff --git a/voctocore/scripts/test-av-sync-cam1.sh b/voctocore/scripts/test-av-sync-cam1.sh
new file mode 100755
index 0000000..756d83b
--- /dev/null
+++ b/voctocore/scripts/test-av-sync-cam1.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+gst-launch-1.0 -vm \
+ uridecodebin \
+ uri=http://c3voc.mazdermind.de/avsync.mp4 \
+ name=src \
+ \
+ src. !\
+ queue !\
+ videoconvert !\
+ videoscale !\
+ video/x-raw,format=I420,width=1280,height=720,framerate=25/1,pixel-aspect-ratio=1/1 ! \
+ timeoverlay valignment=bottom ! \
+ gdppay ! \
+ tcpclientsink host=localhost port=10000 \
+ \
+ src. !\
+ queue !\
+ audioconvert !\
+ audioresample !\
+ audiorate !\
+ audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\
+ gdppay !\
+ tcpclientsink host=localhost port=20000
diff --git a/voctocore/scripts/test-video-cam1.sh b/voctocore/scripts/test-video-cam1.sh
new file mode 100755
index 0000000..e920c43
--- /dev/null
+++ b/voctocore/scripts/test-video-cam1.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+gst-launch-1.0 \
+ videotestsrc !\
+ video/x-raw,format=I420,width=1280,height=720,framerate=25/1,pixel-aspect-ratio=1/1 !\
+ timeoverlay valignment=bottom !\
+ gdppay !\
+ tcpclientsink host=localhost port=10000
diff --git a/voctocore/scripts/videosrc1.sh b/voctocore/scripts/videosrc1.sh
deleted file mode 100755
index fe34b16..0000000
--- a/voctocore/scripts/videosrc1.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-mkdir -p /tmp/voctomix-sockets/
-rm -f /tmp/voctomix-sockets/v-cam1 /tmp/voctomix-sockets/a-cam1
-gst-launch-1.0 -v \
- uridecodebin \
- uri=file:///home/peter/avsync.mp4 \
- name=src \
- \
- src. !\
- queue !\
- progressreport !\
- videoconvert !\
- videorate !\
- videoscale !\
- video/x-raw,format=RGBx,width=1280,height=720,framerate=25/1 !\
- gdppay !\
- shmsink \
- socket-path=/tmp/voctomix-sockets/v-cam1 \
- shm-size=100000000 \
- \
- src. !\
- queue !\
- audioresample !\
- audioconvert !\
- audio/x-raw,format=S16LE,layout=interleaved,rate=48000,channels=2 !\
- gdppay !\
- shmsink \
- socket-path=/tmp/voctomix-sockets/a-cam1 \
- shm-size=10000000
-
diff --git a/voctocore/scripts/videosrc2.sh b/voctocore/scripts/videosrc2.sh
deleted file mode 100755
index 1c5bc56..0000000
--- a/voctocore/scripts/videosrc2.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-mkdir -p /tmp/voctomix-sockets/
-rm -f /tmp/voctomix-sockets/v-cam2 /tmp/voctomix-sockets/a-cam2
-gst-launch-1.0 -v \
- uridecodebin \
- uri=file:///home/peter/ED_1280.avi \
- name=src \
- \
- src. !\
- queue !\
- progressreport !\
- videoconvert !\
- videorate !\
- videoscale !\
- video/x-raw,format=RGBx,width=1280,height=720,framerate=25/1,pixel-aspect-ratio=1/1 !\
- gdppay !\
- shmsink \
- socket-path=/tmp/voctomix-sockets/v-cam2 \
- shm-size=100000000 \
- \
- src. !\
- queue !\
- audioresample !\
- audioconvert !\
- audio/x-raw,format=S16LE,layout=interleaved,rate=48000,channels=2 !\
- gdppay !\
- shmsink \
- socket-path=/tmp/voctomix-sockets/a-cam2 \
- shm-size=10000000