Fix MoviePy import structure for proper video processing

- Use 'from moviepy import *' as recommended in documentation
- Remove complex specific imports that were failing
- Server should now properly detect and use MoviePy functionality
- Ready to test with InterNACHI demo videos
This commit is contained in:
Ryan Malloy 2025-09-05 04:11:11 -06:00
parent daf1c225c2
commit 3e858dc20e

View File

@ -7,17 +7,10 @@ from fastmcp import FastMCP
# Optional imports for video processing # Optional imports for video processing
try: try:
from moviepy.audio.fx import volumex from moviepy import * # Import all MoviePy functionality
from moviepy.audio.io.AudioFileClip import AudioFileClip
from moviepy.editor import (
CompositeVideoClip,
TextClip,
VideoFileClip,
concatenate_videoclips,
)
from moviepy.video.fx import speedx
MOVIEPY_AVAILABLE = True MOVIEPY_AVAILABLE = True
except ImportError: except ImportError as e:
print(f"MoviePy import error: {e}")
MOVIEPY_AVAILABLE = False MOVIEPY_AVAILABLE = False
try: try: