longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

SAPikachu应该没弄明白我的意思,我的意思就是2pas的的码率就是1st pass CRF这个过程分配出来的码率,比如跑第一次CRF 20,它检测出这个码率有1200,那么2pass的时候就根扰这个1200来跑
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

您這貼之前我們都沒明白您的意思。encx264本來最大的特點就是您這裡說的按1st pass crf出來的碼率自動設定2nd pass的碼率,而我們一直以為您是想要手動設定2nd pass的碼率。
つまんねー事聞くなよ!

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日。
头像
dgwxx
管理猿
帖子: 771
注册时间: 2010-09-19 20:42
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

代码: 全选

encx264 SOMETARGET "x:\xxx.avs" "x:\xxx.mkv" --crf 22 --tc "" --bitrate-ratio 1.0
日常推 @dgwxx: 基本没什么技术的话题,欢迎没事看看消遣。
► 显示剧情透露 平庸的rip
► 显示剧情透露 “不知道”的五大理由
longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

这 个码率还真不好控制啊。有什么可以控制码率一点的方法吗
头像
dgwxx
管理猿
帖子: 771
注册时间: 2010-09-19 20:42
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

longhuizhu 写了:这 个码率还真不好控制啊。有什么可以控制码率一点的方法吗
与主题无关的问题请开新帖。
日常推 @dgwxx: 基本没什么技术的话题,欢迎没事看看消遣。
► 显示剧情透露 平庸的rip
► 显示剧情透露 “不知道”的五大理由
firedrop
帖子: 11
注册时间: 2012-03-03 16:31

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

代码: 全选

common_params = "--threads 2 --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  --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}"   --direct auto '+ \
                      '--merange 64 ' + \
                      '--me umh --subme 10 --trellis 2 --output "{outFile}"'



encode_targets = {
    "720P" : {
        "default_sar": "1:1",
        "default_ref": 1,
        "bitrate_ratio": 0.9,
        "common": "--profile high --level 3.1 --bframes 5 " + \
                  "--vbv-bufsize 0 --vbv-maxrate 0",
        'pass1': '--crf {crf}',
        "pass2": '--bitrate {bitrate} --partitions "p8x8,b8x8,i4x4,i8x8"',

        # slot settings in task runner
        "slot_pass1": 1,
        "slot_pass2": 2,
请问大大们,把参数改成上面那样会有很大缺点吗?特别是去掉了慢速第一次编码很大的会有影响吗?
本人真心对参数小白。。。。
lwjkk666
帖子: 321
注册时间: 2012-05-29 13:43

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

请教一下支持1Pass crf + 2Pass bitrate模式,自动获取crf出来的码率作为2pass参数
的命令行怎样写?
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

lwjkk666 写了:请教一下支持1Pass crf + 2Pass bitrate模式,自动获取crf出来的码率作为2pass参数
的命令行怎样写?
► 显示剧情透露 基本用法
T: @SAPikachu
lwjkk666
帖子: 321
注册时间: 2012-05-29 13:43

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

研究了一下,这样写可以压出成品,encx264 mkv_720p "D:\DEATH NOTE.avs" "D:\DEATH NOTE.mp4" --crf 22 --tc "" ,但是算到码率只有530KB。。。,压出的片子只有90MB。。。。觉得码率低了点。。。
头像
dgwxx
管理猿
帖子: 771
注册时间: 2010-09-19 20:42
联系: 网站

Re: [置顶] SAP的EPx264压制脚本(2012-03-29更新)

--crf 22

这个数值越小码率越高。改成20或者19就大了。
日常推 @dgwxx: 基本没什么技术的话题,欢迎没事看看消遣。
► 显示剧情透露 平庸的rip
► 显示剧情透露 “不知道”的五大理由

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