另外要注意下,这个patch属于beta版,万一出现崩溃/工作不正常的情况,请务必仔细检查成品好坏。就算正常压制完了,也请检查成品好坏。
(万一坏档会很明显的,比如全屏错色或者大范围错帧什么的,瞄一眼没问题的话就算没问题了喵)
这里是必须需要设置x264.threads? 用--threads X 在X264中设置?设定 x264.threads=6,affinity=32,x264-affinity=31
这个彻底想不懂该怎么写bat了……求教只有把旁路线程固定一核,avs线程固定在另一核,才能达到最大效率。折中办法是固定在2个核心上,然后跑一下banchmark看哪边的fps高。不排除有时候吃cpu多的反而慢。
……这里为什么不是“x264.threads=6”呢?如果是3/3配比的话,应该是x264.threads=4 affinity=32+16+8=56 x264-affinity=4+2+1=7
8线程核心的话,6/2配比没啥大问题,也可以3/1配比然后同时压2个後期のCPUは化け物か!
这一点该怎么实现呢?8线程核心的话,直接做6/2配比?只有把旁路线程固定一核,avs线程固定在另一核
代码: 全选
avs4x264mod.exe --preset slow --crf 26 -o test.264 test.avs
pause
代码: 全选
# timecode format v1
Assume 23.976023976024
0,119,23.976023976024
120,269,29.97002997003
270,389,23.976023976024
使用avs4x264mod:D:\暫存>x264 --tcfile-in "TimeCode.txt" --output NUL "test.avs"
avs [info]: 640x480p 0:0 @ 24000/1001 fps (cfr)
avs [info]: color matrix: undef
timecode [info]: automatic timebase generation 1001/120000
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264 [info]: profile High, level 3.0
x264 [info]: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 fade_compensate=0.00 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trelli
s=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=9 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 f
go=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cr
f mbtree=1 crf=23.0000 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
x264 [info]: started at Fri Mar 23 18:54:59 2012
x264 [info]: frame I:2 Avg QP: 8.00 size: 504
x264 [info]: frame P:98 Avg QP:28.39 size: 25
x264 [info]: frame B:290 Avg QP:28.39 size: 19
x264 [info]: consecutive B-frames: 0.8% 0.0% 0.8% 98.5%
x264 [info]: mb I I16..4: 100.0% 0.0% 0.0%
x264 [info]: mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0%
x264 [info]: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0%
x264 [info]: 8x8 transform intra:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 97% 0% 3% 0%
x264 [info]: i8c dc,h,v,p: 100% 0% 0% 0%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:4.82
encoded 390 frames, 570.1754 fps, 4.82 kb/s
x264 [info]: ended at Fri Mar 23 18:54:59 2012
x264 [info]: encoding duration 0:00:00
D:\暫存>avs4x264mod --tcfile-in "TimeCode.txt" --output NUL "test.avs"
avs [info]: Avisynth version: 2.60
avs [info]: Video colorspace: YV12
avs [info]: Video resolution: 640x480
avs [info]: Video framerate: 24000/1001
avs [info]: Video framecount: 390
avs4x264 [info]: "x264_64" - --tcfile-in TimeCode.txt --output NUL --frames 390 --input-res 640x480 --input-csp i420
raw [info]: 640x480p 0:0 @ 25/1 fps (cfr)
raw [info]: color matrix: undef
timecode [info]: automatic timebase generation 1/18048030
x264 [info]: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264 [info]: profile High, level 3.0
x264 [info]: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 fade_compensate=0.00 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trelli
s=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=9 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 f
go=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=cr
f mbtree=1 crf=23.0000 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
x264 [info]: started at Fri Mar 23 18:55:57 2012
x264 [info]: frame I:2 Avg QP: 8.00 size: 506
x264 [info]: frame P:98 Avg QP:28.39 size: 25
x264 [info]: frame B:290 Avg QP:28.39 size: 19
x264 [info]: consecutive B-frames: 0.8% 0.0% 0.8% 98.5%
x264 [info]: mb I I16..4: 100.0% 0.0% 0.0%
x264 [info]: mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0%
x264 [info]: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0%
x264 [info]: 8x8 transform intra:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 97% 0% 3% 0%
x264 [info]: i8c dc,h,v,p: 100% 0% 0% 0%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:4.82
encoded 390 frames, 268.5950 fps, 4.82 kb/s
x264 [info]: ended at Fri Mar 23 18:55:58 2012
x264 [info]: encoding duration 0:00:01