Add an example for fdsrc and videoparse
[experiments/gstreamer.git] / 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 gst-launch-0.10 \
9   fdsrc blocksize=$((800*480*4)) ! \
10   videoparse format="bgra" width=800 height=480 framerate=30 ! \
11   queue min-threshold-buffers=30 ! \
12   ffmpegcolorspace ! videorate ! autovideosink