Not sure what could be the exact usage of same?<br>But if we just jump to last frame it might happen that last frame is a black (probablity is high) , will still it be useful.<br><br>-kapil<br><br><div class="gmail_quote">
On Sat, Feb 27, 2010 at 9:37 PM, wl2776 <span dir="ltr"><<a href="mailto:wl2776@gmail.com">wl2776@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Further studies have shown, that this doesn't work on all files. I tried avi<br>
and mpeg-2 PS files.<br>
I am still looking for reliable solution.<br>
I am developing a medial player with GStreamer, in windows. My task is to<br>
make it to jump to the end of file and display the last frame.<br>
<br>
I use playbin2 with directdraw videosink.<br>
<div class="im"><br>
<br>
wl2776 wrote:<br>
><br>
> void gst_player::go_end()<br>
> {<br>
> if(m_player){<br>
> gboolean rb;<br>
> int attempts=0;<br>
> do {<br>
> rb=gst_element_seek(GST_ELEMENT(m_player),-1.0,<br>
><br>
> GST_FORMAT_TIME,(GstSeekFlags)(GST_SEEK_FLAG_FLUSH|GST_SEEK_FLAG_ACCURATE),<br>
> GST_SEEK_TYPE_SET,0,GST_SEEK_TYPE_END,0);<br>
> if(!rb) Sleep(100);<br>
> }while(!rb || ++attempts>3);<br>
><br>
> if(rb){<br>
> gst_element_set_state(GST_ELEMENT(m_player),GST_STATE_PLAYING);<br>
> }<br>
> }<br>
> }<br>
><br>
> This makes the playbin2 to display the last frame.<br>
> In all other cases, I've tried, it successfully positioned to the end of<br>
> file, but didn't draw the last frame.<br>
><br>
<br>
--<br>
</div>View this message in context: <a href="http://n4.nabble.com/How-can-I-make-a-playbin2-to-jump-to-the-last-video-frame-and-display-it-tp1567156p1572038.html" target="_blank">http://n4.nabble.com/How-can-I-make-a-playbin2-to-jump-to-the-last-video-frame-and-display-it-tp1567156p1572038.html</a><br>
<div><div></div><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
Download Intel&#174; Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</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><a href="http://www.linkedin.com/in/kapilagrawal">http://www.linkedin.com/in/kapilagrawal</a><br>