summaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
blob: b5cd84c07cd2e60d89f97c4b241cdb3375b5acbf (plain)
  1. #!/bin/sh
  2. `dirname "$0"`/../config.sh
  3. gst-launch-1.0 \
  4. videotestsrc pattern=snow !\
  5. video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \
  6. mux. \
  7. \
  8. audiotestsrc !\
  9. audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=$AUDIORATE !\
  10. mux. \
  11. \
  12. matroskamux name=mux !\
  13. tcpclientsink host=localhost port=10002