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

求助!!x264编码只跑pass1,然后报错啊

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

日志文件:

First pass command line: "E:\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 "E:\test\01.mkv.x264_stats" --direct auto --trellis 0 --no-8x8dct --me hex --subme 6 --partitions none --b-adapt 2 --output NUL --level 4.1 --bframes 7 --vbv-bufsize 50000 --vbv-maxrate 50000 --crf 22 "test.avs"

avs [info]: detected 24bit sample format, converting to float
avs [info]: 1280x720p 1:1 @ 10000000/417083 fps (cfr)
avs [info]: color matrix: undef
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=22.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 Mon Apr 02 13:10:29 2012

x264 [info]: frame I:3 Avg QP:29.27 size: 73937
x264 [info]: frame P:77 Avg QP:29.98 size: 17989
x264 [info]: frame B:161 Avg QP:33.60 size: 5013
x264 [info]: consecutive B-frames: 14.1% 5.0% 5.0% 29.9% 12.4% 17.4% 2.9% 13.3%
x264 [info]: mb I I16..4: 20.3% 0.0% 79.7%
x264 [info]: mb P I16..4: 10.3% 0.0% 0.0% P16..4: 57.9% 0.0% 0.0% 0.0% 0.0% skip:31.8%
x264 [info]: mb B I16..4: 2.7% 0.0% 0.0% B16..8: 23.4% 0.0% 0.0% direct: 3.8% skip:70.0% L0:51.4% L1:44.6% BI: 4.0%
x264 [info]: direct mvs spatial:98.1% temporal:1.9%
x264 [info]: coded y,uvDC,uvAC intra: 62.9% 78.3% 51.6% inter: 8.4% 12.3% 1.8%
x264 [info]: i16 v,h,dc,p: 33% 24% 23% 19%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 17% 12% 7% 8% 7% 6% 7% 5%
x264 [info]: i8c dc,h,v,p: 49% 21% 21% 9%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 47.0% 16.7% 14.9% 8.1% 5.2% 4.7% 3.5%
x264 [info]: ref B L0: 56.9% 8.4% 12.2% 10.5% 9.0% 3.0%
x264 [info]: ref B L1: 97.2% 2.8%
x264 [info]: kb/s:1921.28

encoded 241 frames, 14.2519 fps, 0.0702 spf, 1921.28 kb/s
x264 [info]: ended at Mon Apr 02 13:10:46 2012
x264 [info]: encoding duration 0:00:17

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

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

avs [info]: detected 24bit sample format, converting to float
avs [info]: 1280x720p 1:1 @ 10000000/417083 fps (cfr)
avs [info]: color matrix: undef
mkv [error]: error opening audio encoder
mkv [error]: unable to init audio output
x264 [error]: could not open output file `E:\test\01.mkv'



界面截图:
附件
黑界面截图
黑界面截图
头像
SAPikachu
帖子: 192
注册时间: 2011-02-28 19:55
联系: 网站

Re: 求助!!x264编码只跑pass1,然后报错啊

mkv [error]: error opening audio encoder
mkv [error]: unable to init audio output
看错误是音频编码器无法初始化。如果不需要让x264同时编码音频的话,命令行的最后加上:

代码: 全选

 -- --acodec none
(注意参数之间的空格)
T: @SAPikachu
yst8493182
帖子: 23
注册时间: 2011-12-18 7:46

Re: 求助!!x264编码只跑pass1,然后报错啊

SAPikachu 写了:
mkv [error]: error opening audio encoder
mkv [error]: unable to init audio output
看错误是音频编码器无法初始化。如果不需要让x264同时编码音频的话,命令行的最后加上:

代码: 全选

 -- --acodec none
(注意参数之间的空格)

命令是这样写吗:
encx264.exe mkv_720p_10bit test.avs "E:\test\01.mkv" 22 --tc ""--acodec none
pause
报错啊,
附件
捕获.JPG
头像
upyzl
帖子: 446
注册时间: 2010-12-25 18:44
来自: 湘/京
联系: 网站

Re: 求助!!x264编码只跑pass1,然后报错啊

SAPikachu 写了:脚本可选参数:
* --bitrate *:强制指定码率,适用于1pass不是crf的target
* --sar:指定sar,注意如果target内没有default_sar,不在命令行指定sar会报错
* --ref *:指定ref,如忽略脚本会使用target指定的default_ref
* --pass 2:跳过1pass,如之前用脚本运行过1pass,码率会从记录文件内读取,否则需要用--bitrate指定码率
* --tc "xxxx.txt":指定输入timecode
* --bitrate-ratio *:2pass和1pass的码率比例,默认为1.0(即使用一样的码率)
* --priority [idle|below_normal|normal|above_normal|high]:指定x264进程优先级
* --inFile-2pass "xxxxx.avs":2pass时使用另一个avs脚本
* --no-assoc-files:禁止脚本自动搜索qpfile/zones/timecode等关联文件
* -- [参数]:在--后面的所有参数都会直接添加到x264命令行,例:

encx264.py <....> -- --vf resize:640x480
SAPikachu 写了: -- --acodec none

(注意参数之间的空格)
头像
dgwxx
管理猿
帖子: 771
注册时间: 2010-09-19 20:42
联系: 网站

Re: 求助!!x264编码只跑pass1,然后报错啊

代码: 全选

encx264.exe mkv_720p_10bit test.avs "E:\test\01.mkv" 22 --tc "" -- --acodec none
请复制粘贴使用。
日常推 @dgwxx: 基本没什么技术的话题,欢迎没事看看消遣。
► 显示剧情透露 平庸的rip
► 显示剧情透露 “不知道”的五大理由
yst8493182
帖子: 23
注册时间: 2011-12-18 7:46

Re: 求助!!x264编码只跑pass1,然后报错啊

SAPikachu 写了:
mkv [error]: error opening audio encoder
mkv [error]: unable to init audio output
看错误是音频编码器无法初始化。如果不需要让x264同时编码音频的话,命令行的最后加上:

代码: 全选

 -- --acodec none
(注意参数之间的空格)

果然可以了,谢谢两位大大,我还想问一下,如果我想x264同时编码音频的话,该怎么办呢?是不是要装什么音频解码,还是该怎么设置音频解码啊,求解?? {:cat_17}
yst8493182
帖子: 23
注册时间: 2011-12-18 7:46

Re: 求助!!x264编码只跑pass1,然后报错啊

yst8493182 写了:
SAPikachu 写了:
mkv [error]: error opening audio encoder
mkv [error]: unable to init audio output
看错误是音频编码器无法初始化。如果不需要让x264同时编码音频的话,命令行的最后加上:

代码: 全选

 -- --acodec none
(注意参数之间的空格)

果然可以了,谢谢两位大大,我还想问一下,如果我想x264同时编码音频的话,该怎么办呢?是不是要装什么音频解码,还是该怎么设置音频解码啊,求解?? {:cat_17}
终于解决了,我有装了个Ffdshow-rev4371,终于好了,上面的两位大大谢谢你们的帮忙
头像
nuomi
帖子: 197
注册时间: 2010-09-25 12:59

Re: 求助!!x264编码只跑pass1,然后报错啊

yst8493182 写了:果然可以了,谢谢两位大大,我还想问一下,如果我想x264同时编码音频的话,该怎么办呢?是不是要装什么音频解码,还是该怎么设置音频解码啊,求解?? {:cat_17}
先扔個片源的MediaInfo上來啊……

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