Commit d5e5a308 by xiaoqi

脚本

parent f4ea7192
Showing with 2 additions and 2 deletions
......@@ -410,9 +410,9 @@ def webp2mp4core(input_webp_path_str, output_file_path: str = None, output_name:
mp4_output_path = output_file_path
# 最终合并视频的输出路径保持不变,仍然位于原始webp文件所在目录
if output_name is None:
output_merge_video_path = mp4_output_path / f"{webp_path.stem}.mp4"
output_merge_video_path = f"{mp4_output_path}/{webp_path.stem}.mp4"
else:
output_merge_video_path = mp4_output_path / f"{webp_path.stem}-{output_name}.mp4"
output_merge_video_path = f"{mp4_output_path}/{webp_path.stem}-{output_name}.mp4"
if Path(output_merge_video_path).exists():
print(f"文件{output_merge_video_path}已存在跳过生成")
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment