[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec x264.c,1.9,1.10

Måns Rullgård CVS mru
Wed Sep 14 23:05:26 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv12202/libavcodec

Modified Files:
	x264.c 
Log Message:
set more x264 encoding parameters
patch by Dario Andrade <dario at ip tv>


Index: x264.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/x264.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- x264.c	10 Jul 2005 00:22:13 -0000	1.9
+++ x264.c	14 Sep 2005 21:05:24 -0000	1.10
@@ -135,6 +135,7 @@
     x4->params.i_keyint_max = avctx->gop_size;
     x4->params.rc.i_bitrate = avctx->bit_rate / 1000;
     x4->params.rc.i_vbv_buffer_size = avctx->rc_buffer_size / 1000;
+    x4->params.rc.i_vbv_max_bitrate = avctx->rc_max_rate / 1000;
     if(avctx->rc_buffer_size)
         x4->params.rc.b_cbr = 1;
     x4->params.i_bframe = avctx->max_b_frames;
@@ -144,6 +145,9 @@
     x4->params.rc.i_qp_max = avctx->qmax;
     x4->params.rc.i_qp_step = avctx->max_qdiff;
 
+    x4->params.rc.f_qcompress = avctx->qcompress;  /* 0.0 => cbr, 1.0 => constant qp */
+    x4->params.rc.f_qblur = avctx->qblur;        /* temporally blur quants */
+
     if(avctx->flags & CODEC_FLAG_QSCALE && avctx->global_quality > 0)
         x4->params.rc.i_qp_constant =
             12 + 6 * log2((double) avctx->global_quality / FF_QP2LAMBDA);





More information about the ffmpeg-cvslog mailing list