dev-moviepy


Namedev-moviepy JSON
Version 2.0.0.dev0 PyPI version JSON
download
home_pagehttps://zulko.github.io/moviepy/
SummaryVideo editing with Python
upload_time2023-09-20 06:32:08
maintainer
docs_urlNone
authorZulko 2017
requires_python
licenseMIT License
keywords video editing audio compositing ffmpeg
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            MoviePy
=======

.. image:: https://badge.fury.io/py/moviepy.svg
    :target: PyPI_
    :alt: MoviePy page on the Python Package Index
.. image:: https://img.shields.io/gitter/room/movie-py/gitter?color=46BC99&logo=gitter
    :target: Gitter_
    :alt: Discuss MoviePy on Gitter
.. image:: https://img.shields.io/github/actions/workflow/status/Zulko/moviepy/test_suite.yml?logo=github
    :target: https://github.com/Zulko/moviepy/actions/workflows/test_suite.yml
    :alt: Build status on gh-actions
.. image:: https://img.shields.io/coveralls/github/Zulko/moviepy/master?logo=coveralls
    :target: https://coveralls.io/github/Zulko/moviepy?branch=master
    :alt: Code coverage from coveralls.io

MoviePy (full documentation_) is a Python library for video editing: cutting, concatenations, title insertions, video compositing (a.k.a. non-linear editing), video processing, and creation of custom effects. See the gallery_ for some examples of use.

MoviePy can read and write all the most common audio and video formats, including GIF, and runs on Windows/Mac/Linux, with Python 3.6+. Here it is in action in an IPython notebook:

.. image:: https://raw.githubusercontent.com/Zulko/moviepy/master/docs/demo_preview.jpeg
    :alt: [logo]
    :align: center

Example
-------

In this example we open a video file, select the subclip between t=50s and t=60s, add a title at the center of the screen, and write the result to a new file:

.. code:: python
    
    from moviepy import *

    video = VideoFileClip("myHolidays.mp4").subclip(50,60)

    # Make the text. Many more options are available.
    txt_clip = ( TextClip("My Holidays 2013",fontsize=70,color='white')
                 .with_position('center')
                 .with_duration(10) )

    result = CompositeVideoClip([video, txt_clip]) # Overlay text on video
    result.write_videofile("myHolidays_edited.webm",fps=25) # Many options...
    
*Note:* This example uses the new 2.x API, for MoviePy 1.0.3, currently on PyPI, see `this snippet <https://gist.github.com/Zulko/57e6e50debef1834fb9b60700b1b9f99>`_.


Maintainers wanted!
-------------------

As there are more and more people seeking support (270 open issues as of Jan. 2021!) and all the MoviePy maintainers seem busy, 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!

Installation
------------

MoviePy depends on the Python modules NumPy_, Imageio_, Decorator_, and Proglog_, which will be automatically installed during MoviePy's installation. The software FFMPEG should be automatically downloaded/installed (by imageio) during your first use of MoviePy (installation will take a few seconds). If you want to use a specific version of FFMPEG, follow the instructions in ``config_defaults.py``. In case of trouble, provide feedback.

**Installation by hand:** download the sources, either from PyPI_ or, if you want the development version, from GitHub_, unzip everything into one folder, open a terminal and type:

.. code:: bash

    $ (sudo) python setup.py install

**Installation with pip:** if you have ``pip`` installed, just type this in a terminal:

.. code:: bash

    $ (sudo) pip install moviepy

If you have neither ``setuptools`` nor ``ez_setup`` installed, the command above will fail. In this case type this before installing:

.. code:: bash

    $ (sudo) pip install setuptools


Optional but useful dependencies
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You can install ``moviepy`` with all dependencies via:

.. code:: bash

    $ (sudo) pip install moviepy[optional]

ImageMagick_ is not strictly required, but needed if you want to incorporate texts. It can also be used as a backend for GIFs, though you can also create GIFs with MoviePy without ImageMagick.

Once you have installed ImageMagick, MoviePy will try to autodetect the path to its executable. If it fails, you can still configure it by setting environment variables (see the documentation).

