I could not see where the conversion is done :S<br><br><div class="gmail_quote">On Fri, Jan 8, 2010 at 4:36 PM, Wim Taymans <span dir="ltr">&lt;<a href="mailto:wim.taymans@gmail.com">wim.taymans@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 Fri, 2010-01-08 at 16:00 -0200, Gabriel Duarte wrote:<br>
&gt; How I could do that? Using capsfilters?<br>
<br>
</div>Here&#39;s an example:<br>
<br>
<a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/snapshot/snapshot.c" target="_blank">http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/snapshot/snapshot.c</a><br>

<font color="#888888"><br>
Wim<br>
</font><div><div></div><div class="h5"><br>
&gt;<br>
&gt; On Fri, Jan 8, 2010 at 3:38 PM, Wim Taymans &lt;<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         On Fri, 2010-01-08 at 15:24 -0200, Gabriel Duarte wrote:<br>
&gt;         &gt; Heyy guys!<br>
&gt;         &gt; I&#39;m having a problem with a program I&#39;ve built. It is used<br>
&gt;         to capture<br>
&gt;         &gt; from DV cameras. Currently, I can capture , but I&#39;d like to<br>
&gt;         save the<br>
&gt;         &gt; buffers into a file, using my own functions. When i do it, I<br>
&gt;         get a<br>
&gt;         &gt; distorced image, and I don&#39;t know what to do anymore...<br>
&gt;         &gt; I&#39;ll attach the C program and the result to show you all<br>
&gt;         what&#39;s<br>
&gt;         &gt; happening!<br>
&gt;<br>
&gt;<br>
&gt;         Your application is assuming that the gstreamer buffers<br>
&gt;         contain RGB<br>
&gt;         video data, which is most likely not the case. In this<br>
&gt;         particular case<br>
&gt;         you are handling YUV video as if it were RGB and then you get<br>
&gt;         this<br>
&gt;         messed up png. Maybe you can save YUV or use gstreamer to<br>
&gt;         convert to<br>
&gt;         RGB.<br>
&gt;<br>
&gt;         Wim<br>
&gt;<br>
&gt;<br>
&gt;         &gt; Thanks!<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; --<br>
&gt;         &gt; Gabriel Duarte<br>
&gt;         &gt; Linux User #471185<br>
&gt;         &gt; Rio de Janeiro - RJ<br>
&gt;         &gt; <a href="http://kinuxlinux.org/gabriel_duarte" target="_blank">http://kinuxlinux.org/gabriel_duarte</a><br>
&gt;         &gt;<br>
&gt;         &gt; Phones:<br>
&gt;         &gt; (55) (21) 9463-7760 /*Mobile*/<br>
&gt;         &gt; (55) (21) 2464-9302 /*Home*/<br>
&gt;         &gt; (55) (21) 2529-5080 /*Work*/<br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; -----BEGIN GEEK CODE BLOCK-----<br>
&gt;         &gt; Version: 3.12<br>
&gt;         &gt; GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w---<br>
&gt;         &gt; O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++<br>
&gt;         &gt; G++ e+ h* r+ y++++<br>
&gt;         &gt; ------END GEEK CODE BLOCK------<br>
&gt;         &gt;<br>
&gt;<br>
&gt;         &gt;<br>
&gt;         ------------------------------------------------------------------------------<br>
&gt;         &gt; This SF.Net email is sponsored by the Verizon Developer<br>
&gt;         Community<br>
&gt;         &gt; Take advantage of Verizon&#39;s best-in-class app development<br>
&gt;         support<br>
&gt;         &gt; A streamlined, 14 day to market process makes app<br>
&gt;         distribution fast and easy<br>
&gt;         &gt; Join now and get one step closer to millions of Verizon<br>
&gt;         customers<br>
&gt;         &gt; <a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
&gt;         &gt; _______________________________________________<br>
&gt;         gstreamer-devel mailing list<br>
&gt;         <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;         <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         ------------------------------------------------------------------------------<br>
&gt;         This SF.Net email is sponsored by the Verizon Developer<br>
&gt;         Community<br>
&gt;         Take advantage of Verizon&#39;s best-in-class app development<br>
&gt;         support<br>
&gt;         A streamlined, 14 day to market process makes app distribution<br>
&gt;         fast and easy<br>
&gt;         Join now and get one step closer to millions of Verizon<br>
&gt;         customers<br>
&gt;         <a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</a><br>
&gt;         _______________________________________________<br>
&gt;         gstreamer-devel mailing list<br>
&gt;         <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;         <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Gabriel Duarte<br>
&gt; Linux User #471185<br>
&gt; Rio de Janeiro - RJ<br>
&gt; <a href="http://kinuxlinux.org/gabriel_duarte" target="_blank">http://kinuxlinux.org/gabriel_duarte</a><br>
&gt;<br>
&gt; Phones:<br>
&gt; (55) (21) 9463-7760 /*Mobile*/<br>
&gt; (55) (21) 2464-9302 /*Home*/<br>
&gt; (55) (21) 2529-5080 /*Work*/<br>
&gt;<br>
&gt;<br>
&gt; -----BEGIN GEEK CODE BLOCK-----<br>
&gt; Version: 3.12<br>
&gt; GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w---<br>
&gt; O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++<br>
&gt; G++ e+ h* r+ y++++<br>
&gt; ------END GEEK CODE BLOCK------<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; This SF.Net email is sponsored by the Verizon Developer Community<br>
&gt; Take advantage of Verizon&#39;s best-in-class app development support<br>
&gt; A streamlined, 14 day to market process makes app distribution fast and easy<br>
&gt; Join now and get one step closer to millions of Verizon customers<br>
&gt; <a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</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>
This SF.Net email is sponsored by the Verizon Developer Community<br>
Take advantage of Verizon&#39;s best-in-class app development support<br>
A streamlined, 14 day to market process makes app distribution fast and easy<br>
Join now and get one step closer to millions of Verizon customers<br>
<a href="http://p.sf.net/sfu/verizon-dev2dev" target="_blank">http://p.sf.net/sfu/verizon-dev2dev</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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Gabriel Duarte<br>Linux User #471185<br>Rio de Janeiro - RJ<br><a href="http://kinuxlinux.org/gabriel_duarte">http://kinuxlinux.org/gabriel_duarte</a><br><br>
Phones:<br>(55) (21) 9463-7760 /*Mobile*/<br>(55) (21) 2464-9302 /*Home*/<br>(55) (21) 2529-5080 /*Work*/<br><br><br>-----BEGIN GEEK CODE BLOCK-----<br>Version: 3.12<br>GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w--- <br>
O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++ <br>G++ e+ h* r+ y++++ <br>------END GEEK CODE BLOCK------<br>