kevinchan
帖子: 11
注册时间: 2011-09-29 23:36

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

06_taro 写了:去掉--profile high
果然有效,感谢你的帮助
还想问个问题,例如 我2pass 指定了bitrate 1000(或者指定 bitrate ratio),实际压出来用mediainfo看, Nominal bit rate 1000,bit rate 600,这样正常吗?Nominal bit rate与bit rate是否存在一定比率?影响影片体积的是bit rate吧
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

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

06_taro 写了:去掉--profile high
如上。。当时没有仔细测试囧
T: @SAPikachu
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

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

x264的profile设定是用来做限制以增加兼容性的,设置时会将其他参数超出profile标准的降到profile限制范围内,若不设置时也会自动探测你的各种设置所需要的profile并自动安排,所以如果不需要限制最好别设置。由于x264默认开启8x8dct,默认设定下profile就至少是high的了。实际上如果设置的profile过高,x264会自动降低实际profile来增加兼容性(当然并非是必须降低),譬如设为high10但是编码8bit 4:2:0,则会自动降为high,设为high444但编码10bit 4:2:2会自动降为high422。因此如果目标profile是main/baseline的话保险起见手动加上--profile main/baseline,否则最好别去设置它。
つまんねー事聞くなよ!

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日。
头像
upyzl
帖子: 446
注册时间: 2010-12-25 18:44
来自: 湘/京
联系: 网站

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

kevinchan 写了:例如 我2pass 指定了bitrate 1000(或者指定 bitrate ratio),实际压出来用mediainfo看, Nominal bit rate 1000,bit rate 600,这样正常吗?Nominal bit rate与bit rate是否存在一定比率?影响影片体积的是bit rate吧
1. 首先mediainfo的bitrate可能未必正确,如果视频够长的话,可以抽出视频流,用其体积除以时长算码率

2. 如果不是1的问题,你看是不是x264的qpmin设置偏高;没特殊需求的话用0即可
longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

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

图片

我用命令 encx264.exe mkv_sd l.avs 888.mp4 22 --tc "" 报错,是什么原因?
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

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

重新下载解压下试试?另外确定pyd目录也解压了么?
T: @SAPikachu
longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

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

我拷到英文目录下就行了.另外请问
"mkv_sd" : {
"default_sar": "1:1",
"default_ref": 10,
"common": " --bframes 10",
"pass1": '--crf {21}',
"pass2": '--bitrate {1200} --partitions "p8x8,b8x8,i4x4,i8x8"',

修改这里,然后用命令 encx264.exe mkv_sd l.avs 123.mp4 --tc "" 这样可以吗
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

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

大括号里面的内容不要修改,是在命令行参数或者程序内部指定的。
T: @SAPikachu
longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

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

另外请问下,我用mkv_720p_10bit来压制的时候,我在AVS中明明指定704,528的分辨率,但是它却显示avs[info]352*528P这样的信息,最后压出来的图像完全变形了。
longhuizhu
帖子: 28
注册时间: 2011-11-27 13:06

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

First pass command line: "D:\Program Files\x26410\x264_10.exe" --threads auto --thread-input --sar 1:1 --ref 7 --aq-strength 1.5 --weightb --mixed-refs --no-fast-pskip --deblock 1:1 --pass 1 --slow-firstpass --stats "888.mp4.x264_stats" --direct auto --trellis 0 --no-8x8dct --me hex --subme 6 --partitions none --b-adapt 2 --output NUL --input-depth 10 --level 4.1 --bframes 7 --vbv-bufsize 50000 --vbv-maxrate 50000 --crf 20 "l.avs"

avs [warning]: converting input clip to YV12
avs [info]: avisynth 16bit hack enabled
avs [info]: 352x528p 1:1 @ 30000/1001 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile High 10, level 4.1, 4:2:0 10-bit

x264 [info]: frame I:48 Avg QP:28.49 size: 26270
x264 [info]: frame P:2404 Avg QP:31.20 size: 7025
x264 [info]: frame B:7344 Avg QP:32.78 size: 1272
x264 [info]: consecutive B-frames: 1.3% 2.8% 13.6% 40.7% 24.5% 14.2% 2.1% 0.9%
x264 [info]: mb I I16..4: 18.8% 0.0% 81.2%
x264 [info]: mb P I16..4: 5.1% 0.0% 0.0% P16..4: 89.0% 0.0% 0.0% 0.0% 0.0% skip: 5.9%
x264 [info]: mb B I16..4: 3.7% 0.0% 0.0% B16..8: 23.1% 0.0% 0.0% direct:13.8% skip:59.3% L0:34.6% L1:48.8% BI:16.5%
x264 [info]: direct mvs spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 42.7% 79.5% 49.3% inter: 14.7% 27.4% 4.1%
x264 [info]: i16 v,h,dc,p: 43% 16% 29% 13%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 11% 14% 7% 6% 10% 4% 10% 5%
x264 [info]: i8c dc,h,v,p: 60% 12% 24% 5%
x264 [info]: Weighted P-Frames: Y:17.8% UV:11.4%
x264 [info]: ref P L0: 59.1% 20.2% 8.9% 4.3% 3.1% 3.4% 1.0% 0.0%
x264 [info]: ref B L0: 67.5% 14.6% 8.7% 4.8% 2.7% 1.6%
x264 [info]: ref B L1: 92.7% 7.3%
x264 [info]: kb/s:672.81

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