mirror of
https://github.com/SevaSk/ecoute.git
synced 2024-12-18 20:27:56 +00:00
Catching no ffmpeg exception
This commit is contained in:
parent
54f98f8280
commit
579fdc9466
@ -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.
|
||||
|
||||
|
7
main.py
7
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user