# Professional Video Editor A standalone video editor with timeline controls and real-time preview, designed specifically for editing generated shorts. ## Features ### βœ… Working Features (OpenCV Backend) - **🎬 Video Playback**: Load and play video files with timeline controls - **πŸ“Ί Real-time Preview**: Professional video player with frame-by-frame seeking - **⏯️ Timeline Controls**: Play, Pause, Stop buttons with synchronized video playback - **πŸ•’ Time Display**: Current time and total duration with precise seeking - **πŸ“Š Interactive Timeline**: Click and drag to seek to specific time positions - **🎯 Frame-accurate Seeking**: Navigate to exact frames using the timeline ### πŸ”§ Advanced Features (Requires MoviePy) - **βœ‚οΈ Video Trimming**: Cut videos to specific time ranges - **⚑ Speed Control**: Adjust playback speed (0.25x to 3.0x) - **πŸ”Š Volume Adjustment**: Control audio levels (0x to 2.0x) - **πŸŒ… Fade Effects**: Add professional fade in/out transitions - **πŸ“ Text Overlays**: Add custom text with positioning - **πŸ’Ύ Video Export**: Save edited videos in MP4 format ## Usage ### From Main Application 1. Run `python Main.py` 2. Click "✏️ Edit Generated Shorts" button 3. Select a video from your shorts folder or browse for any video file ### Standalone Mode 1. Run `python video_editor.py` 2. The editor will open directly ## Installation Requirements ### Basic Functionality (OpenCV) ```bash pip install opencv-python pillow ``` ### Full Functionality (MoviePy) ```bash pip install moviepy opencv-python pillow ``` ## How to Use 1. **Load Video**: Click "πŸ“ Select Video" to choose a video file 2. **Navigate**: Use timeline controls (Play/Pause/Stop) or click on timeline to seek 3. **Edit** (if MoviePy available): - Adjust trim start/end times and click "βœ‚οΈ Apply Trim" - Change speed with slider and click "⚑ Apply Speed" - Adjust volume and click "πŸ”Š Apply Volume" - Add text overlay and click "πŸ“ Add Text" - Apply fade effects with "πŸŒ… Add Fade In/Out" 4. **Export**: Click "πŸ’Ύ Export Video" to save your changes ## Timeline Controls - **▢️ Play**: Start video playback and timeline animation - **⏸️ Pause**: Pause both video and timeline - **⏹️ Stop**: Stop and return to beginning - **Timeline Click**: Seek to specific time position - **Time Display**: Shows current time / total duration ## Notes - The editor automatically detects available libraries and adjusts functionality - Without MoviePy, you get a professional video player with timeline controls - With MoviePy, you get full editing capabilities - All timeline controls are synchronized with actual video playback - The interface is responsive and works with different window sizes ## File Support Supports common video formats: MP4, AVI, MOV, MKV, WMV, FLV, WEBM ## Architecture The editor is built with: - **Tkinter**: Modern GUI with professional styling - **OpenCV**: Video loading and frame display (always available) - **MoviePy**: Advanced video editing features (optional) - **PIL**: Image processing and display - **Threading**: Non-blocking video playback and timeline updates