aboutsummaryrefslogtreecommitdiff
path: root/voctocore/scripts/videosrc2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'voctocore/scripts/videosrc2.sh')
-rwxr-xr-xvoctocore/scripts/videosrc2.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/voctocore/scripts/videosrc2.sh b/voctocore/scripts/videosrc2.sh
new file mode 100755
index 0000000..e136495
--- /dev/null
+++ b/voctocore/scripts/videosrc2.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+rm -f /tmp/voctomix-sockets/v-cam2 /tmp/voctomix-sockets/a-cam2
+gst-launch-1.0 -v \
+ uridecodebin \
+ uri=file:///home/peter/Sintel.2010.720p.mkv \
+ name=src \
+ \
+ src. !\
+ queue !\
+ progressreport !\
+ videoconvert !\
+ videorate !\
+ videoscale !\
+ video/x-raw,format=RGBx,width=1280,height=720,framerate=25/1 !\
+ shmsink \
+ sync=true \
+ socket-path=/tmp/voctomix-sockets/v-cam2 \
+ wait-for-connection=false \
+ shm-size=100000000 \
+ \
+ src. !\
+ queue !\
+ audioconvert !\
+ audiorate !\
+ audio/x-raw,format=F32LE,layout=interleaved,channels=2,rate=48000 !\
+ shmsink \
+ sync=true \
+ socket-path=/tmp/voctomix-sockets/a-cam2 \
+ wait-for-connection=false \
+ shm-size=10000000