[FFmpeg-cvslog] vc2enc: print the average quantization index at the end
Rostislav Pehlivanov
git at videolan.org
Tue Feb 16 00:55:41 CET 2016
ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Mon Feb 15 23:54:52 2016 +0000| [3b1d1437a0f3aa4edfed510b1afa0be4ab2589e3] | committer: Rostislav Pehlivanov
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 <atomnuker at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b1d1437a0f3aa4edfed510b1afa0be4ab2589e3
---
libavcodec/vc2enc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index f42b10f..0ca2195 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);
More information about the ffmpeg-cvslog
mailing list