GNOME Bugzilla – Bug 665894
[0.11] MPEG PS Demuxer seeking is really slow on VBR files
Last modified: 2012-02-20 15:18:35 UTC
Created attachment 203176 [details] [review] Patch to add binary search for seeking When the bitrate varies too much the demuxer offset guess can be too far off. Tested with 2.8 GB vob file some seeks took more than 1.5sec just to find the right offset. Attached patch implements the seeking using binary search. During my testing with same file it reduced the seek time to less than 10ms.
Note - the code could use a recursion counter so that it doesn't overflow on malformed stream. Will fix later.
This looks like something that should go into master and then be merged into 0.11.
Created attachment 203203 [details] [review] Updated patch to add max recursion check The patch is for 0.11 (which is what I develop against). If you want to apply the patch I can provide version for 0.10 if someone is willing to test it - I don't have any application to test it with that links with 0.10.
Created attachment 203816 [details] [review] Use binary search for seeking fix uninitialized variable
Totem ought to be a good 0.10 test for that FWIW.
I'm not sure I feel like building totem on OS X.
gst-plugins-base/tests/examples/seek is a good test for seeking stuff ;)
seem to be commited