绝大部分x264参数都可以自行添加到设置,示例的几个target并没有包含全部可设置的参数,需要自己添加。tinkle 写了:请问参数设置没有preset吗?还是说需要自行添加的?
好像除了先用avs2avi空跑一遍以外也没有其它好方法了。。。tinkle 写了:请教下timecode的问题,因为是在2pass时使用dedup生成tc文件,所以一开始的tc文件是不存在的,那么我要怎么使用这个tc参数封装2pass生成的timecode?
代码: 全选
common_params = "--threads auto --thread-input {tc} --sar {sar} "+ \
"--ref {ref} --aq-strength 1.5 "+ \
"--weightb --mixed-refs --no-fast-pskip "+ \
"--deblock 1:1 "
common_params_pass1 = '--pass 1 --slow-firstpass --stats "{statsFile}" ' + \
'--direct auto --trellis 0 --no-8x8dct --me hex ' + \
'--subme 6 --partitions none --b-adapt 2 --output NUL'
common_params_pass2 = '--pass 2 --stats "{statsFile}" --ssim --direct auto '+ \
'--merange 64 ' + \
'--me umh --subme 10 --trellis 2 --output "{outFile}"'
encode_targets = {
"mkv_720p" : {
"default_sar": "1:1",
"default_ref": 7,
"bitrate_ratio": 1.0,
"common": "--profile high --level 4.1 --bframes 7 " + \
"--vbv-bufsize 50000 --vbv-maxrate 50000",
'pass1': '--crf {crf}',
"pass2": '--bitrate {bitrate} --partitions "p8x8,b8x8,i4x4,i8x8"',
# slot settings in task runner
"slot_pass1": 1,
"slot_pass2": 2,
},