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