[FFmpeg-devel] flashsvenc.c - sampling block size too low

Benjamin Larsson banan
Fri May 18 11:15:36 CEST 2007

Jason Askew wrote:
>> could you please explain what exactly this patch is doing?
> Block size can only be changed at i-frame boundaries.
> It is not known ahead of time what the optimal block code for a given
> i-frame group is going to be.
> My code keeps track of the total encoding size since the last i-frame
> for each of the possible block sizes.  When the next i-frame is
> encountered, the smallest encoded block size is written to the log
> file.  On the second pass, this block size is then used to encode that
> i-frame section, resulting in the smallest possible file size.
> I interacted with Benjamin Larsson to get his permission to extend his
> code and to make sure this was the correct route.

The beauty with most open source is that you don't explicitly need any
permission to extend the code.

Benjamin Larsson

More information about the ffmpeg-devel mailing list