This commit is contained in:
2024-11-27 11:07:20 +08:00
commit a8abb92b84
16 changed files with 466 additions and 0 deletions

15
biz/task.py Normal file
View File

@ -0,0 +1,15 @@
from template import get_template_def
def normalize_task(task_info):
...
return task_info
def start_task(task_info):
from biz.ffmpeg import parse_ffmpeg_task, start_ffmpeg_task
task_info = normalize_task(task_info)
task_template = "test_template"
template_info = get_template_def(task_template)
ffmpeg_task = parse_ffmpeg_task(task_info, template_info)
result = start_ffmpeg_task(ffmpeg_task)