From fe0451f4b28c4c1293a51efacc30929b654a3f9e Mon Sep 17 00:00:00 2001 From: henryruhs Date: Thu, 5 Dec 2024 18:18:51 +0100 Subject: [PATCH] Fix typing --- facefusion/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facefusion/ffmpeg.py b/facefusion/ffmpeg.py index 48753bc2..8af0f6a2 100644 --- a/facefusion/ffmpeg.py +++ b/facefusion/ffmpeg.py @@ -14,7 +14,7 @@ from facefusion.typing import AudioBuffer, Fps, OutputVideoPreset, UpdateProgres from facefusion.vision import count_video_frame_total, detect_video_duration, restrict_video_fps -def run_ffmpeg_with_progress(args: List[str], update_progress : UpdateProgress): +def run_ffmpeg_with_progress(args: List[str], update_progress : UpdateProgress) -> subprocess.Popen[bytes]: log_level = state_manager.get_item('log_level') commands = [ shutil.which('ffmpeg'), '-hide_banner', '-loglevel', 'error' ] commands.extend(args)