[FFmpeg-devel] [PATCH 1/3] avcodec/aacenc: Reduce loglevel of aac_encode_end() from INFO to VERBOSE

Rostislav Pehlivanov atomnuker at gmail.com
Mon May 29 18:19:51 EEST 2017


On 29 May 2017 at 14:55, Ingo Br├╝ckl <ib at wupperonline.de> wrote:

> AV_LOG_INFO is the default and meant for informational output.
> The information given by aac_encode_end() is rather technical
> and of less interest to a common user.
> ---
>  libavcodec/aacenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
> index 11da260742..e680e7e14c 100644
> --- a/libavcodec/aacenc.c
> +++ b/libavcodec/aacenc.c
> @@ -853,7 +853,7 @@ static av_cold int aac_encode_end(AVCodecContext
> *avctx)
>  {
>      AACEncContext *s = avctx->priv_data;
>
> -    av_log(avctx, AV_LOG_INFO, "Qavg: %.3f\n", s->lambda_sum /
> s->lambda_count);
> +    av_log(avctx, AV_LOG_VERBOSE, "Qavg: %.3f\n", s->lambda_sum /
> s->lambda_count);
>
>      ff_mdct_end(&s->mdct1024);
>      ff_mdct_end(&s->mdct128);
> --
> 2.12.2
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

I like both the x264, x265 and this printing encoding statistics at the
end. If users want to silence them they can use -loglevel. If users don't
know what it means they should ignore it or learn what it means and make
better encodes in the future.


More information about the ffmpeg-devel mailing list