summaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh
blob: 005b027844eafb3674e34ba31598f5e54ad20840 (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. videotestsrc pattern=snow !\
  9. video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \
  10. mux. \
  11. \
  12. audiotestsrc !\
  13. audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=$AUDIORATE !\
  14. mux. \
  15. \
  16. matroskamux name=mux !\
  17. tcpclientsink host=localhost port=10002