summaryrefslogtreecommitdiff
path: root/voctocore/experiments/gstreamer-shm-pipe.txt
blob: 3e16d49eabf85aed611b5db89e43ab035c2b8a86 (plain)
  1. # works with gstreamer 1.4 - will probably not work with lower versions
  2. # video/audio-src
  3. gst-launch-1.0 -vm uridecodebin uri=file:///home/peter/avsync.mp4 name=src \
  4. 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 \
  5. 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
  6. # video sink
  7. 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
  8. # audio sink
  9. 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