<br><br><div class="gmail_quote">On Thu, Apr 5, 2012 at 7:16 AM, padam <span dir="ltr">&lt;<a href="mailto:skaromana@wp.pl">skaromana@wp.pl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jason, i know that first a get i number in nanoseconds, but how i can get<br>
this number, this is the most important question! I will work with AVI,<br>
MSMPEG4 and MP3. Meybe more, not less.<br></blockquote><div><br>Well, there are a few slightly different ways you can query the total duration, I&#39;ve got a Python example here, but there are probably better examples:<br>
<br><a href="http://bazaar.launchpad.net/~dmedia/dmedia/trunk/view/head:/dmedia-extract#L79">http://bazaar.launchpad.net/~dmedia/dmedia/trunk/view/head:/dmedia-extract#L79</a><br><br>To get the timestamp of an individual frame, the only way I&#39;ve done that is in a &quot;handoff&quot; handler for a fakesink element, Python example on line 179:<br>
<br><a href="http://bazaar.launchpad.net/~novacut/novacut/trunk/view/head:/novacut-thumbnailer#L179">http://bazaar.launchpad.net/~novacut/novacut/trunk/view/head:/novacut-thumbnailer#L179</a><br><br>I&#39;m not sure there&#39;s a very easy way to do this during normal playback, though. Anyone have any ideas?<br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks for your quick help :)<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/number-of-actual-frame-tp4534716p4534805.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/number-of-actual-frame-tp4534716p4534805.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>