BUG: truncated png snapshots (with fix)

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
dave4444
New Cone
New Cone
Posts: 2
Joined: 20 Apr 2006 05:24

BUG: truncated png snapshots (with fix)

Postby dave4444 » 20 Apr 2006 05:37

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

zorglub
Cone that earned his stripes
Cone that earned his stripes
Posts: 482
Joined: 21 Nov 2003 02:53
Location: Paris - France
Contact:

Postby zorglub » 20 Apr 2006 17:43

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.
Zorglub
Clément Stenac

dave4444
New Cone
New Cone
Posts: 2
Joined: 20 Apr 2006 05:24

Postby dave4444 » 21 Apr 2006 00:37

perhapse alloc based on Width*Height*Depth? That should give a reasonable buffer given a worst-case (uncompressible) still image.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 5 guests