[Ffmpeg-devel] [PATCH/RFC] http seeking

Ronald S. Bultje rbultje
Thu Jan 4 05:42:27 CET 2007


attached is my new attempt at HTTP seeking. It's using AVSEEK_SIZE for
retrieving the filesize. It uses the Range request header as defined in
the HTTP 1.1 spec. Seek failures are handled by keeping the old
connection open until after the seek has succeeded. is_stream is set by
the Content-Range property in the server reply header.

I've tested this on a variety on audio/video formats (avi, quicktime,
mp3, mpeg/vob) and it works for all of them, although performance isn't
always optimal (e.g. quicktime seeks a lot, leading to considerable
demuxer slowdowns, mp3 caches a lot of data and so the first seek takes
a while to complete, large DVD-size vob movies don't play at full speed
b/c of network slowness here, etc.). I'm sure that can be worked on at
some point.

Comments welcome.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: d
Type: text/x-patch
Size: 7478 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070103/1857f159/attachment.bin>

More information about the ffmpeg-devel mailing list