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:
parent
daf1c225c2
commit
3e858dc20e
@ -7,17 +7,10 @@ from fastmcp import FastMCP
|
||||
|
||||
# Optional imports for video processing
|
||||
try:
|
||||
from moviepy.audio.fx import volumex
|
||||
from moviepy.audio.io.AudioFileClip import AudioFileClip
|
||||
from moviepy.editor import (
|
||||
CompositeVideoClip,
|
||||
TextClip,
|
||||
VideoFileClip,
|
||||
concatenate_videoclips,
|
||||
)
|
||||
from moviepy.video.fx import speedx
|
||||
from moviepy import * # Import all MoviePy functionality
|
||||
MOVIEPY_AVAILABLE = True
|
||||
except ImportError:
|
||||
except ImportError as e:
|
||||
print(f"MoviePy import error: {e}")
|
||||
MOVIEPY_AVAILABLE = False
|
||||
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user