支持设置视频保存路径

This commit is contained in:
Jason
2025-05-22 09:30:24 +08:00
parent 70488eb290
commit afcc93b9cc
12 changed files with 89 additions and 16 deletions

View File

@@ -337,6 +337,7 @@ class SubtitleRemover:
self.append_output(tr['Main']['SubtitleDetectionAcceleratorON'].format(accelerator_name))
if accelerator_name == 'DirectML' and config.inpaintMode.value not in [InpaintMode.STTN_AUTO, InpaintMode.STTN_DET]:
self.append_output(tr['Main']['DirectMLWarning'])
os.makedirs(os.path.dirname(self.video_out_path), exist_ok=True)
# 重置进度条
self.progress_total = 0
tbar = tqdm(total=int(self.frame_count), unit='frame', position=0, file=sys.__stdout__,