yst8493182
帖子: 23
注册时间: 2011-12-18 7:46

求助,x264只跑pass1,pass2不跑

我用的是最新的免SAP的EPx264压制脚本(免Python打包版 ),x264 - 06_taro编译版的编码器,解码器是用的终极解码2012春节版,片源是10bit的mkv,x264只跑pass1,pass2不跑。
另外想问一下,黑界面上报code -1是什么原因啊!

日志文件:
First pass command line: "D:\x264\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 "test.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 25 "test.avs"

avs [info]: avisynth 16bit hack enabled
avs [info]: 640x720p 1:1 @ 10000000/417083 fps (cfr)
avs [info]: color matrix: undef
depth [info]: skipped depth filter
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High 10, level 4.1, 4:2:0 10-bit
x264 [info]: cabac=1 ref=7 deblock=1:1:1 analyse=0x1:0 me=hex subme=6 psy=1 fade_compensate=0.00 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 fgo=0 bframes=7 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=25.0000 qcomp=0.60 qpmin=0 qpmax=81 qpstep=4 vbv_maxrate=50000 vbv_bufsize=50000 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.50
x264 [info]: started at Wed Mar 14 12:26:53 2012

x264 [info]: frame I:6 Avg QP:58.31 size: 97095
x264 [info]: frame P:758 Avg QP:59.40 size:129195
x264 [info]: frame B:676 Avg QP:61.05 size:107179
x264 [info]: consecutive B-frames: 26.7% 31.1% 5.8% 34.7% 0.0% 0.0% 0.0% 1.7%
x264 [info]: mb I I16..4: 41.9% 24.0% 34.1%
x264 [info]: mb P I16..4: 36.2% 0.0% 0.0% P16..4: 40.8% 22.9% 0.0% 0.0% 0.0% skip: 0.1%
x264 [info]: mb B I16..4: 33.9% 0.0% 0.0% B16..8: 39.5% 0.0% 0.0% direct:23.6% skip: 2.9% L0:59.4% L1:19.7% BI:20.9%
x264 [info]: direct mvs spatial:99.4% temporal:0.6%
x264 [info]: coded y,uvDC,uvAC intra: 91.5% 98.8% 96.2% inter: 93.7% 52.6% 46.8%
x264 [info]: i16 v,h,dc,p: 27% 25% 23% 24%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 100% 0% 0% 0% 0% 0% 0% 0% 0%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 55% 21% 19% 1% 1% 1% 1% 1% 1%
x264 [info]: i8c dc,h,v,p: 47% 12% 31% 10%
x264 [info]: Weighted P-Frames: Y:2.2% UV:0.3%
x264 [info]: ref P L0: 51.5% 10.7% 9.7% 8.1% 8.0% 7.9% 4.0% 0.1%
x264 [info]: ref B L0: 27.2% 20.7% 19.2% 16.4% 13.0% 3.4%
x264 [info]: ref B L1: 86.0% 14.0%
x264 [info]: kb/s:22772.70

encoded 1440 frames, 18.9046 fps, 0.0529 spf, 22772.70 kb/s
x264 [info]: ended at Wed Mar 14 12:28:09 2012
x264 [info]: encoding duration 0:01:16

---------------------------------------------

Second pass command line: "D:\x264\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 2 --stats "test.mp4.x264_stats" --ssim --direct auto --merange 64 --me umh --subme 10 --trellis 2 --output "test.mp4" --input-depth 10 --level 4.1 --bframes 7 --vbv-bufsize 50000 --vbv-maxrate 50000 --bitrate 22772 --partitions "p8x8,b8x8,i4x4,i8x8" "test.avs"


