summaryrefslogtreecommitdiff
path: root/voctocore/scripts/videosrc2.sh
blob: 1c5bc56950d00799e4f74c72c23276346bb145b3 (plain)
  1. #!/bin/sh
  2. mkdir -p /tmp/voctomix-sockets/
  3. rm -f /tmp/voctomix-sockets/v-cam2 /tmp/voctomix-sockets/a-cam2
  4. gst-launch-1.0 -v \
  5. uridecodebin \
  6. uri=file:///home/peter/ED_1280.avi \
  7. name=src \
  8. \
  9. src. !\
  10. queue !\
  11. progressreport !\
  12. videoconvert !\
  13. videorate !\
  14. videoscale !\
  15. video/x-raw,format=RGBx,width=1280,height=720,framerate=25/1,pixel-aspect-ratio=1/1 !\
  16. gdppay !\
  17. shmsink \
  18. socket-path=/tmp/voctomix-sockets/v-cam2 \
  19. shm-size=100000000 \
  20. \
  21. src. !\
  22. queue !\
  23. audioresample !\
  24. audioconvert !\
  25. audio/x-raw,format=S16LE,layout=interleaved,rate=48000,channels=2 !\
  26. gdppay !\
  27. shmsink \
  28. socket-path=/tmp/voctomix-sockets/a-cam2 \
  29. shm-size=10000000