PyGame_ is needed for video and sound previews (not relevant if you intend to work with MoviePy on a server but essential for advanced video editing by hand).

For advanced image processing, you will need one or several of the following packages:

- The Python Imaging Library (PIL) or, even better, its branch Pillow_.
- Scipy_ (for tracking, segmenting, etc.) can be used to resize video clips if PIL and OpenCV are not installed.
- `Scikit Image`_ may be needed for some advanced image manipulation.
- `OpenCV 2.4.6`_ or a more recent version (one that provides the package ``cv2``) may be needed for some advanced image manipulation.
- `Matplotlib`_

For instance, using the method ``clip.resize`` requires that at least one of Scipy, PIL, Pillow or OpenCV is installed.


Documentation
-------------

Building the documentation has additional dependencies that require installation.

.. code:: bash

    $ (sudo) pip install moviepy[doc]

The documentation can be generated and viewed via:

.. code:: bash

    $ python setup.py build_docs

You can pass additional arguments to the documentation build, such as clean build:

.. code:: bash

    $ python setup.py build_docs -E

More information is available from the `Sphinx`_ documentation.

New in 1.0.0: Progress bars and messages with Proglog
-------------------------------------------------------

Non-backwards-compatible changes were introduced in 1.0.0 to
manage progress bars and messages using
`Proglog <https://github.com/Edinburgh-Genome-Foundry/Proglog>`_, which
enables to display nice progress bars in the console as well as in
a Jupyter notebook or any user interface, like a website.

To display notebook friendly progress bars, first install IPyWidgets:

.. code::

    sudo pip install ipywidgets
    sudo jupyter nbextension enable --py --sys-prefix widgetsnbextension

Then at the beginning of your notebook enter:

.. code:: python

    import proglog
    proglog.notebook()

Have a look at the Proglog project page for more options.

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, ask for help or simply give feedback. Please read our `Contributing Guidelines`_ for more information about how to contribute!

You can also discuss the project on Reddit_ or Gitter_. These are preferred over GitHub issues for usage questions and examples.


Maintainers
-----------

- Zulko_ (owner)
- `@tburrows13`_
- `@mgaitan`_
- `@earney`_
- `@mbeacom`_
- `@overdrivr`_
- `@keikoro`_
- `@ryanfox`_
- `@mondeja`_


.. MoviePy links
.. _gallery: https://zulko.github.io/moviepy/gallery.html
.. _documentation: https://zulko.github.io/moviepy/
.. _`download MoviePy`: https://github.com/Zulko/moviepy
.. _`Label Wiki`: https://github.com/Zulko/moviepy/wiki/Label-Wiki
.. _Contributing Guidelines: https://github.com/Zulko/moviepy/blob/master/CONTRIBUTING.md

.. Websites, Platforms
.. _Reddit: https://www.reddit.com/r/moviepy/
.. _PyPI: https://pypi.python.org/pypi/moviepy
.. _GitHub: https://github.com/Zulko/moviepy
.. _Gitter: https://gitter.im/movie-py/Lobby

.. Software, Tools, Libraries
.. _Pillow: https://pillow.readthedocs.org/en/latest/
.. _Scipy: https://www.scipy.org/
.. _`OpenCV 2.4.6`: https://github.com/skvark/opencv-python
.. _Pygame: https://www.pygame.org/download.shtml
.. _Numpy: https://www.scipy.org/install.html
.. _imageio: https://imageio.github.io/
.. _`Scikit Image`: https://scikit-image.org/docs/stable/install.html
.. _Decorator: https://pypi.python.org/pypi/decorator
.. _proglog: https://github.com/Edinburgh-Genome-Foundry/Proglog
.. _ffmpeg: https://www.ffmpeg.org/download.html
.. _ImageMagick: https://www.imagemagick.org/script/index.php
.. _`Matplotlib`: https://matplotlib.org/
.. _`Sphinx`: https://www.sphinx-doc.org/en/master/setuptools.html

