[Ffmpeg-devel] [PATCH] asf seek back at end of file after rewriting header
Ronald S. Bultje
Mon Apr 16 07:43:14 CEST 2007
On Apr 15, 2007, Rich Felker wrote:
> On Sun, Apr 15, 2007 at 07:17:11PM +0200, Baptiste Coudurier wrote:
>> Reimar D?ffinger wrote:
>>> stat only work normal files, what is the point of avoiding the
>>> seek with
>> Yes, there is no point of using f/stat for normal files, that's why
>> url_fsize does seek for normal files.
> The problem is that seek also works for http and custom stream types,
> resulting in horrible performance and abusive behavior. It would be
> better to determine the size another way if possible and if not, treat
> the size as unknown. Maybe this is already done by AVSEEK_SIZE..?
This is exactly why AVSEEK_SIZE was implemented. And indeed, for
http, seeking is implemented and AVSEEK_SIZE uses values from the
http headers, it doesn't actually do the seek (= recreate stream and
introduce horrible latency). See http://lists.mplayerhq.hu/pipermail/
ffmpeg-devel/2007-January/021008.html and related threads for happy
memories & stuff.
More information about the ffmpeg-devel