From bc09cd7b6c2334ccddc96b72d9812634a6afc4b0 Mon Sep 17 00:00:00 2001 From: Viner Abubakirov Date: Thu, 2 Apr 2026 11:53:02 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D1=81=D0=BF?= =?UTF-8?q?=D0=B0=D0=BC=20=D0=BE=D1=82=20ffmpeg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/video.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}")