How!<br><br><div class="gmail_quote">On Sun, Dec 6, 2009 at 6:02 AM, Mailing List SVR <span dir="ltr"><<a href="mailto:lists@svrinformatica.it">lists@svrinformatica.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I solved myself pushing the frame to a second pipeline,<br>
<br>
thanks<br>
Nicola<br>
<br>
In data sabato 5 dicembre 2009 23:27:59, Mailing List SVR ha scritto:<br>
: > In data sabato 5 dicembre 2009 19:39:31, Mailing List SVR ha scritto:<br>
<div><div></div><div class="h5">> : > Hi all,<br>
> ><br>
> > I'm using a simple playbin pipeline, I can get the last frame with<br>
> > something like this:<br>
> ><br>
> > In [124]: frame=player.get_property("frame")<br>
> ><br>
> > In [125]: frame<br>
> > Out[125]: <gst.Buffer 0x1fed6f0 of size 115200 and data 0x49484445><br>
><br>
> additionally:<br>
><br>
> In [34]: frame.get_caps().to_string()<br>
> Out[34]: 'video/x-raw-yuv, width=(int)320, height=(int)240,<br>
> framerate=(fraction)10/1, format=(fourcc)I420, interlaced=(boolean)false,<br>
> pixel-aspect-ratio=(fraction)1/1'<br>
><br>
> I tried this pipeline:<br>
><br>
> gst-launch-0.10 -v filesrc location=/tmp/frame ! "video/x-raw-yuv,<br>
> width=(int)320, height=(int)240, framerate=(fraction)10/1,<br>
> format=(fourcc)I420, interlaced=(boolean)false, pixel-aspect-<br>
> ratio=(fraction)1/1" ! jpegenc ! filesink location=test.jpg<br>
><br>
> but the jpg generated is bad (attacched). I attacch also the saved<br>
> frame.data<br>
><br>
> > now I can access frame.data that would be the raw frame data, but how to<br>
> > convert this frame to a jpg or png image? I tried to save the frame to a<br>
> > file and to convert with jpegenc and pngenc with no success, any<br>
> > suggestions?<br>
> ><br>
> > thanks<br>
> > Nicola<br>
> ><br>
> > -------------------------------------------------------------------------<br>
> >-- --- Join us December 9, 2009 for the Red Hat Virtual Experience, a free<br>
> > event focused on virtualization and cloud computing.<br>
> > Attend in-depth sessions from your desk. Your couch. Anywhere.<br>
> > <a href="http://p.sf.net/sfu/redhat-sfdev2dev" target="_blank">http://p.sf.net/sfu/redhat-sfdev2dev</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>
</div></div>------------------------------------------------------------------------------<br>
<div><div></div><div class="h5">Join us December 9, 2009 for the Red Hat Virtual Experience,<br>
a free event focused on virtualization and cloud computing.<br>
Attend in-depth sessions from your desk. Your couch. Anywhere.<br>
<a href="http://p.sf.net/sfu/redhat-sfdev2dev" target="_blank">http://p.sf.net/sfu/redhat-sfdev2dev</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>