|
@@ -226,9 +226,8 @@ def encode_args(hw: bool, interlace: str, crf: int, enc_preset: str):
|
|
|
'interlaced=bff:bff=1:bframes=0:keyint=30:min-keyint=15:scenecut=0:'
|
|
'interlaced=bff:bff=1:bframes=0:keyint=30:min-keyint=15:scenecut=0:'
|
|
|
'rc-lookahead=0:ref=3:subme=7',
|
|
'rc-lookahead=0:ref=3:subme=7',
|
|
|
'-flags', '+ilme+ildct', '-top', '0', '-g', '30', '-bf', '0']
|
|
'-flags', '+ilme+ildct', '-top', '0', '-g', '30', '-bf', '0']
|
|
|
- elif interlace == 'tff': # 8.18 模板:隔行 TFF(不强制 -r 30,避免改变时长节奏)
|
|
|
|
|
- a += ['-flags', '+ilme+ildct', '-x264opts', 'tff=1:bframes=0',
|
|
|
|
|
- '-field_order', 'tt', '-top', '1']
|
|
|
|
|
|
|
+ elif interlace == 'tff': # 原版AB实物定标(1 (2).mp4):ilme+ildct+top1→tt落流且B帧保留
|
|
|
|
|
+ a += ['-flags', '+ilme+ildct', '-top', '1']
|
|
|
return a
|
|
return a
|
|
|
|
|
|
|
|
|
|
|
|
@@ -538,9 +537,9 @@ def main():
|
|
|
if args.interlace != 'off' and not args.hw:
|
|
if args.interlace != 'off' and not args.hw:
|
|
|
t['隔行'] = args.interlace
|
|
t['隔行'] = args.interlace
|
|
|
|
|
|
|
|
- if args.no_finish:
|
|
|
|
|
|
|
+ if args.no_finish or use_pair:
|
|
|
stage.replace(dst)
|
|
stage.replace(dst)
|
|
|
- t['收尾'] = '关闭'
|
|
|
|
|
|
|
+ t['收尾'] = '关闭' if args.no_finish else '跳过(AB原味:实物无洗容器)'
|
|
|
else:
|
|
else:
|
|
|
r2 = run(finish_args(stage, dst, info['has_audio'] or au is not None,
|
|
r2 = run(finish_args(stage, dst, info['has_audio'] or au is not None,
|
|
|
rng, meta_time))
|
|
rng, meta_time))
|