Убрал спам от ffmpeg

This commit is contained in:
Viner Abubakirov
2026-04-02 11:53:02 +05:00
parent be794539ac
commit bc09cd7b6c

View File

@@ -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}")