主动判断是否有音频

This commit is contained in:
2025-03-06 21:37:17 +08:00
parent 56bdad7ad1
commit dcf5f5630d
3 changed files with 35 additions and 9 deletions

View File

@ -45,7 +45,6 @@ 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.mute = False
task.center_cut = template_info.get("crop_mode", None)
task.frame_rate = template_info.get("frame_rate", 25)
if overall.get('source', ''):