[Libav-user] how to set mjpeg encoding quality programmatically?

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jun 9 15:29:44 CEST 2016


YIRAN LI <mrfun.china at ...> writes:

> AVCodecContext.flags |= CODEC_FLAG_QSCALE
> and AVCodecContext.global_quality  = qscale * FF_QP2LAMBDA, 
> in my case qscale = 3

This is correct, qscale 3 ensures (with mpeg-4 asp) a 
near-lossless visual quality.

Carl Eugen


More information about the Libav-user mailing list