Skip to content

Video editing with Python

some tab fixes, and added link to my GIFs blog in README

Zulko9d8e7c630b86
diff --git a/README.rst b/README.rst
index 2889eb86..e989c46c 100644
--- a/README.rst
+++ b/README.rst
@@ -5,7 +5,7 @@ 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.
-See the full documentation and demo videos here_ .
+See the full documentation and demo videos here_, or have a look at this page of `animated GIFs made with MoviePy <http://zulko.github.io/blog/2014/01/23/making-animated-gifs-from-video-files-with-python/>`_.
A typical MoviePy script looks like that: ::
diff --git a/docs/index.rst b/docs/index.rst
index 12e699b2..944e37c0 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -52,7 +52,7 @@ You can do pretty much any effect you want with MoviePy, but it is just a framew
Contribute !
-------------
-MoviePy is a (still experimental) open source software written by Zulko_ and released under the MIT licence. Everyone is very welcome to help improve the project, fork it, blog on it, share code for new effects, etc... The more, the merrier !
+MoviePy is a (still experimental) open source software written by Zulko_ and released on Github_ and PyPI_ under the MIT licence. Everyone is very welcome to help improve the project, fork it, blog on it, share code for new effects, etc... The more, the merrier !
For troubleshooting and bug reports, the best for now is to ask on Stackoverflow_ (it will advertize for the project :) ) or on the Github project page.
@@ -71,7 +71,8 @@ Indices and tables
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
alt="Fork me on GitHub"></a>
-
+.. _PyPI: https://pypi.python.org/pypi/moviepy
+.. _Github: https://github.com/Zulko/moviepy
.. _Zulko: https://github.com/Zulko/
.. _Stackoverflow: http://stackoverflow.com/
diff --git a/moviepy/video/fx/blackwhite.py b/moviepy/video/fx/blackwhite.py
index e24a38b7..95c54e12 100644
--- a/moviepy/video/fx/blackwhite.py
+++ b/moviepy/video/fx/blackwhite.py
@@ -1,9 +1,11 @@
import numpy as np
def blackwhite(clip, RGB = [1,1,1], preserve_luminosity=True):
- """ Desaturates the picture, makes it black and white.
- method = sum (TODO: others) """
- if RGB == 'CRT_phosphor':
- RGB = [0.2125, 0.7154, 0.0721]
-
- return clip.fl_image(lambda im: np.dstack(3*[im.sum(axis=2)/3]) )
+ """ Desaturates the picture, makes it black and white.
+ If RBG is 'CRT_phosphor' a special set of values is used.
+ preserve_luminosity does nothing right now.
+ method = sum (TODO: others) """
+ if RGB == 'CRT_phosphor':
+ RGB = [0.2125, 0.7154, 0.0721]
+
+ return clip.fl_image(lambda im: np.dstack(3*[im.sum(axis=2)/3]) )
diff --git a/moviepy/video/fx/blink.py b/moviepy/video/fx/blink.py
index 9919f3ce..7fce9744 100644
--- a/moviepy/video/fx/blink.py
+++ b/moviepy/video/fx/blink.py
@@ -1,12 +1,12 @@
def blink(clip, d_on, d_off):
- """
- Makes the clip blink. At each blink it will be displayed ``d_on``
- seconds and disappear ``d_off`` seconds. Will only work in
- composite clips.
- """
- newclip = copy(clip)
- if newclip.mask is None:
- newclip = newclip.with_mask()
- D = d_on + d_off
- newclip.mask = newclip.mask.fl( lambda gf,t: gf(t)*((t % D) < d_on))
- return newclip
+ """
+ Makes the clip blink. At each blink it will be displayed ``d_on``
+ seconds and disappear ``d_off`` seconds. Will only work in
+ composite clips.
+ """
+ newclip = copy(clip)
+ if newclip.mask is None:
+ newclip = newclip.with_mask()
+ D = d_on + d_off
+ newclip.mask = newclip.mask.fl( lambda gf,t: gf(t)*((t % D) < d_on))
+ return newclip
diff --git a/moviepy/video/fx/colorx.py b/moviepy/video/fx/colorx.py
index d402e63c..4d6adb4f 100644
--- a/moviepy/video/fx/colorx.py
+++ b/moviepy/video/fx/colorx.py
@@ -1,9 +1,9 @@
import numpy as np
def colorx(clip, factor):
- """ multiplies the clip's colors by the given factor, can be used
- to decrease or increase the clip's brightness (is that the
- reight word ?)
- """
- return clip.fl_image( lambda pic: np.minimum(255,(factor*pic)).
- astype('uint8'))
+ """ multiplies the clip's colors by the given factor, can be used
+ to decrease or increase the clip's brightness (is that the
+ reight word ?)
+ """
+ return clip.fl_image( lambda pic: np.minimum(255,(factor*pic)).
+ astype('uint8'))
diff --git a/setup.py b/setup.py
index 7d084198..a7302407 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ ez_setup.use_setuptools()
from setuptools import setup, find_packages
setup(name='moviepy',
- version='0.2.1.6.8',
+ version='0.2.1.6.9',
author='Zulko 2013',
description='Module for script-based video editing',
long_description=open('README.rst').read(),