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">&lt;<a href="mailto:bilboed@gmail.com">bilboed@gmail.com</a>&gt;</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>
&gt; Hi,<br>
&gt; &lt;Newbie Warning - Question could sound lame&gt;<br>
&gt; I&#39;ve an application which selectively decodes iFrames in a video<br>
&gt; (mpeg4 only for now) and hence I use ffdec_mpeg4 in the pipeline. The<br>
&gt; output I get is in YUV format and I need to convert it to RGB so I can<br>
&gt; build a QPixmap (Qt image representation class) from it.<br>
&gt;<br>
&gt;<br>
&gt; How do I do that?<br>
&gt;<br>
&gt;<br>
&gt; I tried - setting the caps as &quot;video/x-raw-rgb&quot; for the src pad of<br>
&gt; decoder but that didn&#39;t work. Also I tried putting a capsfilter with<br>
&gt; caps = &quot;video/x-raw-rgb&quot; and followed by a ffmpegcolorspace element<br>
&gt; but that didn&#39;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>
&gt;  I don&#39;t want to set other structures such as width height depth etc<br>
&gt; since that could vary from video to video.<br>
&gt;<br>
&gt;<br>
&gt; PS - I could just write my own yuv-&gt;rgb routine but want to check if<br>
&gt; this can be done in the pipeline itself.<br>
&gt;<br>
&gt;<br>
&gt; Thanks<br>
&gt; Rohit<br>
</div>&gt; ------------------------------------------------------------------------------<br>
&gt; Lotusphere 2011<br>
&gt; Register now for Lotusphere 2011 and learn how<br>
&gt; to connect the dots, take your collaborative environment<br>
&gt; to the next level, and enter the era of Social Business.<br>
&gt; <a href="http://p.sf.net/sfu/lotusphere-d2d" target="_blank">http://p.sf.net/sfu/lotusphere-d2d</a><br>
&gt; _______________________________________________ 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>