From b1acbe4b4c61ee46354142b01c2bfa67dc5985d9 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 20 Mar 2013 17:41:43 +0100 Subject: [PATCH 1/1] Add an example for fdsrc and videoparse --- gst-fdsrc-and-videoparse.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 gst-fdsrc-and-videoparse.sh diff --git a/gst-fdsrc-and-videoparse.sh b/gst-fdsrc-and-videoparse.sh new file mode 100755 index 0000000..f356c7b --- /dev/null +++ b/gst-fdsrc-and-videoparse.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +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 \ + fdsrc blocksize=$((800*480*4)) ! \ + videoparse format="bgra" width=800 height=480 framerate=30 ! \ + queue min-threshold-buffers=30 ! \ + ffmpegcolorspace ! videorate ! autovideosink -- 2.1.4