diff options
author | jstebbins <[email protected]> | 2010-12-16 23:38:58 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-12-16 23:38:58 +0000 |
commit | 6bf984c0169bf68f9a21f8cd751053392b134fcd (patch) | |
tree | bdb6718b6228e4f74cb7fa51052861d8e1f6a17e /libhb/encx264.c | |
parent | 67d0a95832dec03e77f3f525e0622b6f5e5787bb (diff) |
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://svn.handbrake.fr/HandBrake/trunk@3708 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r-- | libhb/encx264.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c index fe9a11f82..270692c8a 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; |