From a5cd0a09e45239b51afd429bbcff19b2d366e8a4 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 24 Oct 2013 13:38:03 +0200 Subject: [PATCH] Port gst-fdsrc-and-videoparse.sh to GStreamer 1.0 --- gst-fdsrc-and-videoparse.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -- 2.1.4