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