[MPlayer-dev-eng] [PATCH] ffvhuff: encoded frame too large

infernix infernix at infernix.net
Mon Jun 25 23:15:47 CEST 2007


Loren Merritt wrote:
> On Fri, 13 Apr 2007, infernix wrote:
>> I'm encoding to a large resolution ffvhuff file (source is 1920x1040) 
>> and am occasionally getting this message from mencoder:
>> [ffvhuff @ 0x8847980]encoded frame too large
>> Does anyone know what happens to a frame when this error occurs? Does 
>> it get discarded? Is it because I'm encoding to avi?

> MEncoder allocates a constant buffer size of 2MB to hold a compressed 
> frame. 1080p is 3MB uncompressed, and huffyuv (or any lossless codec) 
> can't always compress a 3MB frame into less than 2MB.
> Solution: increase the buffer size, and/or make it dynamic.

Is there any reason why this defaults to 2MB in svn? I keep patching it 
to 4MB for every build, and I can't imagine it would hurt to change it 
to that by default - but IANAC.

Attached is a patch by Joey Parrish.

Regards,

infernix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buffersize.patch
Type: text/x-patch
Size: 303 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070625/39ff6b1c/attachment.bin>


More information about the MPlayer-dev-eng mailing list