# MoviePy — Python Video Editing Library > Python library for video editing: cutting, concatenating, adding titles, effects, and audio. Script-based video production for automation pipelines. ## Install Save as a script file and run: ## Quick Use ```bash pip install moviepy ``` ```python from moviepy import VideoFileClip, TextClip, CompositeVideoClip video = VideoFileClip("input.mp4").subclipped(0, 10) title = TextClip(text="Hello World", font_size=70, color="white", font="Arial") title = title.with_duration(5).with_position("center") result = CompositeVideoClip([video, title]) result.write_videofile("output.mp4") ``` --- ## Intro MoviePy is a Python library for video editing — cutting, concatenating, adding text overlays, transitions, and effects through code. No GUI needed. Perfect for building automated video production pipelines where you need to programmatically assemble, transform, and export videos. 13,000+ GitHub stars. **Best for**: Automated video assembly, batch processing, adding overlays/titles to existing footage **Works with**: Python 3.9+, FFmpeg (auto-installed) **Setup time**: 2 minutes --- ## Key Operations ### Cut and trim ```python clip = VideoFileClip("video.mp4").subclipped(10, 60) # 10s to 60s ``` ### Concatenate clips ```python from moviepy import concatenate_videoclips final = concatenate_videoclips([clip1, clip2, clip3]) ``` ### Add text overlay ```python txt = TextClip(text="Subscribe!", font_size=40, color="yellow", font="Arial") txt = txt.with_duration(3).with_position(("center", "bottom")) ``` ### Resize and speed ```python clip = clip.resized(width=1080) clip = clip.with_speed_scaled(2.0) # 2x speed ``` ### FAQ **Q: What is MoviePy?** A: A Python library for video editing through code — cut, concatenate, overlay text, apply effects, and export videos programmatically without a GUI. **Q: Is MoviePy free?** A: Yes. MoviePy is MIT-licensed and free to use. --- ## Source & Thanks > Created by [Zulko](https://github.com/Zulko). Licensed under MIT. > [moviepy](https://github.com/Zulko/moviepy) — ⭐ 13,000+ > Docs: [zulko.github.io/moviepy](https://zulko.github.io/moviepy) --- Source: https://tokrepo.com/en/workflows/57b68929-f919-474a-99f1-81ac76e0bce6 Author: Script Depot