ges-cut-clip.sh: remove leading zeros before performing the multiplications
[experiments/gstreamer.git] / shell / gst-fdsrc-and-videoparse.sh
1 #!/bin/sh
2
3 set -e
4
5 # This is a very flexible way to read raw video data from the standard input
6 # when the image size, pixelformat and the framerate are known.
7
8 cat /dev/urandom |
9 gst-launch-1.0 \
10   fdsrc blocksize=$((800*480*4)) ! \
11   videoparse format="bgra" width=800 height=480 framerate=5 ! \
12   queue min-threshold-buffers=5 ! \
13   videoconvert ! videorate ! autovideosink