diff --git a/README.md b/README.md index 4903a37..87ee7dd 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManage ``` Once Chocolatey is installed, you can install FFmpeg by running the following command in your PowerShell: ``` -choco install ffmpeg-full +choco install ffmpeg ``` Please ensure that you run these commands in a PowerShell window with administrator privileges. If you face any issues during the installation, you can visit the official Chocolatey and FFmpeg websites for troubleshooting. diff --git a/main.py b/main.py index f0de8e6..75f1c21 100644 --- a/main.py +++ b/main.py @@ -8,6 +8,7 @@ import time import torch import sys import TranscriberModels +import subprocess def write_in_textbox(textbox, text): textbox.delete("0.0", "end") @@ -65,6 +66,12 @@ def create_ui_components(root): return transcript_textbox, response_textbox, update_interval_slider, update_interval_slider_label, freeze_button def main(): + try: + subprocess.run(["ffmpeg", "-version"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + except FileNotFoundError: + print("ERROR: The ffmpeg library is not installed. Please install ffmpeg and try again.") + return + root = ctk.CTk() transcript_textbox, response_textbox, update_interval_slider, update_interval_slider_label, freeze_button = create_ui_components(root)