dev #1

Merged
lovinervy merged 7 commits from dev into main 2026-04-02 12:17:06 +05:00
Showing only changes of commit bc09cd7b6c - Show all commits

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