#25 Seek by percentage doesn't take into account buffering

Simon Hyde

Seeking by a percentage of file size doesn't take into account the current size/amount of data in any software buffers (or hardware buffers for that matter). This leads to jumping back 1% usually producing radically different results to forward 1%, for smaller files jumping back 1% can actually cause the video to jump forward (since 1% is less than the size of the buffer).

Whilst I understand that taking into account the amount of data in the hardware buffer would be difficult (there's no known API for getting this, although it might be possible to do some estimation by comparing the STC with the PTS of the most recently seen video frame), checking the status of software buffers should be relatively easy, and could be factored into any calculations.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks