OSDN Git Service

Adjust x264 qpmin for QT compatibility.
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 16 Dec 2010 23:38:58 +0000 (23:38 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 16 Dec 2010 23:38:58 +0000 (23:38 +0000)
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

libhb/encx264.c

index fe9a11f..270692c 100644 (file)
@@ -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;