()
| 67 | |
| 68 | |
| 69 | def ffmpeg_install_linux(): |
| 70 | try: |
| 71 | subprocess.run( |
| 72 | "sudo apt install ffmpeg", |
| 73 | shell=True, |
| 74 | stdout=subprocess.PIPE, |
| 75 | stderr=subprocess.PIPE, |
| 76 | ) |
| 77 | except Exception as e: |
| 78 | print( |
| 79 | "An error occurred while trying to install FFmpeg. Please try again. Otherwise, please install FFmpeg manually and try again." |
| 80 | ) |
| 81 | print(e) |
| 82 | exit() |
| 83 | print("FFmpeg installed successfully! Please re-run the program.") |
| 84 | exit() |
| 85 | |
| 86 | |
| 87 | def ffmpeg_install_mac(): |