This commit is contained in:
2024-12-09 09:25:58 +08:00
parent 8d6159d302
commit 515bf156ab
6 changed files with 69 additions and 7 deletions

View File

@ -8,7 +8,8 @@ from entity.ffmpeg import FfmpegTask
def start_render(ffmpeg_task: FfmpegTask):
print(ffmpeg_task)
print(ffmpeg_task.get_ffmpeg_args())
os.system("ffmpeg.exe "+" ".join(ffmpeg_task.get_ffmpeg_args()))
code = os.system("ffmpeg.exe "+" ".join(ffmpeg_task.get_ffmpeg_args()))
return code == 0
def handle_ffmpeg_output(stdout: Optional[IO[bytes]]) -> str:
out_time = "0:0:0.0"