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

YIRAN LI mrfun.china at gmail.com
Fri Jun 10 05:32:28 CEST 2016


2016-06-09 23:29 GMT+10:00 Carl Eugen Hoyos <cehoyos at ag.or.at>:

> 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.
>
>
​Thansk Carl, I think I can use the same way to set quality for mpeg4
video, right?

What't the differenct between it and seting qmin qmax in codeccctx?

Thanks
​


> Carl Eugen
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160610/9a0484ee/attachment.html>


More information about the Libav-user mailing list