summaryrefslogtreecommitdiff
path: root/voctocore
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2014-08-11 20:57:41 +0200
committerMaZderMind <github@mazdermind.de>2014-08-11 20:57:41 +0200
commitf2edaccd1c3aac10c20d30a1f30fa11f226e6ffa (patch)
tree959b2c433517ea2c3b0dd0611ac8826aa07902e9 /voctocore
parentf1b097249ab72d83495368aa4159260ef54f8124 (diff)
example pipelines for a/v synchronus data transfer through shmsink/src with a videomixer
Diffstat (limited to 'voctocore')
-rw-r--r--voctocore/experiments/gstreamer-shm-pipe.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/voctocore/experiments/gstreamer-shm-pipe.txt b/voctocore/experiments/gstreamer-shm-pipe.txt
new file mode 100644
index 0000000..3e16d49
--- /dev/null
+++ b/voctocore/experiments/gstreamer-shm-pipe.txt
@@ -0,0 +1,13 @@
+# works with gstreamer 1.4 - will probably not work with lower versions
+
+# video/audio-src
+gst-launch-1.0 -vm uridecodebin uri=file:///home/peter/avsync.mp4 name=src \
+src. ! video/x-raw,format=I420,width=1280,height=720,framerate=25/1 ! queue ! shmsink sync=true socket-path=/tmp/sock-v wait-for-connection=false shm-size=100000000 \
+src. ! audio/x-raw,format=S16LE,layout=interleaved,rate=44100,channels=2 ! queue ! shmsink sync=true socket-path=/tmp/sock-a wait-for-connection=false shm-size=10000000
+
+# video sink
+gst-launch-1.0 -vm shmsrc is-live=true do-timestamp=true socket-path=/tmp/sock-v ! video/x-raw,format=I420,width=1280,height=720,framerate=25/1 ! videomixer ! xvimagesink
+
+# audio sink
+gst-launch-1.0 -vm shmsrc is-live=true do-timestamp=true socket-path=/tmp/sock-a ! audio/x-raw,format=S16LE,layout=interleaved,rate=int44100,channels=2 ! alsasink
+