From: Antonio Ospite Date: Thu, 24 Oct 2013 11:38:03 +0000 (+0200) Subject: Port gst-fdsrc-and-videoparse.sh to GStreamer 1.0 X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/commitdiff_plain/a5cd0a09e45239b51afd429bbcff19b2d366e8a4 Port gst-fdsrc-and-videoparse.sh to GStreamer 1.0 --- 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