[vlc-devel] [PATCH] support for seeking in AVI over http

Mike Schrag mschrag at pobox.com
Wed Oct 21 23:19:25 CEST 2009


These patches add preliminary support for seeking in avi's over  
http ... The main issue is that avi considers not having fast seek  
equivalent to "unseekable".  I've changed this some and instead  
separated the concept of seeking from fast seeking throughout the avi  
demux module and relaxed some of the fastseek requirements.  Now it  
actually only requires fast seek during playback but not while loading  
the index metadata. This makes the startup a LITTLE chattier because  
it does open a couple http sockets, but the net performance change is  
not very noticeable (at least for the tests i've done) and you support  
for skipping and for knowing the length of the avi, which is really  
nice.

There is a lingering issue that if you skip very near the end of the  
stream, the avi demux can get stuck in a loop trying to find the next  
packet, but I thought I'd at least share what I have so far in case  
other people find it to be a useful starting point given that that's  
kind of an edge case.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-don-t-require-fastseek-during-the-avi-loading-proces.patch
Type: application/octet-stream
Size: 2139 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091021/4a323792/attachment.obj>
-------------- next part --------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-separate-seek-from-fastseek-relax-fastseek-requireme.patch
Type: application/octet-stream
Size: 2838 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091021/4a323792/attachment-0001.obj>
-------------- next part --------------


ms


More information about the vlc-devel mailing list