From 3b1d1437a0f3aa4edfed510b1afa0be4ab2589e3 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Mon, 15 Feb 2016 23:54:52 +0000 Subject: [PATCH] vc2enc: print the average quantization index at the end Similar to how the AAC encoder does it. 0 means the video's been compressed losslessly/almost losslessly thoughout. Generally, the higher, the worse. Signed-off-by: Rostislav Pehlivanov --- libavcodec/vc2enc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c index f42b10ffef..0ca21956df 100644 --- a/libavcodec/vc2enc.c +++ b/libavcodec/vc2enc.c @@ -974,6 +974,8 @@ static av_cold int vc2_encode_end(AVCodecContext *avctx) int i; VC2EncContext *s = avctx->priv_data; + av_log(avctx, AV_LOG_INFO, "Qavg: %i\n", s->q_start); + for (i = 0; i < 3; i++) { ff_vc2enc_free_transforms(&s->transform_args[i].t); av_freep(&s->plane[i].coef_buf);