Skip to content

Video editing with Python

oops commit: corrected moviepy.all in some docs

Zulko93b88883d42e
diff --git a/README.rst b/README.rst
index 9e505922..09a56cda 100644
--- a/README.rst
+++ b/README.rst
@@ -10,10 +10,10 @@ See the full documentation and demo videos here_ .
A typical MoviePy script looks like that: ::
- from moviepy import *
+ from moviepy.all import *
# Load myHolidays.mp4 and select the subclip 00:00:50 - 00:00:60
- clip =VideoFileClip("myHolidays.mp4").subclip(50,60)
+ clip = VideoFileClip("myHolidays.mp4").subclip(50,60)
# Generate a text clip (many options available ! )
txt_clip = TextClip("My Holidays 2013",fontsize=70,color='white')
diff --git a/docs/crash_course/crash_course.rst b/docs/crash_course/crash_course.rst
index 64fa6371..174b483e 100644
--- a/docs/crash_course/crash_course.rst
+++ b/docs/crash_course/crash_course.rst
@@ -9,7 +9,7 @@ Example code
In a typical script, you load or generate some clips, modify them, combine them, and write the result to a video file.
So let us load a movie of my last holidays, lower the volume, add a title in the center of the video for the ten first seconds, and write the result in a file: ::
- from moviepy import *
+ from moviepy.all import *
# Load myHolidays.mp4 and select the subclip 00:00:50 - 00:00:60
clip = VideoFileClip("myHolidays.mp4").subclip(50,60)
@@ -185,9 +185,9 @@ but this is not easy to read. To have a clearer syntax you can use ``clip.fx``:
fx( effect_2, args2).\
fx( effect_3, args3)
-Much better ! There are already many effects implemented in the modules ``moviepy.video.fx`` and ``moviepy.audio.fx``. The fx methods in these modules are automatically applied to the sound and the mask of the clip if it is relevant, so that you don't have to worry about modifying these. For practicality, when you use ``from moviepy import *``, these two modules are loaded as ``vfx`` and ``afx``, so you may write something like ::
+Much better ! There are already many effects implemented in the modules ``moviepy.video.fx`` and ``moviepy.audio.fx``. The fx methods in these modules are automatically applied to the sound and the mask of the clip if it is relevant, so that you don't have to worry about modifying these. For practicality, when you use ``from moviepy import.all *``, these two modules are loaded as ``vfx`` and ``afx``, so you may write something like ::
- from moviepy import *
+ from moviepy import.all *
clip = VideoFileClip("myvideo.avi").\
fx( vfx.resize, width=460).\ # resize (keep aspect ratio)
fx( vfx.speedx, 2).\ # double speed
diff --git a/docs/index.rst b/docs/index.rst
index 905607f5..fb39f440 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -4,7 +4,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: ::
import os
- from moviepy import *
+ from moviepy.all import *
files = sorted( os.listdir("clips/") )
clips = [ VideoFileClip('clips/%s'%f) for f in files]
video = concatenate(clips, transition = VideoFileClip("logo.avi"))