From: jstebbins Date: Thu, 16 Dec 2010 23:38:58 +0000 (+0000) Subject: Adjust x264 qpmin for QT compatibility. X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=4c226095a05fff99f835b22278ea6e777ebd37f9;p=handbrake-jp%2Fhandbrake-jp-git.git Adjust x264 qpmin for QT compatibility. A recent change in x264 lowered the default qpmin to 0. QuickTime has trouble with very low QPs (resulting in visual artifacts). Known to affect QuickTime 7, QuickTime X and iTunes. Testing shows that a qpmin of 3 works. git-svn-id: svn://localhost/HandBrake/trunk@3708 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/libhb/encx264.c b/libhb/encx264.c index fe9a11f8..270692c8 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -88,6 +88,12 @@ int encx264Init( hb_work_object_t * w, hb_job_t * job ) /* Enable metrics */ param.analyse.b_psnr = 1; param.analyse.b_ssim = 1; + + /* QuickTime has trouble with very low QPs (resulting in visual artifacts). + * Known to affect QuickTime 7, QuickTime X and iTunes. + * Testing shows that a qpmin of 3 works. + */ + param.rc.i_qp_min = 3; param.i_threads = ( hb_get_cpu_count() * 3 / 2 ); param.i_width = job->width;