simonbcn
15th January 2009, 00:47
Hi,
I am looking for x264 optimal settings for conversion from Blu-ray. :helpful:
I use x264 version: 0.65.1080 and mencoder version: dev-SVN-r28311-4.2.4.
I am currently using these values:
For films footage:
Pass 1:
mencoder "$M2TS" $crop -ovc x264 -x264encopts bitrate=9000:weightb:ref=$ref:b_adapt=2:no_psnr:no_ssim:mixed_refs:bframes=3:b_pyramid
:8x8dct:direct=auto:level=41:threads=auto:pass=1 -of rawvideo -mc 0 -noskip -nosound -o /dev/null
Pass 2:
mencoder "$M2TS" $crop -ovc x264 -x264encopts bitrate=9000:weightb:trellis=2:subme=8:ref=$ref:psy_rd=1,1:no_psnr:no_ssim:mixed_refs
:bframes=3:b_pyramid:8x8dct:me=umh:merange=32:partitions=all:direct=auto:level=41:threads=auto:pass=2 -of rawvideo -mc 0 -noskip
-nosound -o $nomVideoSalida
---------------------------------------------------------------------------------------------------
For animated footage:
Pass 1:
mencoder "$M2TS" $crop -ovc x264 -x264encopts bitrate=7000:ref=$ref:b_adapt=2:no_psnr:no_ssim:mixed_refs:bframes=3:b_pyramid
:8x8dct:direct=auto:level=41:threads=auto:pass=1 -of rawvideo -mc 0 -noskip -nosound -o /dev/null
Pass 2:
mencoder "$M2TS" $crop -ovc x264 -x264encopts bitrate=7000:trellis=1:subme=6:ref=$ref:psy_rd=1,1:no_psnr:no_ssim:mixed_refs
:bframes=3:b_pyramid:8x8dct:me=umh:merange=32:partitions=all:direct=auto:level=41:threads=auto:pass=2 -of rawvideo -mc 0 -noskip
-nosound -o $nomVideoSalida
---------------------------------------------------------------------------------------------------
"$ref" is calculated using the formula:
8388608 / (Height X Width) = nREF
I know there are certain parameters that are only necessary in pass 1 (like b_adapt=2) or in pass 1 doesn't need to have a very high value, and others that it is advisable to use in pass 1 and 2, based on this: I'm using some in the pass that is not appropriated? What parameters are more important in the first pass?
About the parameters above posts, for animated and films footage, you believe that I should add/change/delete something for improve the quality of the file obtained without too much cost in speed?
Any opinion is welcome. I would like to learn more about these issues.
Sorry for my bad english. Thank you very much! :thanks:
I am looking for x264 optimal settings for conversion from Blu-ray. :helpful:
I use x264 version: 0.65.1080 and mencoder version: dev-SVN-r28311-4.2.4.
I am currently using these values:
For films footage:
Pass 1:
mencoder "$M2TS" $crop -ovc x264 -x264encopts bitrate=9000:weightb:ref=$ref:b_adapt=2:no_psnr:no_ssim:mixed_refs:bframes=3:b_pyramid
:8x8dct:direct=auto:level=41:threads=auto:pass=1 -of rawvideo -mc 0 -noskip -nosound -o /dev/null
Pass 2:
mencoder "$M2TS" $crop -ovc x264 -x264encopts bitrate=9000:weightb:trellis=2:subme=8:ref=$ref:psy_rd=1,1:no_psnr:no_ssim:mixed_refs
:bframes=3:b_pyramid:8x8dct:me=umh:merange=32:partitions=all:direct=auto:level=41:threads=auto:pass=2 -of rawvideo -mc 0 -noskip
-nosound -o $nomVideoSalida
---------------------------------------------------------------------------------------------------
For animated footage:
Pass 1:
mencoder "$M2TS" $crop -ovc x264 -x264encopts bitrate=7000:ref=$ref:b_adapt=2:no_psnr:no_ssim:mixed_refs:bframes=3:b_pyramid
:8x8dct:direct=auto:level=41:threads=auto:pass=1 -of rawvideo -mc 0 -noskip -nosound -o /dev/null
Pass 2:
mencoder "$M2TS" $crop -ovc x264 -x264encopts bitrate=7000:trellis=1:subme=6:ref=$ref:psy_rd=1,1:no_psnr:no_ssim:mixed_refs
:bframes=3:b_pyramid:8x8dct:me=umh:merange=32:partitions=all:direct=auto:level=41:threads=auto:pass=2 -of rawvideo -mc 0 -noskip
-nosound -o $nomVideoSalida
---------------------------------------------------------------------------------------------------
"$ref" is calculated using the formula:
8388608 / (Height X Width) = nREF
I know there are certain parameters that are only necessary in pass 1 (like b_adapt=2) or in pass 1 doesn't need to have a very high value, and others that it is advisable to use in pass 1 and 2, based on this: I'm using some in the pass that is not appropriated? What parameters are more important in the first pass?
About the parameters above posts, for animated and films footage, you believe that I should add/change/delete something for improve the quality of the file obtained without too much cost in speed?
Any opinion is welcome. I would like to learn more about these issues.
Sorry for my bad english. Thank you very much! :thanks: