-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo_script.py
More file actions
58 lines (52 loc) · 1.69 KB
/
Copy pathdemo_script.py
File metadata and controls
58 lines (52 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"""
Demo script to test the Video Clipper setup
"""
import subprocess
import os
def check_ffmpeg():
"""Check if FFmpeg is installed and working"""
print("Checking FFmpeg...")
try:
result = subprocess.run(['ffmpeg', '-version'], capture_output=True, text=True, check=True)
print("✓ FFmpeg is installed and working!")
print(f" {result.stdout.splitlines()[0]}")
return True
except:
print("✗ FFmpeg not found!")
return False
def check_python():
"""Check Python version"""
print("\nChecking Python...")
try:
result = subprocess.run(['python', '--version'], capture_output=True, text=True, check=True)
print("✓ Python is installed!")
print(f" {result.stdout.strip()}")
return True
except:
print("✗ Python not found!")
return False
def main():
print("=" * 50)
print(" Video Clipper - Setup Check")
print("=" * 50)
ffmpeg_ok = check_ffmpeg()
python_ok = check_python()
print("\n" + "=" * 50)
if ffmpeg_ok and python_ok:
print(" ✓ All checks passed! Ready to use.")
print("=" * 50)
print("\nTo start the Video Clipper:")
print(" - Double-click: launcher.bat")
print(" - Or run: python main.py")
print("\n")
else:
print(" ✗ Some checks failed. Please install missing components.")
print("=" * 50)
print("\nTo fix issues:")
print(" 1. Run: install.bat")
print(" 2. Or manually install:")
print(" - Python 3.13 from Microsoft Store")
print(" - FFmpeg using: winget install ffmpeg")
print("\n")
if __name__ == "__main__":
main()