<br clear="all"><br><a href="http://lives.sourceforge.net">http://lives.sourceforge.net</a><br><a href="https://www.ohloh.net/accounts/salsaman">https://www.ohloh.net/accounts/salsaman</a><br><br>
<br><br><div class="gmail_quote">On Mon, Mar 15, 2010 at 3:48 PM, Nigel Simpson <span dir="ltr"><<a href="mailto:nigel@matsuplace.com">nigel@matsuplace.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;">
What's odd about Cortado is that it can reliably seek to a percentage position.</blockquote><div><br>But can it really, or is it seeking to the next p-frame ?<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The problem only occurs with pause (when the player pauses, it's off from the position you paused at) and playing after pausing (jumps ahead and has problem resuming audio). I thought I could get the pause position and the set it when resuming play, but this doesn't work: the reported position is wrong.<br>
<br>
BTW, I'm building a video player application for Open Wonderland, an immersive 3D virtual world (<a href="http://openwonderland.org" target="_blank">http://openwonderland.org</a>). Unfortunately if I can't resolve this pause/play issue, I'll have to find a different Java based video player. So, any workaround for this issue would be greatly appreciated.<br>
<br>
Thanks,<br><font color="#888888">
<br>
Nigel</font><div><div></div><div class="h5"><br>
<br>
On Mar 15, 2010, at 3:33 AM, salsaman <<a href="mailto:salsaman@gmail.com" target="_blank">salsaman@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When I looked at oggindex a few months ago the seeking was completely<br>
broken. The only player I know of which can seek reliably in ogg is<br>
the one which I wrote for LiVES:<br>
<br>
<a href="http://lives.svn.sourceforge.net/viewvc/lives/trunk/lives-plugins/plugins/decoders/ogg_theora_decoder.c" target="_blank">http://lives.svn.sourceforge.net/viewvc/lives/trunk/lives-plugins/plugins/decoders/ogg_theora_decoder.c</a><br>
<br>
It also has some nice optimisations, for example it will create a<br>
keyframe index as it discovers keyframes, and if you are playing<br>
sequentially it will just decode from the current position.<br>
<br>
Salsaman.<br>
<br>
<br>
<br>
<br>
<a href="http://lives.sourceforge.net" target="_blank">http://lives.sourceforge.net</a><br>
<a href="https://www.ohloh.net/accounts/salsaman" target="_blank">https://www.ohloh.net/accounts/salsaman</a><br>
<br>
<br>
<br>
<br>
On Wed, Mar 10, 2010 at 11:12 PM, Nigel Simpson <<a href="mailto:nigel@matsuplace.com" target="_blank">nigel@matsuplace.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
One of the issues I've consistently run into with the cortado player app is seek behavior, so I was curious to see how cortado handles video encoded with the latest ffmpeg2theora (0.26) and the new -seek-index option, so I tried converting an h.264 video:<br>
<br>
ffmpeg2theora tronlegacy-tsr1_480p.mov --seek-index<br>
<br>
This output the following advisory messages:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Allocated 372 bytes for theora keyframe index, 114 are unused. Rerun with '--theora-index-reserve 258' to encode with the optimal sized theora index, or use OggIndex to re-index.<br>
Allocated 372 bytes for vorbis keyframe index, 59 are unused. Rerun with '--vorbis-index-reserve 313' to encode with the optimal sized vorbis index, or use OggIndex to re-index.<br>
</blockquote>
<br>
<br>
So, I re-encoded using the recommended parameters:<br>
<br>
ffmpeg2theora tronlegacy-tsr1_480p.mov --seek-index --theora-index-reserve 258 --vorbis-index-reserve 313<br>
<br>
When I play the converted video using cortado 0.5.2, seeking still seems to be broken. For example: play a video, pause and then press play, the player resumes several seconds after the paused position. Also, pause and drag the time slider. The slider jumps to a new position after you release the drag rather than where the slider was dragged.<br>
<br>
Does cortado support OggIndex?<br>
Are there any workarounds for reliably getting and setting the playback position?<br>
<br>
Thanks!<br>
<br>
Nigel<br>
_______________________________________________<br>
theora-dev mailing list<br>
<a href="mailto:theora-dev@xiph.org" target="_blank">theora-dev@xiph.org</a><br>
<a href="http://lists.xiph.org/mailman/listinfo/theora-dev" target="_blank">http://lists.xiph.org/mailman/listinfo/theora-dev</a><br>
<br>
</blockquote></blockquote>
</div></div></blockquote></div><br>