Skip to content

Video editing with Python

Merge pull request #254 from tcyrus/patch-1

Gloin1313fb023fb6123b
diff --cc README.rst
index 347b9e32,0fc62ff7..1db9411a
--- a/README.rst
+++ b/README.rst
@@@ -12,12 -12,14 +12,14 @@@ MoviePy can read and write all the mos
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: ::
+ 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.editor 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')
.set_position('center')