[FFmpeg-devel] [PATCH] Do small seeks forward by skipping data instead of seeking, even for seekable protocols

Martin Storsjö martin
Fri Jul 16 15:21:03 CEST 2010


Hi,

As in $subj - even if the underlying protocol is seekable (such as when 
reading a plain file over http), doing small seeks forward is 
prohibitively expensive (and sometimes errorprone, too) compared to simply 
skipping data.

Some demuxers (flvdec is the one I've been testing with) triggers these 
very often, sometimes after every few 100 KB or so.

This issue can be solved at two levels, both within aviobuf and within the 
http protocol - both have their advantages and disadvantages. See the 
attached patches - what do you prefer, or do you want it solved at both 
levels?

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-aviobuf-Do-short-seeks-forward-by-reading-instead-of.patch
Type: text/x-diff
Size: 1121 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100716/105e3ef7/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-http-Calculate-the-seek-offset-before-backing-up-the.patch
Type: text/x-diff
Size: 1219 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100716/105e3ef7/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-http-Handle-seeks-within-the-buffered-data-by-moving.patch
Type: text/x-diff
Size: 1007 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100716/105e3ef7/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-http-Do-small-seeks-forward-by-simply-reading-data-i.patch
Type: text/x-diff
Size: 1424 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100716/105e3ef7/attachment-0003.patch>



More information about the ffmpeg-devel mailing list