summaryrefslogtreecommitdiff
path: root/voctocore/experiments/gstreamer-shm-pipe.txt
blob: f3e3d0e1a31bf11143cd05362be1c627be118274 (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 ! ximagesink
  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