Page 1 of 1

BUG: truncated png snapshots (with fix)

Posted: 20 Apr 2006 05:37
by dave4444
In modules/codec/ffmpeg/encoder.c AVCODEC_MAX_VIDEO_FRAME_SIZE is set to 3MB, however this is not large enough for some complex 1080i content.

If the image is complex enough avcodec_encode_video() will hit 3MB and produce a truncated png snapshot file.

I've increased the limit to 8MB in my build and have been able to find complex enough 1080i scenes to produce upwards of 6MB of png data.

I'm using a debian sarge version, however looking at the latest version it also has 3MB as a limit.

-Dave

Posted: 20 Apr 2006 17:43
by zorglub
Hello,

Confirmed. Please see https://trac.videolan.org/vlc/ticket/639

We cannot change this setting to something high as this memory is always completely allocated.

Posted: 21 Apr 2006 00:37
by dave4444
perhapse alloc based on Width*Height*Depth? That should give a reasonable buffer given a worst-case (uncompressible) still image.