Available Examples
All example code is available in the GitHub repository.Basic Editing
Learn fundamental editing operations: cutting, concatenating, resizing, and positioning clips.
Effects Showcase
Explore the complete library of visual and audio effects including fades, blurs, color grading, and glitch effects.
Text Animations
Create dynamic text overlays with animations, gradients, shadows, and custom styling using Pictex.
Audio Mixing
Master audio track control, mixing background music, and applying audio effects to your videos.
Advanced Compositing
Build complex compositions with CompositeClip, AlphaCompositeClip, and understand when to use them.
Transitions
Apply smooth transitions between clips including crossfade, dissolve, and blur dissolve effects.
Masking Effects
Create sophisticated masking effects with image masks, text masks, and animated masks.
Rotation Examples
Rotate clips with static angles, animated spinning, custom pivot points, and quality settings.
Speed Control
Control playback speed for slow motion, time-lapse, and dynamic speed ramping effects.
Quick Start Examples
Extract a Subclip
Extract a 10-second segment from a video:Concatenate Multiple Clips
Join videos sequentially:Add Simple Text Overlay
Add text to your video:Example Categories
Basic Operations
Start here if you’re new to MovieLite:- basic_editing.py - Subclips, concatenation, resizing, opacity, positioning, looping
- speed_examples.py - Speed control for slow motion and time-lapse effects
- rotation_examples.py - Static and animated rotation with custom pivot points
Visual Effects
Enhance your videos with built-in effects:- effects_showcase.py - Complete showcase of all visual effects
- masking_effects.py - Image masks, text masks, shape masks, and animations
- text_animations.py - Dynamic text with position, scale, and fade animations
Audio
Work with audio tracks and effects:- video_audio_control.py - Control video audio tracks, mixing, and synchronization
- Effects include fade in/out and volume control
Advanced Techniques
- composite_clips.py - When and how to use CompositeClip and AlphaCompositeClip
- transitions.py - Crossfade, dissolve, and blur dissolve transitions
- Combining multiple effects and advanced compositing
Running the Examples
Prepare Your Media
Update the file paths in the examples to point to your own video, audio, and image files.
All examples use placeholder filenames like
input.mp4, logo.png, etc. Make sure to replace these with paths to your actual media files before running.Example Code Structure
Each example file follows a consistent structure:Getting Help
If you’re stuck or have questions about any example:- Check the API Reference for detailed method documentation
- Read the Core Concepts to understand fundamental principles
- Visit the GitHub Issues to report bugs or request features
Contributing Examples
Have a cool MovieLite project? We’d love to add it to our examples collection!- Fork the repository
- Create your example in the
examples/directory - Follow the existing code structure and documentation style
- Submit a pull request