Heyy guys!
I'm having a problem with a program I've built. It is used to capture from DV cameras. Currently, I can capture , but I'd like to save the buffers into a file, using my own functions. When i do it, I get a distorced image, and I don't know what to do anymore...
I'll attach the C program and the result to show you all what's happening! Thanks! -- Gabriel Duarte Linux User #471185 Rio de Janeiro - RJ http://kinuxlinux.org/gabriel_duarte Phones: (55) (21) 9463-7760 /*Mobile*/ (55) (21) 2464-9302 /*Home*/ (55) (21) 2529-5080 /*Work*/ -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w--- O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++ G++ e+ h* r+ y++++ ------END GEEK CODE BLOCK------ ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Fri, 2010-01-08 at 15:24 -0200, Gabriel Duarte wrote:
> Heyy guys! > I'm having a problem with a program I've built. It is used to capture > from DV cameras. Currently, I can capture , but I'd like to save the > buffers into a file, using my own functions. When i do it, I get a > distorced image, and I don't know what to do anymore... > I'll attach the C program and the result to show you all what's > happening! Your application is assuming that the gstreamer buffers contain RGB video data, which is most likely not the case. In this particular case you are handling YUV video as if it were RGB and then you get this messed up png. Maybe you can save YUV or use gstreamer to convert to RGB. Wim > Thanks! > > > > > > -- > Gabriel Duarte > Linux User #471185 > Rio de Janeiro - RJ > http://kinuxlinux.org/gabriel_duarte > > Phones: > (55) (21) 9463-7760 /*Mobile*/ > (55) (21) 2464-9302 /*Home*/ > (55) (21) 2529-5080 /*Work*/ > > > -----BEGIN GEEK CODE BLOCK----- > Version: 3.12 > GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w--- > O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++ > G++ e+ h* r+ y++++ > ------END GEEK CODE BLOCK------ > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
How I could do that? Using capsfilters?
On Fri, Jan 8, 2010 at 3:38 PM, Wim Taymans <[hidden email]> wrote:
-- Gabriel Duarte Linux User #471185 Rio de Janeiro - RJ http://kinuxlinux.org/gabriel_duarte Phones: (55) (21) 9463-7760 /*Mobile*/ (55) (21) 2464-9302 /*Home*/ (55) (21) 2529-5080 /*Work*/ -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w--- O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++ G++ e+ h* r+ y++++ ------END GEEK CODE BLOCK------ ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
On Fri, 2010-01-08 at 16:00 -0200, Gabriel Duarte wrote:
> How I could do that? Using capsfilters? Here's an example: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/snapshot/snapshot.c Wim > > On Fri, Jan 8, 2010 at 3:38 PM, Wim Taymans <[hidden email]> > wrote: > On Fri, 2010-01-08 at 15:24 -0200, Gabriel Duarte wrote: > > Heyy guys! > > I'm having a problem with a program I've built. It is used > to capture > > from DV cameras. Currently, I can capture , but I'd like to > save the > > buffers into a file, using my own functions. When i do it, I > get a > > distorced image, and I don't know what to do anymore... > > I'll attach the C program and the result to show you all > what's > > happening! > > > Your application is assuming that the gstreamer buffers > contain RGB > video data, which is most likely not the case. In this > particular case > you are handling YUV video as if it were RGB and then you get > this > messed up png. Maybe you can save YUV or use gstreamer to > convert to > RGB. > > Wim > > > > Thanks! > > > > > > > > > > > > -- > > Gabriel Duarte > > Linux User #471185 > > Rio de Janeiro - RJ > > http://kinuxlinux.org/gabriel_duarte > > > > Phones: > > (55) (21) 9463-7760 /*Mobile*/ > > (55) (21) 2464-9302 /*Home*/ > > (55) (21) 2529-5080 /*Work*/ > > > > > > -----BEGIN GEEK CODE BLOCK----- > > Version: 3.12 > > GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w--- > > O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++ > > G++ e+ h* r+ y++++ > > ------END GEEK CODE BLOCK------ > > > > > > ------------------------------------------------------------------------------ > > This SF.Net email is sponsored by the Verizon Developer > Community > > Take advantage of Verizon's best-in-class app development > support > > A streamlined, 14 day to market process makes app > distribution fast and easy > > Join now and get one step closer to millions of Verizon > customers > > http://p.sf.net/sfu/verizon-dev2dev > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer > Community > Take advantage of Verizon's best-in-class app development > support > A streamlined, 14 day to market process makes app distribution > fast and easy > Join now and get one step closer to millions of Verizon > customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > > > > -- > Gabriel Duarte > Linux User #471185 > Rio de Janeiro - RJ > http://kinuxlinux.org/gabriel_duarte > > Phones: > (55) (21) 9463-7760 /*Mobile*/ > (55) (21) 2464-9302 /*Home*/ > (55) (21) 2529-5080 /*Work*/ > > > -----BEGIN GEEK CODE BLOCK----- > Version: 3.12 > GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w--- > O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++ > G++ e+ h* r+ y++++ > ------END GEEK CODE BLOCK------ > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
I could not see where the conversion is done :S
On Fri, Jan 8, 2010 at 4:36 PM, Wim Taymans <[hidden email]> wrote:
-- Gabriel Duarte Linux User #471185 Rio de Janeiro - RJ http://kinuxlinux.org/gabriel_duarte Phones: (55) (21) 9463-7760 /*Mobile*/ (55) (21) 2464-9302 /*Home*/ (55) (21) 2529-5080 /*Work*/ -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d- s: a--- C++ UL+++ P L++++ E- W+ N++ o++ K++ w--- O- M- V- PS++ PE++ Y PGP- t++ 5-- X+++ R tv++ b++ DI+ D++ G++ e+ h* r+ y++++ ------END GEEK CODE BLOCK------ ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |