aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2014-08-31 11:30:28 +0200
committerMaZderMind <peter@mazdermind.de>2014-08-31 11:30:28 +0200
commitb3959054ee1154f333c12decb7120ec7afab7a45 (patch)
tree64753caf462df6972677a4e12fecbb6d4e1012d0
parent9317d5ca6c7f8f365dfbd05f190a0ce273b8a49c (diff)
test-av-sources and audio-stream layout
-rw-r--r--voctocore/default-config.ini2
-rwxr-xr-xvoctocore/scripts/videosrc1.sh31
-rwxr-xr-xvoctocore/scripts/videosrc2.sh30
3 files changed, 62 insertions, 1 deletions
diff --git a/voctocore/default-config.ini b/voctocore/default-config.ini
index a3f277d..f2777d3 100644
--- a/voctocore/default-config.ini
+++ b/voctocore/default-config.ini
@@ -5,7 +5,7 @@ audio=cam1,cam2
socketpath=/tmp/voctomix-sockets
videocaps=video/x-raw,format=RGBx,width=1280,height=720,framerate=25/1,pixel-aspect-ratio=1/1
-audiocaps=audio/x-raw,format=S16LE,layout=interleaved,channels=2,rate=48000
+audiocaps=audio/x-raw,format=F32LE,layout=interleaved,channels=2,rate=48000
[pause]
;image=/video/pause.png
diff --git a/voctocore/scripts/videosrc1.sh b/voctocore/scripts/videosrc1.sh
new file mode 100755
index 0000000..39e5212
--- /dev/null
+++ b/voctocore/scripts/videosrc1.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+rm -f /tmp/voctomix-sockets/v-cam1 /tmp/voctomix-sockets/a-cam1
+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 !\
+ shmsink \
+ sync=true \
+ socket-path=/tmp/voctomix-sockets/v-cam1 \
+ 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-cam1 \
+ wait-for-connection=false \
+ shm-size=10000000
+
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