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