Organize a video folder by cleaning non-video files, removing short/bad videos, and classifying videos into numbered subfolders using AI vision analysis.
If the user has not provided a folder path, ask them to provide one.
Language note: Detect the language the user is writing in and respond in that language throughout the entire session. Category folder names should also be in the user's language.
βοΈ Configuration
ffmpeg and ffprobe must be installed (brew install ffmpeg)
Use which ffmpeg to verify before starting
Performance Tips
Process frames extraction in batches to avoid overwhelming the system
For large folders (>50 videos), inform the user this may take a few minutes
Clean up temp frames after analysis: rm -rf /tmp/video_frames
Error Handling
If a video file is corrupted and ffprobe fails, mark it as "unreadable" and ask user separately
If ffmpeg frame extraction fails, skip that video's frames and note in analysis
Folder Safety
Never delete files without explicit user confirmation
Always show what will be deleted/moved before executing
If unsure, prefer moving to a subfolder over permanent deletion