Video editing with Python
erased content in positioning
Zulkoef85be4e9953
diff --git a/README.rst b/README.rstindex a6581758..2889eb86 100644--- a/README.rst+++ b/README.rst@@ -35,11 +35,11 @@ DependenciesMoviePy cannot run without these dependencies:-- The software ffmpeg_ is needed for writing, reading, converting the sound and the video. Normally any version of FFMPEG should work but it is recommended to use a recent version for better results.-- `Numpy`_ is needed for image and sound manipulation-- The Decorator_ module is used in the MoviePy code for better code readability+- The software ffmpeg_ is needed for writing, reading, converting the sound and the video.+- `Numpy`_ is needed for image and sound manipulation.+- The Decorator_ module is used in the MoviePy code for better code readability.-These are generally easy to install. For ffmpeg, you can either install it or save the binary files in any folder and specify the path to these folders before installing MoviePy (see `Manual installation`_).+**Make sure to use a recent version of ffmpeg**. You can either install it or save the binary files in any folder and specify the path to these folders before installing MoviePy (for the latter, see `Manual installation`_ below).Installation with PIPdiff --git a/docs/index.rst b/docs/index.rstindex 913fa5c7..12e699b2 100644--- a/docs/index.rst+++ b/docs/index.rst@@ -1,7 +1,7 @@MoviePy=======-MoviePy is a 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 and special effects. Let me put together the clips in my demonstration folder (you will find the code for most clips in the :ref:`examples`): ::+MoviePy is a Python module for script-based movie editing, which enables basic operations (cuts, concatenations, title insertions) to be done in a few lines, but can also be used for advanced compositing and special effects. Let me put together the clips in my demonstration folder (you will find the code for most clips in the :ref:`examples`): ::import osfrom moviepy.editor import *@@ -21,9 +21,22 @@ MoviePy is a Python module for script-based movie editing, which enables basic otype="application/x-shockwave-flash" allowscriptaccess="always"allowfullscreen="true" width="550" height="450"></embed></object></center>++You can also do animated GIFs with MoviePy ([examples](http://zulko.github.io/blog/2014/01/23/making-animated-gifs-from-video-files-with-python/)).-How it works--------------+User's Guide+--------------++.. toctree::+ :maxdepth: 1++ install+ crash_course/crash_course+ examples/examples+ ref/ref++How it works, in a nutshell+-----------------------------MoviePy uses mainly ``ffmpeg`` for reading/writing multimedia files, and Numpy/Scipy for image and sound manipulations.@@ -34,16 +47,7 @@ MoviePy uses mainly ``ffmpeg`` for reading/writing multimedia files, and Numpy/SYou can do pretty much any effect you want with MoviePy, but it is just a framework, and in many cases you will need to code a little (or find someone who will !) to come to your goal.-User's Guide----------------.. toctree::- :maxdepth: 1-- install- crash_course/crash_course- examples/examples- ref/refContribute !-------------diff --git a/docs/install.rst b/docs/install.rstindex 00194e39..149ef155 100644--- a/docs/install.rst+++ b/docs/install.rst@@ -7,24 +7,21 @@ Core dependenciesMoviePy cannot run without these dependencies:-- The software ffmpeg_ is needed for writing, reading, converting the sound and the video. Normally any version of FFMPEG should work but it is recommended to use a recent version for better results.+- The software ffmpeg_ is needed for writing, reading, converting the sound and the video.- `Numpy`_ is needed for image and sound manipulation- The Decorator_ module is used in the MoviePy code for better code readability-Numpy and Decorator will be automatically installed during MoviePy's installation if not present on your computer. As for ffmpeg, you can either install it or save the binary files in any folder and specify the path to these folders before installing MoviePy (see manual_install_).+**Make sure to use a recent version of ffmpeg**. You can either install it or save the binary files in any folder and specify the path to these folders before installing MoviePy (for the latter, see `Manual installation`_ below)... _pip_install:Installation with PIP-------------------------On Linux, if you have pip installed, just type this in a terminal ::+If you have ``pip`` installed, just type this in a terminal ::sudo pip install moviepy-Maybe it works with easy_install too, but it hasn't been fully tested yet.--.. _manual_install:Manual installation@@ -36,7 +33,7 @@ Then just unzip everything in one folder, open a terminal and type ::sudo python setup.py install-Before doing that, you should make sure that MoviePy can locate ffmpeg on your computer. To do that, run the script ``moviepy/conf.py``. It it fails, then you must enter the path in the first line of this file ::+Before doing that, you should make sure that MoviePy can locate ffmpeg on your computer. To do that, run the script ``moviepy/conf.py``. It it fails, then you must enter the path to the FFMPEG executable in the first line of this file ::FFMPEG_BINARY = path/to/your/ffmpeg@@ -51,18 +48,19 @@ You are not obliged to install these but for many uses MoviePy will scream at yoThere are many packages for image manipulation/processing in python. Most effects are coded such that none of these packages are needed, or such that having at least one of these packages is sufficient.-- Scipy is needed for many advanced functionalities (tracking, segmenting, etc.)+- Scipy is needed for many advanced functionalities (tracking, segmenting, etc.), and can be used for resizing video clips if PIL and OpenCV aren't installed on your computer.- `Scikit Image`_ may be needed for some advanced image manipulation.- The Python Imaging Library is not used yet (I don't like the copyright) but it is coming.- `OpenCV 2.4.6`_ (which provides the python package ``cv2``) or more recent may be needed for some advanced image manipulation. See below for the installation of OpenCV.-If you are on linux, these will surely be in your repos.+If you are on linux, these softwares will surely be in your repos.Installing OpenCV 2.4.6~~~~~~~~~~~~~~~~~~~~~~~~~-OpenCV is very optional, its installation is not always simple and I found it to be unstable, be warned. The installation seems easy for Windows. On linux, here is what I found on the Internet:+OpenCV is very optional, its installation is not always simple and I found it to be unstable, be warned !+The installation seems easy for Windows. On linux, here is what I found on the Internet:- Remove any other version of OpenCV if you installed it through a package manager.- Unzip the source code of `OpenCV 2.4.6`_ in some folder. open a terminal in this folder.diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.pyindex 7a0fa8fe..9e398d83 100644--- a/moviepy/video/VideoClip.py+++ b/moviepy/video/VideoClip.py@@ -838,7 +838,8 @@ class TextClip(ImageClip):proc.wait()if proc.returncode:print ("Error: problem in the generation of the text file"+- "by ImageMagick. Certainly wrong arguments in TextClip")+ "by ImageMagick. Certainly wrong arguments in TextClip")+ImageClip.__init__(self, tempfile, transparent=transparent)self.txt = txtself.color = colordiff --git a/moviepy/video/compositing/positioning.py b/moviepy/video/compositing/positioning.pyindex 572ea86a..910e48b5 100644--- a/moviepy/video/compositing/positioning.py+++ b/moviepy/video/compositing/positioning.py@@ -2,7 +2,4 @@This module provides classes that make positioning easy"""--class ClipPosition:--+# class ClipPosition:diff --git a/setup.py b/setup.pyindex 0043b617..7d084198 100644--- a/setup.py+++ b/setup.py@@ -6,7 +6,7 @@ ez_setup.use_setuptools()from setuptools import setup, find_packagessetup(name='moviepy',- version='0.2.1.6.7',+ version='0.2.1.6.8',author='Zulko 2013',description='Module for script-based video editing',long_description=open('README.rst').read(),