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