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

James Darnley james.darnley at gmail.com
Fri Mar 21 23:58:19 CET 2014


This addresses ticket #3238.
---
 libavcodec/libx264.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 6007630..075cc13 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -383,6 +383,10 @@ static av_cold int X264_init(AVCodecContext *avctx)
             x4->params.rc.f_rf_constant_max = x4->crf_max;
     }
 
+    if (avctx->global_quality > 0)
+        av_log(avctx, AV_LOG_WARNING, "-qscale is ignored with libx264, "
+                "using -crf %0.0f instead.\n", x4->params.rc.f_rf_constant);
+
     if (avctx->rc_buffer_size && avctx->rc_initial_buffer_occupancy > 0 &&
         (avctx->rc_initial_buffer_occupancy <= avctx->rc_buffer_size)) {
         x4->params.rc.f_vbv_buffer_init =
-- 
1.7.9



More information about the ffmpeg-devel mailing list