aboutsummaryrefslogtreecommitdiff
path: root/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh
blob: a89de5260030aebf2d0c6624a034b601eeb4e2cc (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=ball foreground-color=0x0000ff00 background-color=0x00004400 !\
  9. video/x-raw,format=I420,width=$WIDTH,height=$HEIGHT,framerate=$FRAMERATE/1,pixel-aspect-ratio=1/1 ! \
  10. mux. \
  11. \
  12. audiotestsrc freq=550 !\
  13. audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=$AUDIORATE !\
  14. mux. \
  15. \
  16. matroskamux name=mux !\
  17. tcpclientsink host=localhost port=10001