AVS:
SetWorkingDir("D:\AVS脚本小子3.86\LP\") #指定了外部滤镜的路径
LoadPlugin("UnDot.dll") #加载降噪滤镜
LoadPlugin("VSFilter.dll") #加载字幕插件
LoadPlugin("DGDecode.dll") #加载用于解码DVD(.d2v)的mpeg2格式的插件
Load_Stdcall_Plugin("yadif.dll") #Yadif反交错滤镜
LoadPlugin("Scanlines.dll") #添加扫描线
LoadPlugin("Convolution3DYV12.dll") #加载柔化插件


DirectShowSource("G:\下载\动画\[DHR&Hakugetsu][Sora no Otoshimono Tokei Jikake no Angeloid][Movie][720P][x264_Hi10P_AAC][GB&BIG5]\[DHR&Hakugetsu][Sora no Otoshimono Tokei Jikake no Angeloid][Movie][1280x720][x264_Hi10P_AAC][C07A0E46].mkv",convertfps=true)
ConvertToYV12()
Trim(21578,23017)
批处理命令:
encx264 mkv_720p_10bit test.avs test.mp4 25 --tc ""
pause
片源信息:

G:\下载\动画\[DHR&Hakugetsu][Sora no Otoshimono Tokei Jikake no Angeloid][Movie][720P][x264_Hi10P_AAC][GB&BIG5]\[DHR&Hakugetsu][Sora no Otoshimono Tokei Jikake no Angeloid][Movie][1280x720][x264_Hi10P_AAC][C07A0E46].mkv
General
Unique ID : 192930836747388612567029399820565564555 (0x912520A8587118108B12491916414C8B)
Complete name : G:\下载\动画\[DHR&Hakugetsu][Sora no Otoshimono Tokei Jikake no Angeloid][Movie][720P][x264_Hi10P_AAC][GB&BIG5]\[DHR&Hakugetsu][Sora no Otoshimono Tokei Jikake no Angeloid][Movie][1280x720][x264_Hi10P_AAC][C07A0E46].mkv
Format : Matroska
Format version : Version 2
File size : 1.37 GiB
Duration : 1h 37mn
Overall bit rate mode : Variable
Overall bit rate : 2 019 Kbps
Encoded date : UTC 2012-03-09 00:19:53
Writing application : mkvmerge v5.3.0 ('I could have danced') built on Feb 9 2012 10:38:07
Writing library : libebml v1.2.3 + libmatroska v1.3.0
Video #1
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L5.0
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 37mn
Bit rate mode : Variable
Maximum bit rate : 40.0 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Writing library : x264 core 120 r2164+651+27 eca7666 tMod [10-bit@4:2:0 X86_64]
Encoding settings : cabac=1 / ref=6 / deblock=1:-2:-2 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=0.60:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=8 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=16.0000 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / vbv_maxrate=40000 / vbv_bufsize=50000 / crf_max=0.0 / nal_hrd=vbr / ip_ratio=1.40 / aq=3:0.80
Default : Yes
Forced : No
Color primaries : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
Audio #2
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 1h 37mn
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : 20ms
Language : Japanese
Default : Yes
Forced : No
Menu
00:00:00.000 : :Chapter 1
00:03:55.402 : :Chapter 2
00:06:45.655 : :Chapter 3
00:10:14.155 : :Chapter 4
00:16:27.486 : :Chapter 5
00:20:05.454 : :Chapter 6
00:28:18.697 : :Chapter 7
00:33:57.661 : :Chapter 8
00:36:12.170 : :Chapter 9
00:43:58.636 : :Chapter 10
00:47:15.416 : :Chapter 11
00:53:43.804 : :Chapter 12
00:58:26.795 : :Chapter 13
01:05:44.941 : :Chapter 14
01:10:14.419 : :Chapter 15
01:17:35.860 : :Chapter 16
01:22:30.779 : :Chapter 17
01:31:00.121 : :Chapter 18
01:37:02.817 : :Chapter 19
附件
报错界面.jpg
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: 求助,x264只跑pass1,pass2不跑

试试更新x264到最新版?
T: @SAPikachu
yst8493182
帖子: 23
注册时间: 2011-12-18 7:46

Re: 求助,x264只跑pass1,pass2不跑

就是用的最新版的3月11号更新的那个
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: 求助,x264只跑pass1,pass2不跑

这样的话,试试2106?这个错误看起来是x264的问题。。。
T: @SAPikachu
cunhan
核心会员
核心会员
帖子: 214
注册时间: 2010-09-20 22:09

Re: 求助,x264只跑pass1,pass2不跑

楼主的avs出来的源其实已经被艹成8bit了,于是命令行里的--input-depth 10写错,应该写8。
这也是导致22M超高码率的原因。

也许是因为高码率和vbv的参数有冲突,所以失败了(我猜的。)
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: 求助,x264只跑pass1,pass2不跑

cunhan 写了:楼主的avs出来的源其实已经被艹成8bit了,于是命令行里的--input-depth 10写错,应该写8。
这也是导致22M超高码率的原因。

也许是因为高码率和vbv的参数有冲突,所以失败了(我猜的。)
好吧我把那个漏掉了。。。--input-depth写错确实有可能导致x264崩溃,改回去试试?
T: @SAPikachu
yst8493182
帖子: 23
注册时间: 2011-12-18 7:46

Re: 求助,x264只跑pass1,pass2不跑

还是不行啊--input-depth 10改成8后,运行批处理后,一闪啊,我把--input-depth 10删掉后,能正常编码,但编码后的视频,只有声音,图像是黑的,编码后的视频的文件信息:

概要
完整名称 : D:\x264\test.mkv
文件格式 : Matroska
格式版本 : Version 2
文件大小 : 1.05 MiB
长度 : 12秒 846ms
平均混合码率 : 685 Kbps
编码程序 : x264 r2164+649+26 3cd0d1e tMod [10-bit@4:2:0 X86]
编码函数库 : Haali Matroska Writer b0

视频
ID : 1
文件格式 : AVC
文件格式/信息 : Advanced Video Codec
格式简介 : High 10@L4.1
格式设置, CABAC : 是
格式设置, ReFrames : 7 frames
编码设置ID : V_MPEG4/ISO/AVC
长度 : 12秒 846ms
额定码率 : 558 Kbps
画面宽度 : 1 280像素
画面高度 : 720像素
画面比例 : 16:9
帧率 : 23.976 fps
色彩空间 : YUV
色度抽样 : 4:2:0
位深度 : 10位
扫描方式 : 逐行扫描
bits/(pixel*frame)(数据密度) : 0.025
编码函数库 : x264 core 120 r2164+649+26 3cd0d1e tMod [10-bit@4:2:0 X86]
编码设置 : cabac=1 / ref=7 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=64 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=7 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=558 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=50000 / vbv_bufsize=50000 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.50
语言 : English
Default : 是
Forced : 否

音频
ID : 2
文件格式 : AAC
文件格式/信息 : Advanced Audio Codec
格式简介 : LC
编码设置ID : A_AAC
长度 : 12秒 846ms
声道 : 2声道
声道位置 : Front: L R
采样率 : 44.1 KHz
压缩模式 : 有损压缩
语言 : English
Default : 是
Forced : 否
附件
视频截图.jpg
--input-depth 10改成8后
--input-depth 10改成8后
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: 求助,x264只跑pass1,pass2不跑

多删了个空格,8和后面的参数连一起了
T: @SAPikachu
头像
Holy
核心会员
核心会员
帖子: 235
注册时间: 2010-09-24 9:28

Re: 求助,x264只跑pass1,pass2不跑

--input-depth 8和--level少了空格連在一起了…樓主有預覽過avs確定能正常顯示圖像嗎?
图片
yst8493182
帖子: 23
注册时间: 2011-12-18 7:46

Re: 求助,x264只跑pass1,pass2不跑

Holy 写了:--input-depth 8和--level少了空格連在一起了…樓主有預覽過avs確定能正常顯示圖像嗎?
照你说的该了,编码可以正常,但图像还是黑的,我用avs预览可以正常看到图像啊

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