X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/blobdiff_plain/b1acbe4b4c61ee46354142b01c2bfa67dc5985d9..a5cd0a09e45239b51afd429bbcff19b2d366e8a4:/gst-fdsrc-and-videoparse.sh diff --git a/gst-fdsrc-and-videoparse.sh b/gst-fdsrc-and-videoparse.sh index f356c7b..1b01a10 100755 --- a/gst-fdsrc-and-videoparse.sh +++ b/gst-fdsrc-and-videoparse.sh @@ -5,8 +5,9 @@ set -e # This is a very flexible way to read raw video data from the standard input # when the image size, pixelformat and the framerate are known. -gst-launch-0.10 \ +cat /dev/urandom | +gst-launch-1.0 \ fdsrc blocksize=$((800*480*4)) ! \ - videoparse format="bgra" width=800 height=480 framerate=30 ! \ - queue min-threshold-buffers=30 ! \ - ffmpegcolorspace ! videorate ! autovideosink + videoparse format="bgra" width=800 height=480 framerate=5 ! \ + queue min-threshold-buffers=5 ! \ + videoconvert ! videorate ! autovideosink