aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/source-avsync-test-clip-as-cam1.sh
blob: 5c7788207251df5e168dc970f2997419c9cb0362 (plain)
  1. #!/bin/sh
  2. confdir="`dirname "$0"`/../"
  3. . $confdir/default-config.sh
  4. if [ -f $confdir/config.sh ]; then
  5. . $confdir/config.sh
  6. fi
  7. gst-launch-1.0 \
  8. uridecodebin \
  9. uri=http://c3voc.mazdermind.de/testfiles/avsync.mp4 \
  10. name=src \
  11. \
  12. src. !\
  13. queue !\
  14. videoconvert !\
  15. videoscale !\
  16. video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \
  17. mux. \
  18. \
  19. src. !\
  20. queue !\
  21. audioconvert !\
  22. audioresample !\
  23. audiorate !\
  24. audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=$AUDIORATE !\
  25. mux. \
  26. \
  27. matroskamux name=mux !\
  28. tcpclientsink host=localhost port=10000