From 1e2031e149af57e29caedf5eb612680588c9869f Mon Sep 17 00:00:00 2001 From: henryruhs Date: Fri, 15 Mar 2024 20:58:30 +0100 Subject: [PATCH] Hotfix webcam via open_ffmpeg() --- facefusion/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facefusion/ffmpeg.py b/facefusion/ffmpeg.py index 55b9e4a0..1d3c5a3d 100644 --- a/facefusion/ffmpeg.py +++ b/facefusion/ffmpeg.py @@ -24,7 +24,7 @@ def run_ffmpeg(args : List[str]) -> bool: def open_ffmpeg(args : List[str]) -> subprocess.Popen[bytes]: commands = [ 'ffmpeg', '-hide_banner', '-loglevel', 'quiet' ] commands.extend(args) - return subprocess.Popen(commands, stdout = subprocess.PIPE) + return subprocess.Popen(commands, stdin = subprocess.PIPE, stdout = subprocess.PIPE) def extract_frames(target_path : str, temp_video_resolution : str, temp_video_fps : Fps) -> bool: