[gst-devel] How to change colorspace on the fly

Thijs Vermeir thijsvermeir at gmail.com
Fri Apr 11 12:24:16 CEST 2008


AlannY wrote:
> Hi there.
> I have a dummy question. I need video in video/x-raw-rgb, but 
> <videotestsrc> generates video in video/x-raw-yuv format. How to convert 
> it? I found ffmpegcolorspace element, but really not understand how to 
> use it ;-)
You can use ffmpegcolorspace like this:
gst-launch -v videotestsrc ! ffmpegcolorspace ! video/x-raw-rgb ! fakesink

But you don't need ffmpegcolorspace because the videotestsrc can
also output video in rgb. (Try gst-inspect videotestsrc)

To force videotestsrc to use rgb use something like this:
gst-launch -v videotestsrc ! video/x-raw-rgb ! fakesink


More information about the gstreamer-devel mailing list