From 2bf30f5f1916f15ef846fbb70f1093186e8ccd07 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 22 Apr 2024 13:25:32 +0000 Subject: [PATCH] ffmpeg --- __main__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/__main__.py b/__main__.py index 95bf67a..4881055 100644 --- a/__main__.py +++ b/__main__.py @@ -10,6 +10,15 @@ except ImportError: pip.main(['install', 'PyQt6']) print("### PyQt6 installed ###") +print('### Checking install of ffmpeg ###') +try: + import ffmpeg + print("### Check passed ###") +except ImportError: + print("PyQt6 is not installed. Installing PyQt6...") + pip.main(['install', 'ffmpeg']) + print("### PyQt6 installed ###") + from PyQt6.QtWidgets import QApplication import traceback, configparser