改改bug

This commit is contained in:
2025-01-13 10:33:36 +08:00
parent ce469dacf2
commit 92160b05ea
5 changed files with 22 additions and 18 deletions

View File

@ -23,11 +23,11 @@ def to_annexb(file):
def start_render(ffmpeg_task: FfmpegTask):
logger.info(ffmpeg_task)
logger.info(ffmpeg_task.get_ffmpeg_args())
if not ffmpeg_task.need_run():
ffmpeg_task.set_output_file(ffmpeg_task.input_file[0])
return True
ffmpeg_args = ffmpeg_task.get_ffmpeg_args()
logger.info(ffmpeg_args)
if len(ffmpeg_args) == 0:
ffmpeg_task.set_output_file(ffmpeg_task.input_file[0])
return True