This commit is contained in:
2025-09-24 11:28:42 +08:00
parent ec1705769c
commit 873c89c778
9 changed files with 100 additions and 39 deletions

View File

@@ -23,8 +23,10 @@ def temp_dir():
def test_ffmpeg_config():
"""测试用FFmpeg配置"""
return FFmpegConfig(
encoder_args="-c:v h264",
video_args="",
encoder_args=["-c:v", "h264"],
video_args=["-profile:v", "high"],
audio_args=["-c:a", "aac"],
default_args=["-shortest"],
)
@@ -49,9 +51,8 @@ def test_storage_config():
def sample_render_task():
"""示例渲染任务"""
return RenderTask(
task_id="test_task_001",
template_id="test_template",
output_path="test_output.mp4",
input_files=["test_input.mp4"],
output_file="test_output.mp4",
frame_rate=25,
effects=["zoom:0,2.0,3.0", "ospeed:1.5"],
ext_data={