Chengbin
28th February 2009, 04:33
I wasted a lot of time encoding Kung Fu Panda from Blu-Ray to CRF 20.
To my knowledge, CRF is a quality measure, where x264 use as many bit as it wants to achieve that quality.
Also, there are many x264 settings that help compression.
So I use these two settings, one the simplest possible, one a very complex one.
Simple setting (for some reason AutoMKV didn't use 0 ref frames)
cabac=0 / ref=1 / deblock=1:-1:-1 / analyse=0x1:0x111 / me=dia / subme=2 / psy_rd=0.0:0.0 / mixed_ref=0 / me_range=4 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=0 / keyint=25 / keyint_min=13 / scenecut=40(pre) / rc=crf / crf=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=14000 / ip_ratio=1.40 / aq=0
Complex slow setting
cabac=1 / ref=16 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=16 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=crf / crf=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=14000 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
The simple setting produced a file size of 3.39GB. The slow setting produced a file size of 3.26GB. ??????? I used AutoMKV and x264 r1114 to encode this.
Also, for some reason I can't play the file encoded with the simple profile to play properly. The frame rate is very unstable, ranging from 10-20fps. I've tried ffdshow MT, CoreAVC, and hardware acceleration. The video encoded with the slow profile played perfectly.
To my knowledge, CRF is a quality measure, where x264 use as many bit as it wants to achieve that quality.
Also, there are many x264 settings that help compression.
So I use these two settings, one the simplest possible, one a very complex one.
Simple setting (for some reason AutoMKV didn't use 0 ref frames)
cabac=0 / ref=1 / deblock=1:-1:-1 / analyse=0x1:0x111 / me=dia / subme=2 / psy_rd=0.0:0.0 / mixed_ref=0 / me_range=4 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=0 / keyint=25 / keyint_min=13 / scenecut=40(pre) / rc=crf / crf=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=14000 / ip_ratio=1.40 / aq=0
Complex slow setting
cabac=1 / ref=16 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=16 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=crf / crf=20.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=14000 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
The simple setting produced a file size of 3.39GB. The slow setting produced a file size of 3.26GB. ??????? I used AutoMKV and x264 r1114 to encode this.
Also, for some reason I can't play the file encoded with the simple profile to play properly. The frame rate is very unstable, ranging from 10-20fps. I've tried ffdshow MT, CoreAVC, and hardware acceleration. The video encoded with the slow profile played perfectly.