Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

MoviePy

by Zulko / community

MIT Python library for video editing that wraps FFmpeg.

Video assembly and rendering Open source

GitHub repoAPI docs
Four frames read back from one MP4 that MoviePy wrote, a title over a shifting gradient, then a drawn circle moving right, with a progress bar along the bottom.
Made by AgentGid with moviepy 2.2.1 (PyPI) with imageio-ffmpeg 0.8.1, Pillow 11.3.0 and numpy 2.5.4, Python 3.12. Made by AgentGid with moviepy 2.2.1 (MIT). All shapes and colors are drawn by our own code; the title uses the default font that comes with Pillow. No outside images or videos are used.

2. Commercial use: github.com/Zulko/moviepy

“MoviePy is open-source software originally written by Zulko and released under the MIT licence.”

MIT allows use in paid products and services.

github.com/Zulko/moviepy

License checked Nov 10, 2026 against 3 official pages. Tap a verdict to see its source. How we checked Report an error

MoviePy: edit and assemble videos with Python code

MoviePy is a free Python library that edits video with code instead of a video editor. You or your AI assistant can cut clips, join them, put titles on top and save the result as an MP4 or GIF. It suits jobs that repeat, such as making many similar videos on a server.

Where you can use it

Many similar videos at once

Make a batch of videos from one template, such as a product clip per item or a weekly recap per customer. The script swaps the text and pictures and saves each file.

Titles and captions on a clip

Put a title, a name or a caption over part of a video, for example the first ten seconds of a talk.

Join several clips into one

Glue an intro, the main part and an outro into one file, in a fixed order, without opening an editor.

Preview pictures for videos

Save one still frame from a video as a picture, to use as the cover image on a page or in a list of videos.

Animated GIFs from pictures

Turn a set of screenshots or charts into a short GIF or video, for a help page, a changelog or a social post.

Short clips drawn by code Idea

Make a small animation, like a moving shape or a chart that grows, frame by frame from your own drawing code.

MoviePy popularity

38 / 100
Gid Score, same scale as developer tools
15,211
GitHub stars
MoviePy: GitHub starsZulko/moviepy 15,211

How the Gid Score is calculated

How to start

Tell your AI assistant

“Install moviepy 2.2.1 in a virtual environment and write a script that loads intro.mp4 and main.mp4, joins them with concatenate_videoclips, puts a title over the first 3 seconds and writes out.mp4, using the version 2 names (with_ methods, subclipped, import from moviepy).”

Or install it yourself. The video tool ffmpeg comes along through ImageIO, so there is usually nothing else to install.

pip install moviepy
Show codeStep 1 or Step 2

Import what you need straight from moviepy (version 2 has no moviepy.editor any more), load clips, change them and write the result.

from moviepy import * # Simple and nice, the __all__ is set in moviepy so only useful things will be loaded
from moviepy import VideoFileClip # You can also import only the things you really need

Mistakes to avoid

from moviepy.editor import *
from moviepy import VideoFileClip, TextClip, CompositeVideoClip

Version 2 removed the moviepy.editor module, so old tutorials fail on the first line.

clip.subclip(10, 20).set_position("center").set_duration(5)
clip.subclipped(10, 20).with_position("center").with_duration(5)

Version 2 renamed the set_ methods to with_, and each returns a changed copy instead of changing the clip in place.

VideoClip(frame_function).write_videofile("out.mp4")
VideoClip(frame_function, duration=2).write_videofile("out.mp4", fps=24)

Clips drawn by a function have no length or frame rate until you give them.

TextClip(text="Hello there!", font_size=56) with no margin
TextClip(text="Hello there!", font_size=56, margin=(10, 20))

In our demo with MoviePy 2.2.1 the bottom of the letters was cut off until we added a margin; the docs say a margin gives an auto-sized text extra room.

Checking moviepy.__version__ to confirm version 2.2.1
Check the installed package version with pip (pip show moviepy) or importlib.metadata.version("moviepy")

In our demo the 2.2.1 package from PyPI still reported "2.1.2" in moviepy.__version__.

License

MIT license. Free to use in personal and paid products and to change and share. Keep the copyright and license notice when you ship copies of the code; the videos you make are yours.

Commercial use
Yes

“MoviePy is open-source software originally written by Zulko and released under the MIT licence.” github.com/Zulko/moviepy

Credit
Not stated
Inside your app or game
Can ship inside your app

“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” raw.githubusercontent.com

Pass the files on to your users
With conditions

You may copy and share the code if the MIT notice goes with it.

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” github.com/Zulko/moviepy/blob/master/LICENCE.txt

AI training
Not stated
Bots and bulk downloads
Not stated

AllowedWith conditionsNot allowedNot stated or not checked yet

Is MoviePy free for commercial use? The full answer Not legal advice. Check the license page before you ship.

For your agent

License rules tell your agent what it may do with MoviePy. Paste them into your prompt or AGENTS.md.

License rules
- MoviePy (Video assembly and rendering). MIT Python library for video editing that wraps FFmpeg. Price: free; commercial use OK.
  Connect: download from https://github.com/Zulko/moviepy (no API).
  Get files: pip install moviepy.
  Not allowed: Keep the MIT copyright and permission notice in copies.
  Rule: FFmpeg is downloaded automatically by ImageIO on first use; install ffplay only for previews. FFmpeg's licence applies to that component.
  License: https://github.com/Zulko/moviepy/blob/master/LICENCE.txt (checked 2026-11-10; details: https://agentgid.com/assets/moviepy/)
Can an agent use it by itself?
No.
How an agent gets files
pip install moviepy
Repository
API, key or account
Not needed. Everything runs on your side. API docs
MCP server
None found
Credit line, if you want one
Video made with MoviePy (MIT)
This card for machines

Alternatives

MoviePy This page

Free Commercial OK Download

Remotion

Pick Remotion when you build videos as React components; it is free for individuals and companies of up to 3 employees.

Free tier With conditions Download

Manim

Pick Manim for explanatory math or diagram animations made in Python.

Free Commercial OK PyPI

HyperFrames

Pick HyperFrames when your scenes are already HTML and CSS and you want them rendered into MP4 the same way every time.

Free Commercial OK npm

MoneyPrinterTurbo

Open-source tool that turns a topic or keywords into a short video with script, stock footage, subtitles and background music.

Free Commercial OK API

OpenMontage

Open-source agentic video production system that plans, generates and assembles videos locally using your own AI agent and provider accounts

Free With conditions Download

All video assembly and rendering

Agents that do the same job

video editing agent skill, open source, 31.6K GitHub stars
agent skill, open source, 22.6K GitHub stars
agent skill, open source, 21.8K GitHub stars
agent, open source, 8,377 GitHub stars

From AgentGid's agent catalog, not yet checked as asset sources: their license and price are on their agent pages.

Questions

Do I need to install ffmpeg myself?

Usually not. ImageIO fetches a matching ffmpeg the first time you use MoviePy. Only the ffplay previewer has to be installed by you, and only if you want previews.

Why does my old MoviePy code fail?

Version 2 removed moviepy.editor and renamed the set_ methods to with_ methods; import from moviepy and look for the with_ name.

Which Python version do I need?

Python 3.9 or newer, on Windows, Mac or Linux.

My video does not play in some players. Why?

A common reason is an odd width or height, such as 720x405, with the default codec. Use even sizes.

Can I use it in a paid product?

Yes. It is MIT licensed; keep the license notice with copies of the code.