这是在压10bit时候出现的问题 片源用的mkv
管道这样调用的(seek moe fast和safe一样不行)
avs4x264mod --x264-binary x264_10b --seek-mode safe --level 5.1 --crf 21.5 ......(中略)........ --tcfile-in "XXX.txt" --stats ".stats" -o "XXX.mp4" "XXX.avs"
avs这样调用timecode的
FFVideoSource("B:\XXX.mkv",timecodes = "B:\XXX.txt")
错误信息是
avs [info]: AviSynth 2.60, build:May 25 2011 [19:58:41]
avs [info]: Video colorspace: YV12
avs [info]: Video resolution: 1024x576
avs [info]: Video framerate: 24012/1001
avs [info]: Video framecount: 33390
avs4x264 [info]: "x264_10b" --level 5.1 --crf 21.5 ......(中略)........ --tcfile-in B:\XXX.txt --stats .stats -o B:\XXX
_v.mp4 --frames 33390 --timebase 1001 --input-res 1024x576 --input-csp i420
raw [info]: 1024x576p 0:0 @ 25/1 fps (cfr)
timecode [error]: automatic timebase generation failed.
Specify an appropriate timebase manually.
x264 [error]: timecode input failed
avs [error]: Error occurred while writing frame 0
(Maybe x264 closed)
请按任意键继续. . .
查看timecode确实生成了
如果去掉avs4x264mod直接压的话 x264_10b --level 5.1 --crf 21.5 ......(中略)........ --tcfile-in "XXX.txt" --stats ".stats" -o "XXX.mp4" "XXX.avs"
信息为正常
avs [info]: 1024x576p 0:0 @ 24012/1001 fps (cfr)
timecode [info]: automatic timebase generation 1/1000
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High 10, level 5.1, 4:2:0 10-bit
[0.1%] 23/33390 frames, 0.54 fps, 12.57 kb/s, eta 17:06:23
片源并不是都不行 正片虽然出现管道无法输入timecode的问题 同一部动画的OP ED则可以
这是片源的大致信息
General
Unique ID : 174707109108159013454381206904475269553 (0x836F5D83D56F9CFFA9A15ED437A4B9B1)
Complete name : B:\XXX.mkv
Format : Matroska
Format version : Version 2
File size : 348 MiB
Duration : 23mn 11s
Overall bit rate mode : Variable
Overall bit rate : 2 096 Kbps
Encoded date : UTC 2012-05-24 12:59:34
Writing application : mkvmerge v5.5.0 ('Healer') built on Apr 6 2012 21:43:24
Writing library : libebml v1.2.3 + libmatroska v1.3.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Nominal bit rate : 1 500 Kbps
Width : 864 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Original frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.121
Writing library : x264 core 120 r2164+649+26 fcfb618 tMod [10-bit@all X86]
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=11 / psy=1 / fade_compensate=0.00 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=10 / 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=2pass / mbtree=0 / bitrate=1500 / ratetol=10.0 / qcomp=0.60 / qpmin=0 / qpmax=45 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.60 / pb_ratio=1.50 / aq=1:1.00
Language : Japanese
Default : Yes
Forced : No
Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 23mn 11s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : Japanese
Default : Yes
Forced : No