<commit_before>MoviePy
========

MoviePy is Python module for script-based movie editing, which enables
basic operations (cuts, concatenations, title insertions) to be done
in a few lines. It can also be used for advanced compositing.

See the full documentation online `here`_.


A typical MoviePy script looks like that:

    from moviepy import *
    
    # Load myHolidays.mp4 and select the subclip 00:00:50 - 00:00:60
    clip = MovieClip("myHolidays.mp4").subclip(50,60)
    
    # Generate a text clip (many options available ! )
    txt_clip = TextClip("My Holidays 2013",fontsize=70,color='white')
    txt_clip = txt_clip.set_pos(('center','center')).set_duration(10)
    
    # Overlay the text clip above the first clip
    video = CompositeVideoClip(clip.size, [clip, txt_clip])
    
    # write the result to a file in any format
    video.write("myHolidays_edited.avi",fps=25, codec='DIVX')
	
Download And Installation
--------------------------

You can `download MoviePy`_ on Github. Just unzip everything in one folder, open a terminal and type ::
    
    sudo python setup.py install

** This should install the python packages listed below, but NOT OpenCV, which you will have to download manually for the moment. **

MoviePy is a very small program but it relies on many existing Python packages:

- `OpenCV 2.4.6`_ or more recent, to read and write movie files. 
- PyGame_ for video and sound previews
- `Scipy and Numpy`_, for image and sound manipulation
- `Scikit Image`_ for advanced image manipulation 
- The Decorator_ module for better code readability



MoviePy also needs some external software:

- ffmpeg_, for writing movies and many other useful operations.
- imageMagick_ for text generation, GIF support, and much more in the future.

All these are normally easy to install (on linux, they will certainly be in your repos).

.. _`here`: http://zulko.github.io/moviepy/`
.. _`download MoviePy`: https://github.com/Zulko/moviepy
.. _`OpenCV 2.4.6`: http://sourceforge.net/projects/opencvlibrary/files/
.. _Pygame: http://www.pygame.org/download.shtml
.. _`Scipy and Numpy`: http://www.scipy.org/install.html
.. _`Scikit Image`: http://scikit-image.org/download.html
.. _Decorator: https://pypi.python.org/pypi/decorator


.. _ffmpeg: http://www.ffmpeg.org/download.html 
.. _imageMagick: http://www.imagemagick.org/script/index.php<commit_msg>Again, I fix the readme... Come on, readme, get fixed !<commit_after>MoviePy
========

MoviePy is Python module for script-based movie editing, which enables
basic operations (cuts, concatenations, title insertions) to be done
in a few lines. It can also be used for advanced compositing.

See the full documentation online here_ .


A typical MoviePy script looks like that:

    from moviepy import *
    
    # Load myHolidays.mp4 and select the subclip 00:00:50 - 00:00:60
    clip = MovieClip("myHolidays.mp4").subclip(50,60)
    
    # Generate a text clip (many options available ! )
    txt_clip = TextClip("My Holidays 2013",fontsize=70,color='white')
    txt_clip = txt_clip.set_pos(('center','center')).set_duration(10)
    
    # Overlay the text clip above the first clip
    video = CompositeVideoClip(clip.size, [clip, txt_clip])
    
    # write the result to a file in any format
    video.write("myHolidays_edited.avi",fps=25, codec='DIVX')
	
Download And Installation
--------------------------

You can `download MoviePy`_ on Github. Just unzip everything in one folder, open a terminal and type ::
    
    sudo python setup.py install

** This should install the python packages listed below, but NOT OpenCV, which you will have to download manually for the moment. **

MoviePy is a very small program but it relies on many existing Python packages:

- `OpenCV 2.4.6`_ or more recent, to read and write movie files. 
- PyGame_ for video and sound previews
- `Scipy and Numpy`_, for image and sound manipulation
- `Scikit Image`_ for advanced image manipulation 
- The Decorator_ module for better code readability



MoviePy also needs some external software:

- ffmpeg_, for writing movies and many other useful operations.
- imageMagick_ for text generation, GIF support, and much more in the future.

All these are normally easy to install (on linux, they will certainly be in your repos).

.. _here: http://zulko.github.io/moviepy/
.. _`download MoviePy`: https://github.com/Zulko/moviepy
.. _`OpenCV 2.4.6`: http://sourceforge.net/projects/opencvlibrary/files/
.. _Pygame: http://www.pygame.org/download.shtml
.. _`Scipy and Numpy`: http://www.scipy.org/install.html
.. _`Scikit Image`: http://scikit-image.org/download.html
.. _Decorator: https://pypi.python.org/pypi/decorator


.. _ffmpeg: http://www.ffmpeg.org/download.html 
.. _imageMagick: http://www.imagemagick.org/script/index.php
{'fraction_non_alphanumeric': 0.11092577147623019, 'fraction_numerical': 0.014178482068390326, 'mean_word_length': 3.634782608695652, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4752904', 'n_tokens_mistral': 1546, 'n_tokens_neox': 1447, 'n_words': 523}