头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

bitrate_ratio是直接作为target设置的,可以参考mkv_720p的设置。
T: @SAPikachu
tinkle
帖子: 82
注册时间: 2011-08-03 13:14

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

请问参数设置没有preset吗?还是说需要自行添加的?
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

tinkle 写了:请问参数设置没有preset吗?还是说需要自行添加的?
绝大部分x264参数都可以自行添加到设置,示例的几个target并没有包含全部可设置的参数,需要自己添加。
T: @SAPikachu
tinkle
帖子: 82
注册时间: 2011-08-03 13:14

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

请教下timecode的问题,因为是在2pass时使用dedup生成tc文件,所以一开始的tc文件是不存在的,那么我要怎么使用这个tc参数封装2pass生成的timecode?
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

tinkle 写了:请教下timecode的问题,因为是在2pass时使用dedup生成tc文件,所以一开始的tc文件是不存在的,那么我要怎么使用这个tc参数封装2pass生成的timecode?
好像除了先用avs2avi空跑一遍以外也没有其它好方法了。。。
T: @SAPikachu
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

雖然記不清楚不過好像dedup的times好像是2nd pass的開始就可以根據log出來的?
如果是這樣的話tc裡填上times參數裡指定輸出的tc文件地址就可以了吧,如果不是一開始就出來的話就只能空跑一遍了……
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
help6288
帖子: 4
注册时间: 2011-05-02 2:20

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

請問一下(因為本人是壓制菜鳥,可能發問沒啥智慧)

代码: 全选

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,
    },
裡面的{sar},{statsFile},{bitrate},{crf}等等'....我還需要自行修改麼??
舉例:如何修改設定1pass 的crf 是跑crf 23 的??
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

大括号里面的参数是在命令行或者脚本内部指定的,如果不知道是什么意思的话最好不要改动。另外初学者建议先使用MeGUI之类的非命令行工具入门。
T: @SAPikachu
kevinchan
帖子: 11
注册时间: 2011-09-29 23:36

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

在encx264_target.py里面我看到其中有个10bit的target设定,请问这个脚本是否支持10bit x264 ?
于是我试了一下,出现x264 error
捕获.PNG
捕获.PNG (2.79 KiB) 查看 12134 次
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(8/19更新)

去掉--profile high
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。

回到 “视频编码器 / Video encoder discussion”