Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

moviepy

> 开发工具
Open source

Video editing with Python

14.8K stars0 likes2 views
WebsiteGitHub

About

Video editing with Python

MoviePy

[!NOTE] MoviePy recently upgraded to v2.0, introducing major breaking changes. You can consult the last v1 docs here but beware that v1 is no longer maintained. For more info on how to update your code from v1 to v2, see this guide.

MoviePy (online documentation here) is a Python library for video editing: cuts, concatenations, title insertions, video compositing (a.k.a. non-linear editing), video processing, and creation of custom effects.

MoviePy can read and write all the most common audio and video formats, including GIF, and runs on Windows/Mac/Linux, with Python 3.9+.

Example

In this example we open a video file, select the subclip between 10 and 20 seconds, add a title at the center of the screen, and write the result to a new file:

…

How MoviePy works

Under the hood, MoviePy imports media (video frames, images, sounds) and converts them into Python objects (numpy arrays) so that every pixel becomes accessible, and video or audio effects can be defined in just a few lines of code (see the built-in effects for examples).

The library also provides ways to mix clips together (concatenations, playing clips side by side or on top of each other with transparency, etc.). The final clip is then encoded back into mp4/webm/gif/etc.

This makes MoviePy very flexible and approachable, albeit slower than using ffmpeg directly due to heavier data import/export operations.

Installation

Intall moviepy with pip install moviepy. For additional installation options, such as a custom FFMPEG or for previewing, see this section. For development, clone that repo locally and install with pip install -e .

Documentation

The online documentation (here) is automatically built at every push to the master branch. To build the documentation locally, install the extra dependencies via pip install "moviepy[doc]", then go to the docs folder and run make html.

Contribute

MoviePy is open-source software originally written by Zulko and released under the MIT licence. The project is hosted on GitHub, where everyone is welcome to contribute and open issues or give feedback Please read our Contributing Guidelines. To ask for help or simply discuss usage and examples, use our Reddit channel.

Maintainers

Active maintainers

  • Zulko (owner)
  • @osaajani led the development of v2 (MR)
  • @tburrows13
  • @keikoro

Past maintainers and thanks

  • @mgaitan
  • @earney
  • @mbeacom
  • @overdrivr
  • @ryanfox
  • @mondeja

Maintainers wanted! this library has only been kept afloat by the involvement of its maintainers, and there are times where none of us have enough bandwidth. We'd love to hear about developers interested in giving a hand and solving some of the issues (especially the ones that affect you) or reviewing pull requests. Open an issue or contact us directly if you are interested. Thanks!

Issues· 87 open

View all issuesOpen on GitHub
  • #2481

    Wrong value of moviepy.__version__ in 2.2.1

    bugUpdated Sep 26, 2026
  • #2521

    Match Video to Audio Duration Feature

    feature-requestaudioUpdated Sep 16, 2026
  • #2574

    Bump GitHub Action Versions, Pin Specific Commit SHA

    feature-requestCIUpdated Sep 16, 2026
  • #2541

    write_audiofile causes corrupted output if writing to the original audio path

    questionaudioUpdated Sep 16, 2026
  • #2553

    Support for Pillow >= 12.0 (Dependency Conflict with Pillow 12.1.1)

    dependencieslib-PIL-PillowUpdated Sep 15, 2026
  • #2568

    Interested in helping maintain MoviePy

    Updated Jul 30, 2026
  • #2581

    Numpy Deprecation Warning During Reshape

    bugUpdated Jul 30, 2026
  • #2385

    Slidin and slidout together doesn't work

    bugfxUpdated Jul 30, 2026
  • #2374

    Closing Preview window causes traceback because of broken pipe

    bugvideoUpdated Jul 14, 2026
  • #2535

    MoviePy clip preview interruption problem

    bugvideolib-FFmpegUpdated Jul 14, 2026

> Tags

Pythonanimationgifhacktoberfestpython

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具