.. People
.. _Zulko: https://github.com/Zulko
.. _`@mgaitan`: https://github.com/mgaitan
.. _`@tburrows13`: https://github.com/tburrows13
.. _`@earney`: https://github.com/earney
.. _`@mbeacom`: https://github.com/mbeacom
.. _`@overdrivr`: https://github.com/overdrivr
.. _`@keikoro`: https://github.com/keikoro
.. _`@ryanfox`: https://github.com/ryanfox
.. _`@mondeja`: https://github.com/mondeja



            

Raw data

            {
    "_id": null,
    "home_page": "https://zulko.github.io/moviepy/",
    "name": "dev-moviepy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "video editing audio compositing ffmpeg",
    "author": "Zulko 2017",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/58/70/05d11192c8d4eb6aadcb2a249d648d56606ca8cb42270baa9f4640f4c481/dev-moviepy-2.0.0.dev0.tar.gz",
    "platform": null,
    "description": "MoviePy\n=======\n\n.. image:: https://badge.fury.io/py/moviepy.svg\n    :target: PyPI_\n    :alt: MoviePy page on the Python Package Index\n.. image:: https://img.shields.io/gitter/room/movie-py/gitter?color=46BC99&logo=gitter\n    :target: Gitter_\n    :alt: Discuss MoviePy on Gitter\n.. image:: https://img.shields.io/github/actions/workflow/status/Zulko/moviepy/test_suite.yml?logo=github\n    :target: https://github.com/Zulko/moviepy/actions/workflows/test_suite.yml\n    :alt: Build status on gh-actions\n.. image:: https://img.shields.io/coveralls/github/Zulko/moviepy/master?logo=coveralls\n    :target: https://coveralls.io/github/Zulko/moviepy?branch=master\n    :alt: Code coverage from coveralls.io\n\nMoviePy (full documentation_) is a Python library for video editing: cutting, concatenations, title insertions, video compositing (a.k.a. non-linear editing), video processing, and creation of custom effects. See the gallery_ for some examples of use.\n\nMoviePy can read and write all the most common audio and video formats, including GIF, and runs on Windows/Mac/Linux, with Python 3.6+. Here it is in action in an IPython notebook:\n\n.. image:: https://raw.githubusercontent.com/Zulko/moviepy/master/docs/demo_preview.jpeg\n    :alt: [logo]\n    :align: center\n\nExample\n-------\n\nIn this example we open a video file, select the subclip between t=50s and t=60s, add a title at the center of the screen, and write the result to a new file:\n\n.. code:: python\n    \n    from moviepy import *\n\n    video = VideoFileClip(\"myHolidays.mp4\").subclip(50,60)\n\n    # Make the text. Many more options are available.\n    txt_clip = ( TextClip(\"My Holidays 2013\",fontsize=70,color='white')\n                 .with_position('center')\n                 .with_duration(10) )\n\n    result = CompositeVideoClip([video, txt_clip]) # Overlay text on video\n    result.write_videofile(\"myHolidays_edited.webm\",fps=25) # Many options...\n    \n*Note:* This example uses the new 2.x API, for MoviePy 1.0.3, currently on PyPI, see `this snippet <https://gist.github.com/Zulko/57e6e50debef1834fb9b60700b1b9f99>`_.\n\n\nMaintainers wanted!\n-------------------\n\nAs there are more and more people seeking support (270 open issues as of Jan. 2021!) and all the MoviePy maintainers seem busy, 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!\n\nInstallation\n------------\n\nMoviePy depends on the Python modules NumPy_, Imageio_, Decorator_, and Proglog_, which will be automatically installed during MoviePy's installation. The software FFMPEG should be automatically downloaded/installed (by imageio) during your first use of MoviePy (installation will take a few seconds). If you want to use a specific version of FFMPEG, follow the instructions in ``config_defaults.py``. In case of trouble, provide feedback.\n\n**Installation by hand:** download the sources, either from PyPI_ or, if you want the development version, from GitHub_, unzip everything into one folder, open a terminal and type:\n\n.. code:: bash\n\n    $ (sudo) python setup.py install\n\n**Installation with pip:** if you have ``pip`` installed, just type this in a terminal:\n\n.. code:: bash\n\n    $ (sudo) pip install moviepy\n\nIf you have neither ``setuptools`` nor ``ez_setup`` installed, the command above will fail. In this case type this before installing:\n\n.. code:: bash\n\n    $ (sudo) pip install setuptools\n\n\nOptional but useful dependencies\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou can install ``moviepy`` with all dependencies via:\n\n.. code:: bash\n\n    $ (sudo) pip install moviepy[optional]\n\nImageMagick_ is not strictly required, but needed if you want to incorporate texts. It can also be used as a backend for GIFs, though you can also create GIFs with MoviePy without ImageMagick.\n\nOnce you have installed ImageMagick, MoviePy will try to autodetect the path to its executable. If it fails, you can still configure it by setting environment variables (see the documentation).\n\nPyGame_ is needed for video and sound previews (not relevant if you intend to work with MoviePy on a server but essential for advanced video editing by hand).\n\nFor advanced image processing, you will need one or several of the following packages:\n\n- The Python Imaging Library (PIL) or, even better, its branch Pillow_.\n- Scipy_ (for tracking, segmenting, etc.) can be used to resize video clips if PIL and OpenCV are not installed.\n- `Scikit Image`_ may be needed for some advanced image manipulation.\n- `OpenCV 2.4.6`_ or a more recent version (one that provides the package ``cv2``) may be needed for some advanced image manipulation.\n- `Matplotlib`_\n\nFor instance, using the method ``clip.resize`` requires that at least one of Scipy, PIL, Pillow or OpenCV is installed.\n\n\nDocumentation\n-------------\n\nBuilding the documentation has additional dependencies that require installation.\n\n.. code:: bash\n\n    $ (sudo) pip install moviepy[doc]\n\nThe documentation can be generated and viewed via:\n\n.. code:: bash\n\n    $ python setup.py build_docs\n\nYou can pass additional arguments to the documentation build, such as clean build:\n\n.. code:: bash\n\n    $ python setup.py build_docs -E\n\nMore information is available from the `Sphinx`_ documentation.\n\nNew in 1.0.0: Progress bars and messages with Proglog\n-------------------------------------------------------\n\nNon-backwards-compatible changes were introduced in 1.0.0 to\nmanage progress bars and messages using\n`Proglog <https://github.com/Edinburgh-Genome-Foundry/Proglog>`_, which\nenables to display nice progress bars in the console as well as in\na Jupyter notebook or any user interface, like a website.\n\nTo display notebook friendly progress bars, first install IPyWidgets:\n\n.. code::\n\n    sudo pip install ipywidgets\n    sudo jupyter nbextension enable --py --sys-prefix widgetsnbextension\n\nThen at the beginning of your notebook enter:\n\n.. code:: python\n\n    import proglog\n    proglog.notebook()\n\nHave a look at the Proglog project page for more options.\n\nContribute\n----------\n\nMoviePy 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, ask for help or simply give feedback. Please read our `Contributing Guidelines`_ for more information about how to contribute!\n\nYou can also discuss the project on Reddit_ or Gitter_. These are preferred over GitHub issues for usage questions and examples.\n\n\nMaintainers\n-----------\n\n- Zulko_ (owner)\n- `@tburrows13`_\n- `@mgaitan`_\n- `@earney`_\n- `@mbeacom`_\n- `@overdrivr`_\n- `@keikoro`_\n- `@ryanfox`_\n- `@mondeja`_\n\n\n.. MoviePy links\n.. _gallery: https://zulko.github.io/moviepy/gallery.html\n.. _documentation: https://zulko.github.io/moviepy/\n.. _`download MoviePy`: https://github.com/Zulko/moviepy\n.. _`Label Wiki`: https://github.com/Zulko/moviepy/wiki/Label-Wiki\n.. _Contributing Guidelines: https://github.com/Zulko/moviepy/blob/master/CONTRIBUTING.md\n\n.. Websites, Platforms\n.. _Reddit: https://www.reddit.com/r/moviepy/\n.. _PyPI: https://pypi.python.org/pypi/moviepy\n.. _GitHub: https://github.com/Zulko/moviepy\n.. _Gitter: https://gitter.im/movie-py/Lobby\n\n.. Software, Tools, Libraries\n.. _Pillow: https://pillow.readthedocs.org/en/latest/\n.. _Scipy: https://www.scipy.org/\n.. _`OpenCV 2.4.6`: https://github.com/skvark/opencv-python\n.. _Pygame: https://www.pygame.org/download.shtml\n.. _Numpy: https://www.scipy.org/install.html\n.. _imageio: https://imageio.github.io/\n.. _`Scikit Image`: https://scikit-image.org/docs/stable/install.html\n.. _Decorator: https://pypi.python.org/pypi/decorator\n.. _proglog: https://github.com/Edinburgh-Genome-Foundry/Proglog\n.. _ffmpeg: https://www.ffmpeg.org/download.html\n.. _ImageMagick: https://www.imagemagick.org/script/index.php\n.. _`Matplotlib`: https://matplotlib.org/\n.. _`Sphinx`: https://www.sphinx-doc.org/en/master/setuptools.html\n\n.. People\n.. _Zulko: https://github.com/Zulko\n.. _`@mgaitan`: https://github.com/mgaitan\n.. _`@tburrows13`: https://github.com/tburrows13\n.. _`@earney`: https://github.com/earney\n.. _`@mbeacom`: https://github.com/mbeacom\n.. _`@overdrivr`: https://github.com/overdrivr\n.. _`@keikoro`: https://github.com/keikoro\n.. _`@ryanfox`: https://github.com/ryanfox\n.. _`@mondeja`: https://github.com/mondeja\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Video editing with Python",
    "version": "2.0.0.dev0",
    "project_urls": {
        "Homepage": "https://zulko.github.io/moviepy/",
        "Source": "https://github.com/Zulko/moviepy"
    },
    "split_keywords": [
        "video",
        "editing",
        "audio",
        "compositing",
        "ffmpeg"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ee1824b5bf268a99f77212ea35fea14f968146b105a66bd5cc53f35daa662a9",
                "md5": "434fbb9d2d5823928bf74c8d57e7260f",
                "sha256": "66a9e064c1ca191c7bb1e869fb9ae3fec9ead559e3ba0c70b4a9e60e0a2fe17e"
            },
            "downloads": -1,
            "filename": "dev_moviepy-2.0.0.dev0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "434fbb9d2d5823928bf74c8d57e7260f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 128880,
            "upload_time": "2023-09-20T06:32:04",
            "upload_time_iso_8601": "2023-09-20T06:32:04.991298Z",
            "url": "https://files.pythonhosted.org/packages/0e/e1/824b5bf268a99f77212ea35fea14f968146b105a66bd5cc53f35daa662a9/dev_moviepy-2.0.0.dev0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "587005d11192c8d4eb6aadcb2a249d648d56606ca8cb42270baa9f4640f4c481",
                "md5": "08730a117f3f4ef94e6f66e1a0ce2efb",
                "sha256": "f903516c75688c8065d3e3571d42c8e85b7795619458fb951676a5937d4153de"
            },
            "downloads": -1,
            "filename": "dev-moviepy-2.0.0.dev0.tar.gz",
            "has_sig": false,
            "md5_digest": "08730a117f3f4ef94e6f66e1a0ce2efb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 459091,
            "upload_time": "2023-09-20T06:32:08",
            "upload_time_iso_8601": "2023-09-20T06:32:08.089277Z",
            "url": "https://files.pythonhosted.org/packages/58/70/05d11192c8d4eb6aadcb2a249d648d56606ca8cb42270baa9f4640f4c481/dev-moviepy-2.0.0.dev0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-20 06:32:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Zulko",
    "github_project": "moviepy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "appveyor": true,
    "lcname": "dev-moviepy"
}
        
Elapsed time: 0.12119s