x264interlaced="--tff --nal-hrd vbr"\r
if bluray==1:\r
if getX264CoreVersion()<115:\r
- x264bluray="--demuxer raw --weightp 1 --nal-hrd vbr --bframes 3 --b-pyramid none --open-gop bluray --slices 4 --aud --colorprim bt709 --transfer bt709 "\r
+ x264bluray=" --weightp 1 --nal-hrd vbr --bframes 3 --b-pyramid none --open-gop bluray --slices 4 --aud --colorprim bt709 --transfer bt709 "\r
x264_addline=""\r
if fps=="24000/1001 --keyint 24" or fps =="24000/1001":\r
if x264streamsize=="1280x720":\r
else:\r
x264bluray=u"--ref 3 "+x264bluray\r
elif getX264CoreVersion()>=115:\r
- x264bluray="--demuxer raw --bluray-compat --open-gop --nal-hrd vbr --bframes 3 --b-pyramid none --aud --colorprim bt709 --transfer bt709 "\r
+ x264bluray=" --slices 4 --bluray-compat --open-gop --nal-hrd vbr --bframes 3 --b-pyramid none --aud --colorprim bt709 --transfer bt709 "\r
x264_addline=""\r
if fps=="24000/1001 --keyint 24" or fps =="24000/1001":\r
if x264streamsize=="1280x720":\r
x264bluray=u"--ref 3 "+x264bluray\r
elif fps=="30000/1001 --keyint 30" or fps =="30000/1001":\r
if x264streamsize=="1280x720":\r
- x264bluray=u"--ref 6 "+x264bluray\r
+ x264bluray=u"--fake-interlaced --ref 6 --pulldown double "+x264bluray\r
if x264streamsize=="1920x1080":\r
if interlaced==0:\r
x264bluray=u"--ref 3 --fake-interlaced --pic-struct "+x264bluray\r
x264_addline=configreader.getConfEnv("x264_addline")\r
if getX264CoreVersion()>103:\r
x264res=u"--input-res "+x264streamsize\r
- exe=u"nice -n 19 "+x264+" "+x264_sar+" "+x264crf+u" "+x264bluray+u" "+x264interlaced+u" "+x264_addline+u" --colormatrix bt709 --threads "+x264_thread+" "+x264profile+x264preset+" "+x264tune+" "+x264fps+" "+x264res+" -o \""+pout+"\" "+pin\r
+ exe=u"nice -n 19 "+x264+" --demuxer raw --vbv-maxrate 30000 --vbv-bufsize 25000 "+x264_sar+" "+x264crf+u" "+x264bluray+u" "+x264interlaced+u" "+x264_addline+u" --colormatrix bt709 --threads "+x264_thread+" "+x264profile+x264preset+" "+x264tune+" "+x264fps+" "+x264res+" -o \""+pout+"\" "+pin\r
else:\r
- exe=u"nice -n 19 "+x264+" "+x264_sar+" "+x264crf+u" "+x264bluray+u" "+x264interlaced+u" "+x264_addline+u" --colormatrix bt709 --threads "+x264_thread+" "+x264profile+x264preset+" "+x264tune+" "+x264fps+" -o \""+pout+"\" "+pin+" "+x264streamsize\r
+ exe=u"nice -n 19 "+x264+" --demuxer raw --vbv-maxrate 30000 --vbv-bufsize 25000 "+x264_sar+" "+x264crf+u" "+x264bluray+u" "+x264interlaced+u" "+x264_addline+u" --colormatrix bt709 --threads "+x264_thread+" "+x264profile+x264preset+" "+x264tune+" "+x264fps+" -o \""+pout+"\" "+pin+" "+x264streamsize\r
return exe\r