diff --git a/src/utils/video.py b/src/utils/video.py index e9f11c7..c9ab60d 100644 --- a/src/utils/video.py +++ b/src/utils/video.py @@ -1,5 +1,6 @@ import os import logging +import subprocess from pathlib import Path import cv2 @@ -64,10 +65,8 @@ class VideoMaker: return duration def run_command(self, cmd: str) -> int: - import subprocess - try: - subprocess.run(cmd, shell=True, check=True, stdout=subprocess.DEVNULL) + subprocess.run(cmd, shell=True, check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) return 0 except subprocess.CalledProcessError as e: logging.error(f"Command failed with error: {e}")