[FFmpeg-cvslog] lavc/libx264: add a warning when using qscale

James Darnley git at videolan.org
Sat Mar 22 13:17:57 CET 2014


ffmpeg | branch: master | James Darnley <james.darnley at gmail.com> | Sat Mar 22 09:48:52 2014 +0100| [f02832904dbce8e0473cdc9c7b09d92493b40a14] | committer: Michael Niedermayer

lavc/libx264: add a warning when using qscale

This addresses ticket #3238.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f02832904dbce8e0473cdc9c7b09d92493b40a14
---

 libavcodec/libx264.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 6007630..ebaf351 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -330,6 +330,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
     X264Context *x4 = avctx->priv_data;
     int sw,sh;
 
+    if (avctx->global_quality > 0)
+        av_log(avctx, AV_LOG_WARNING, "-qscale is ignored, -crf is recommended.\n");
+
     x264_param_default(&x4->params);
 
     x4->params.b_deblocking_filter         = avctx->flags & CODEC_FLAG_LOOP_FILTER;



More information about the ffmpeg-cvslog mailing list