summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvoctocore/experiments/failovertest.py2
-rwxr-xr-xvoctocore/experiments/test-grabber-src.sh2
-rwxr-xr-xvoctocore/experiments/video-grabber-src.sh29
3 files changed, 31 insertions, 2 deletions
diff --git a/voctocore/experiments/failovertest.py b/voctocore/experiments/failovertest.py
index 5881b0f..fd43d83 100755
--- a/voctocore/experiments/failovertest.py
+++ b/voctocore/experiments/failovertest.py
@@ -23,7 +23,7 @@ class Example:
self.bus.connect('message::error', self.on_error)
self.mixdisplay = VideomixerWithDisplay()
- self.grabbersrc = ShmSrc('/tmp/grabber', Gst.Caps.from_string('video/x-raw,width=1280,height=720,framerate=25/1,format=BGRA'))
+ self.grabbersrc = ShmSrc('/tmp/grabber-v', Gst.Caps.from_string('video/x-raw,width=1280,height=720,framerate=25/1,format=BGRA'))
# Add elements to pipeline
self.pipeline.add(self.mixdisplay)
diff --git a/voctocore/experiments/test-grabber-src.sh b/voctocore/experiments/test-grabber-src.sh
index e298faf..63fcec9 100755
--- a/voctocore/experiments/test-grabber-src.sh
+++ b/voctocore/experiments/test-grabber-src.sh
@@ -5,6 +5,6 @@ gst-launch-1.0 -vm \
queue !\
shmsink \
sync=true \
- socket-path=/tmp/grabber \
+ socket-path=/tmp/grabber-v \
wait-for-connection=false \
shm-size=100000000
diff --git a/voctocore/experiments/video-grabber-src.sh b/voctocore/experiments/video-grabber-src.sh
new file mode 100755
index 0000000..b3feb16
--- /dev/null
+++ b/voctocore/experiments/video-grabber-src.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+gst-launch-1.0 -v \
+ uridecodebin \
+ uri=http://video.blendertestbuilds.de/download.blender.org/ED/ED_1280.avi \
+ name=src \
+ \
+ src. !\
+ queue !\
+ progressreport !\
+ videoconvert !\
+ videorate !\
+ videoscale !\
+ video/x-raw,format=BGRA,width=1280,height=720,framerate=25/1 !\
+ shmsink \
+ sync=true \
+ socket-path=/tmp/grabber-v \
+ wait-for-connection=false \
+ shm-size=100000000
+ \
+ src. !\
+ queue !\
+ audioconvert !\
+ audiorate !\
+ audio/x-raw,format=S16LE,layout=interleaved,rate=44100,channels=2 !\
+ shmsink \
+ sync=true \
+ socket-path=/tmp/grabber-a \
+ wait-for-connection=false \
+ shm-size=10000000