]> git.sesse.net Git - ffmpeg/commitdiff
vc2enc: print the average quantization index at the end
authorRostislav Pehlivanov <atomnuker@gmail.com>
Mon, 15 Feb 2016 23:54:52 +0000 (23:54 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Mon, 15 Feb 2016 23:54:52 +0000 (23:54 +0000)
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 <atomnuker@gmail.com>
libavcodec/vc2enc.c

index f42b10ffef3cc8aab193ab595f0c63c79916b8a3..0ca21956dfefa96d5a52c6498288af49a973b222 100644 (file)
@@ -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);