切割模式

This commit is contained in:
2025-02-27 14:02:17 +08:00
parent 2ea248c02e
commit 67696739f9
3 changed files with 20 additions and 2 deletions

View File

@ -38,6 +38,7 @@ def parse_ffmpeg_task(task_info, template_info):
output_file = "out_" + str(time.time()) + ".mp4"
task = FfmpegTask(tasks, output_file=output_file)
overall = template_info.get("overall_template")
task.center_cut = template_info.get("crop_mode", None)
task.frame_rate = template_info.get("frame_rate", 25)
if overall.get('source', ''):
source = parse_video(overall.get('source'), task_params, template_info)