Hotfix webcam via open_ffmpeg()

This commit is contained in:
henryruhs 2024-03-15 20:58:30 +01:00
parent 987fb31689
commit 1e2031e149

View File

@ -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: