moviepy-fix-codec


Namemoviepy-fix-codec JSON
Version 2.0.0 PyPI version JSON
download
home_pagehttps://github.com/SherlockGougou/moviepy-fix-codec
SummaryVideo editing with Python, moviepy-fix-codec.
upload_time2024-01-16 06:22:06
maintainer
docs_urlNone
authorSherlockGougou
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://github.com/SherlockGougou/moviepy-fix-codec",
    "name": "moviepy-fix-codec",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "video editing audio compositing ffmpeg",
    "author": "SherlockGougou",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/5f/7c/82e1ffdead3409d9ca6cf37ebf772adb3c2c749331fc93608aef1f38407f/moviepy-fix-codec-2.0.0.tar.gz",
    "platform": null,
    "description": "MoviePy\r\n=======\r\n\r\n.. image:: https://badge.fury.io/py/moviepy.svg\r\n    :target: PyPI_\r\n    :alt: MoviePy page on the Python Package Index\r\n.. image:: https://img.shields.io/gitter/room/movie-py/gitter?color=46BC99&logo=gitter\r\n    :target: Gitter_\r\n    :alt: Discuss MoviePy on Gitter\r\n.. image:: https://img.shields.io/github/actions/workflow/status/Zulko/moviepy/test_suite.yml?logo=github\r\n    :target: https://github.com/Zulko/moviepy/actions/workflows/test_suite.yml\r\n    :alt: Build status on gh-actions\r\n.. image:: https://img.shields.io/coveralls/github/Zulko/moviepy/master?logo=coveralls\r\n    :target: https://coveralls.io/github/Zulko/moviepy?branch=master\r\n    :alt: Code coverage from coveralls.io\r\n\r\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.\r\n\r\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:\r\n\r\n.. image:: https://raw.githubusercontent.com/Zulko/moviepy/master/docs/demo_preview.jpeg\r\n    :alt: [logo]\r\n    :align: center\r\n\r\nExample\r\n-------\r\n\r\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:\r\n\r\n.. code:: python\r\n    \r\n    from moviepy import *\r\n\r\n    video = VideoFileClip(\"myHolidays.mp4\").subclip(50,60)\r\n\r\n    # Make the text. Many more options are available.\r\n    txt_clip = ( TextClip(\"My Holidays 2013\",fontsize=70,color='white')\r\n                 .with_position('center')\r\n                 .with_duration(10) )\r\n\r\n    result = CompositeVideoClip([video, txt_clip]) # Overlay text on video\r\n    result.write_videofile(\"myHolidays_edited.webm\",fps=25) # Many options...\r\n    \r\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>`_.\r\n\r\n\r\nMaintainers wanted!\r\n-------------------\r\n\r\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!\r\n\r\nInstallation\r\n------------\r\n\r\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.\r\n\r\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:\r\n\r\n.. code:: bash\r\n\r\n    $ (sudo) python setup.py install\r\n\r\n**Installation with pip:** if you have ``pip`` installed, just type this in a terminal:\r\n\r\n.. code:: bash\r\n\r\n    $ (sudo) pip install moviepy\r\n\r\nIf you have neither ``setuptools`` nor ``ez_setup`` installed, the command above will fail. In this case type this before installing:\r\n\r\n.. code:: bash\r\n\r\n    $ (sudo) pip install setuptools\r\n\r\n\r\nOptional but useful dependencies\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\nYou can install ``moviepy`` with all dependencies via:\r\n\r\n.. code:: bash\r\n\r\n    $ (sudo) pip install moviepy[optional]\r\n\r\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.\r\n\r\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).\r\n\r\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).\r\n\r\nFor advanced image processing, you will need one or several of the following packages:\r\n\r\n- The Python Imaging Library (PIL) or, even better, its branch Pillow_.\r\n- Scipy_ (for tracking, segmenting, etc.) can be used to resize video clips if PIL and OpenCV are not installed.\r\n- `Scikit Image`_ may be needed for some advanced image manipulation.\r\n- `OpenCV 2.4.6`_ or a more recent version (one that provides the package ``cv2``) may be needed for some advanced image manipulation.\r\n- `Matplotlib`_\r\n\r\nFor instance, using the method ``clip.resize`` requires that at least one of Scipy, PIL, Pillow or OpenCV is installed.\r\n\r\n\r\nDocumentation\r\n-------------\r\n\r\nBuilding the documentation has additional dependencies that require installation.\r\n\r\n.. code:: bash\r\n\r\n    $ (sudo) pip install moviepy[doc]\r\n\r\nThe documentation can be generated and viewed via:\r\n\r\n.. code:: bash\r\n\r\n    $ python setup.py build_docs\r\n\r\nYou can pass additional arguments to the documentation build, such as clean build:\r\n\r\n.. code:: bash\r\n\r\n    $ python setup.py build_docs -E\r\n\r\nMore information is available from the `Sphinx`_ documentation.\r\n\r\nNew in 1.0.0: Progress bars and messages with Proglog\r\n-------------------------------------------------------\r\n\r\nNon-backwards-compatible changes were introduced in 1.0.0 to\r\nmanage progress bars and messages using\r\n`Proglog <https://github.com/Edinburgh-Genome-Foundry/Proglog>`_, which\r\nenables to display nice progress bars in the console as well as in\r\na Jupyter notebook or any user interface, like a website.\r\n\r\nTo display notebook friendly progress bars, first install IPyWidgets:\r\n\r\n.. code::\r\n\r\n    sudo pip install ipywidgets\r\n    sudo jupyter nbextension enable --py --sys-prefix widgetsnbextension\r\n\r\nThen at the beginning of your notebook enter:\r\n\r\n.. code:: python\r\n\r\n    import proglog\r\n    proglog.notebook()\r\n\r\nHave a look at the Proglog project page for more options.\r\n\r\nContribute\r\n----------\r\n\r\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!\r\n\r\nYou can also discuss the project on Reddit_ or Gitter_. These are preferred over GitHub issues for usage questions and examples.\r\n\r\n\r\nMaintainers\r\n-----------\r\n\r\n- Zulko_ (owner)\r\n- `@tburrows13`_\r\n- `@mgaitan`_\r\n- `@earney`_\r\n- `@mbeacom`_\r\n- `@overdrivr`_\r\n- `@keikoro`_\r\n- `@ryanfox`_\r\n- `@mondeja`_\r\n\r\n\r\n.. MoviePy links\r\n.. _gallery: https://zulko.github.io/moviepy/gallery.html\r\n.. _documentation: https://zulko.github.io/moviepy/\r\n.. _`download MoviePy`: https://github.com/Zulko/moviepy\r\n.. _`Label Wiki`: https://github.com/Zulko/moviepy/wiki/Label-Wiki\r\n.. _Contributing Guidelines: https://github.com/Zulko/moviepy/blob/master/CONTRIBUTING.md\r\n\r\n.. Websites, Platforms\r\n.. _Reddit: https://www.reddit.com/r/moviepy/\r\n.. _PyPI: https://pypi.python.org/pypi/moviepy\r\n.. _GitHub: https://github.com/Zulko/moviepy\r\n.. _Gitter: https://gitter.im/movie-py/Lobby\r\n\r\n.. Software, Tools, Libraries\r\n.. _Pillow: https://pillow.readthedocs.org/en/latest/\r\n.. _Scipy: https://www.scipy.org/\r\n.. _`OpenCV 2.4.6`: https://github.com/skvark/opencv-python\r\n.. _Pygame: https://www.pygame.org/download.shtml\r\n.. _Numpy: https://www.scipy.org/install.html\r\n.. _imageio: https://imageio.github.io/\r\n.. _`Scikit Image`: https://scikit-image.org/docs/stable/install.html\r\n.. _Decorator: https://pypi.python.org/pypi/decorator\r\n.. _proglog: https://github.com/Edinburgh-Genome-Foundry/Proglog\r\n.. _ffmpeg: https://www.ffmpeg.org/download.html\r\n.. _ImageMagick: https://www.imagemagick.org/script/index.php\r\n.. _`Matplotlib`: https://matplotlib.org/\r\n.. _`Sphinx`: https://www.sphinx-doc.org/en/master/setuptools.html\r\n\r\n.. People\r\n.. _Zulko: https://github.com/Zulko\r\n.. _`@mgaitan`: https://github.com/mgaitan\r\n.. _`@tburrows13`: https://github.com/tburrows13\r\n.. _`@earney`: https://github.com/earney\r\n.. _`@mbeacom`: https://github.com/mbeacom\r\n.. _`@overdrivr`: https://github.com/overdrivr\r\n.. _`@keikoro`: https://github.com/keikoro\r\n.. _`@ryanfox`: https://github.com/ryanfox\r\n.. _`@mondeja`: https://github.com/mondeja\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Video editing with Python, moviepy-fix-codec.",
    "version": "2.0.0",
    "project_urls": {
        "Homepage": "https://github.com/SherlockGougou/moviepy-fix-codec",
        "Source": "https://github.com/SherlockGougou/moviepy-fix-codec"
    },
    "split_keywords": [
        "video",
        "editing",
        "audio",
        "compositing",
        "ffmpeg"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3cca0178b65760d5a40373c662fd354de2a1a9f59c02eec527cfc777840a9a00",
                "md5": "09fdaa2bb0b86d3f6b96e153d6b2596d",
                "sha256": "294cb33b02eed3c66b8c22a6143c0d1d1b7735c99a1dd1054abea9de9292de75"
            },
            "downloads": -1,
            "filename": "moviepy_fix_codec-2.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "09fdaa2bb0b86d3f6b96e153d6b2596d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 128960,
            "upload_time": "2024-01-16T06:22:03",
            "upload_time_iso_8601": "2024-01-16T06:22:03.212337Z",
            "url": "https://files.pythonhosted.org/packages/3c/ca/0178b65760d5a40373c662fd354de2a1a9f59c02eec527cfc777840a9a00/moviepy_fix_codec-2.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f7c82e1ffdead3409d9ca6cf37ebf772adb3c2c749331fc93608aef1f38407f",
                "md5": "c9b029d8572e5c568bcd64bf79500cfa",
                "sha256": "85b95b2286df59aed548abefe6215c2c2bf1df940432935b2c9eeada0ab9d891"
            },
            "downloads": -1,
            "filename": "moviepy-fix-codec-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c9b029d8572e5c568bcd64bf79500cfa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 505192,
            "upload_time": "2024-01-16T06:22:06",
            "upload_time_iso_8601": "2024-01-16T06:22:06.030637Z",
            "url": "https://files.pythonhosted.org/packages/5f/7c/82e1ffdead3409d9ca6cf37ebf772adb3c2c749331fc93608aef1f38407f/moviepy-fix-codec-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-16 06:22:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SherlockGougou",
    "github_project": "moviepy-fix-codec",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "appveyor": true,
    "lcname": "moviepy-fix-codec"
}
        
Elapsed time: 0.17139s