[gst-devel] YUV to RGB conversion of decoder output

Rohit Atri rohitratri at gmail.com
Tue Dec 21 16:53:01 CET 2010


Oh god! I kinda feel embarrassed now :) But the embarrassment was worth the
lesson I learnt!
Thanks Edward, that worked.



On Tue, Dec 21, 2010 at 9:16 PM, Edward Hervey <bilboed at gmail.com> wrote:

> On Tue, 2010-12-21 at 20:44 +0530, Rohit Atri wrote:
> > Hi,
> > <Newbie Warning - Question could sound lame>
> > I've an application which selectively decodes iFrames in a video
> > (mpeg4 only for now) and hence I use ffdec_mpeg4 in the pipeline. The
> > output I get is in YUV format and I need to convert it to RGB so I can
> > build a QPixmap (Qt image representation class) from it.
> >
> >
> > How do I do that?
> >
> >
> > I tried - setting the caps as "video/x-raw-rgb" for the src pad of
> > decoder but that didn't work. Also I tried putting a capsfilter with
> > caps = "video/x-raw-rgb" and followed by a ffmpegcolorspace element
> > but that didn't quite work.
>
>   You need to put your capsfilter *after* ffmpegcolorspace (you want it
> to output RGB regardless of what it has in input).
>
>    Edward
>
> >  I don't want to set other structures such as width height depth etc
> > since that could vary from video to video.
> >
> >
> > PS - I could just write my own yuv->rgb routine but want to check if
> > this can be done in the pipeline itself.
> >
> >
> > Thanks
> > Rohit
> >
> ------------------------------------------------------------------------------
> > Lotusphere 2011
> > Register now for Lotusphere 2011 and learn how
> > to connect the dots, take your collaborative environment
> > to the next level, and enter the era of Social Business.
> > http://p.sf.net/sfu/lotusphere-d2d
> > _______________________________________________ gstreamer-devel mailing
> list gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101221/e647c9aa/attachment.htm>


More information about the gstreamer-devel mailing list