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"><<a href="mailto:wim.taymans@gmail.com">wim.taymans@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 Fri, 2010-01-08 at 16:00 -0200, Gabriel Duarte wrote:<br>
> How I could do that? Using capsfilters?<br>
<br>
</div>Here'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>
><br>
> On Fri, Jan 8, 2010 at 3:38 PM, Wim Taymans <<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>><br>
> wrote:<br>
> On Fri, 2010-01-08 at 15:24 -0200, Gabriel Duarte wrote:<br>
> > Heyy guys!<br>
> > I'm having a problem with a program I've built. It is used<br>
> to capture<br>
> > from DV cameras. Currently, I can capture , but I'd like to<br>
> save the<br>
> > buffers into a file, using my own functions. When i do it, I<br>
> get a<br>
> > distorced image, and I don't know what to do anymore...<br>
> > I'll attach the C program and the result to show you all<br>
> what's<br>
> > happening!<br>
><br>
><br>
> Your application is assuming that the gstreamer buffers<br>
> contain RGB<br>
> video data, which is most likely not the case. In this<br>
> particular case<br>
> you are handling YUV video as if it were RGB and then you get<br>
> this<br>
> messed up png. Maybe you can save YUV or use gstreamer to<br>
> convert to<br>
> RGB.<br>
><br>
> Wim<br>
><br>
><br>
> > Thanks!<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Gabriel Duarte<br>
> > Linux User #471185<br>
> > Rio de Janeiro - RJ<br>
> > <a href="http://kinuxlinux.org/gabriel_duarte" target="_blank">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>
> ><br>
><br>
> ><br>
> ------------------------------------------------------------------------------<br>
> > This SF.Net email is sponsored by the Verizon Developer<br>
> Community<br>
> > Take advantage of Verizon's best-in-class app development<br>
> support<br>
> > A streamlined, 14 day to market process makes app<br>
> distribution fast and easy<br>
> > Join now and get one step closer to millions of Verizon<br>
> 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>
><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Verizon Developer<br>
> Community<br>
> Take advantage of Verizon's best-in-class app development<br>
> support<br>
> A streamlined, 14 day to market process makes app distribution<br>
> fast and easy<br>
> Join now and get one step closer to millions of Verizon<br>
> 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>
><br>
><br>
><br>
> --<br>
> Gabriel Duarte<br>
> Linux User #471185<br>
> Rio de Janeiro - RJ<br>
> <a href="http://kinuxlinux.org/gabriel_duarte" target="_blank">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>
> ------------------------------------------------------------------------------<br>
> This SF.Net email is sponsored by the Verizon Developer Community<br>
> Take advantage of Verizon'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>
> _______________________________________________ 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'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>