[FFmpeg-devel] [PATCH 3/4 v2] avcodec/libx265: export encoded frame stats

Derek Buitenhuis derek.buitenhuis at gmail.com
Tue Dec 31 02:50:52 EET 2019


On 30/12/2019 23:53, James Almer wrote:
>> Does multiplying by FF_QP2LAMBDA even make sense here? That contsant
>> is for H.263's QP scale, not HEVC's.
> 
> Pretty much every call to ff_side_data_set_encoder_stats() in lavc does
> it, including libx264, so i figure it's expected.

It looks like it won't work for e.g. AV1, which has a QP (qindex) range of 0-255,
for example, but will for current MPEG codecs which all have 0-51, so is fine in
this patch.

The documentation for FF_QP2LAMBDA is... let's call it lacking.

Aside: libaom and libvpx passes ff_side_data_set_encoder_stats the SSE... gross (and WTF?).

- Derek


More information about the ffmpeg-devel mailing list