Oh god! I kinda feel embarrassed now :) But the embarrassment was worth the lesson I learnt! <div>Thanks Edward, that worked.</div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Tue, Dec 21, 2010 at 9:16 PM, Edward Hervey <span dir="ltr"><<a href="mailto:bilboed@gmail.com">bilboed@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, 2010-12-21 at 20:44 +0530, Rohit Atri wrote:<br>
> Hi,<br>
> <Newbie Warning - Question could sound lame><br>
> I've an application which selectively decodes iFrames in a video<br>
> (mpeg4 only for now) and hence I use ffdec_mpeg4 in the pipeline. The<br>
> output I get is in YUV format and I need to convert it to RGB so I can<br>
> build a QPixmap (Qt image representation class) from it.<br>
><br>
><br>
> How do I do that?<br>
><br>
><br>
> I tried - setting the caps as "video/x-raw-rgb" for the src pad of<br>
> decoder but that didn't work. Also I tried putting a capsfilter with<br>
> caps = "video/x-raw-rgb" and followed by a ffmpegcolorspace element<br>
> but that didn't quite work.<br>
<br>
</div> You need to put your capsfilter *after* ffmpegcolorspace (you want it<br>
to output RGB regardless of what it has in input).<br>
<br>
Edward<br>
<div class="im"><br>
> I don't want to set other structures such as width height depth etc<br>
> since that could vary from video to video.<br>
><br>
><br>
> PS - I could just write my own yuv->rgb routine but want to check if<br>
> this can be done in the pipeline itself.<br>
><br>
><br>
> Thanks<br>
> Rohit<br>
</div>> ------------------------------------------------------------------------------<br>
> Lotusphere 2011<br>
> Register now for Lotusphere 2011 and learn how<br>
> to connect the dots, take your collaborative environment<br>
> to the next level, and enter the era of Social Business.<br>
> <a href="http://p.sf.net/sfu/lotusphere-d2d" target="_blank">http://p.sf.net/sfu/lotusphere-d2d</a><br>
> _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Lotusphere 2011<br>
Register now for Lotusphere 2011 and learn how<br>
to connect the dots, take your collaborative environment<br>
to the next level, and enter the era of Social Business.<br>
<a href="http://p.sf.net/sfu/lotusphere-d2d" target="_blank">http://p.sf.net/sfu/lotusphere-d2d</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>