GNOME Bugzilla – Bug 593651
buffer-size property of ffenc_* is a cop-out
Last modified: 2009-10-01 15:06:59 UTC
The buffer-size property of ffenc needs to go. There's no way for a user to know the proper buffer size. From reading the code it looks like it was introduced because noone had any clue how to properly size the encoding buffers, so instead of fixing it, areasonably large number was taken and because it sometimes failed, it was made a property, so one could override it. FWIW: ffmpeg itself uses 6 * width * height + 200 - doesn't sound a lot better.
commit d9f6febe7015bbbbce7ddc82503f43751f7eb168 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Thu Oct 1 16:44:22 2009 +0200 ffenc: Make sure to always provide large enough buffers For audio always add the minimum ffmpeg buffer size, for video use the same weird buffer size as they use in ffmpeg.c: width*height*6 + 200 Also make setting of the buffer-size property a no-op. Fixes bug #593651.
I'll push it after 0.10.9 release.