Skip to content

Commit

Permalink
Readme syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulko authored Aug 19, 2021
1 parent de48164 commit 576fb1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ 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:

.. code:: python
from moviepy import *
video = VideoFileClip("myHolidays.mp4").subclip(50,60)
Expand All @@ -40,7 +41,7 @@ In this example we open a video file, select the subclip between t=50s and t=60s
result = CompositeVideoClip([video, txt_clip]) # Overlay text on video
result.write_videofile("myHolidays_edited.webm",fps=25) # Many options...
*Note:* This example uses the new 2.x API, for MoviePy 1.0.3, currently on PyPI, see [this snippet](https://gist.github.com/Zulko/57e6e50debef1834fb9b60700b1b9f99).
*Note:* This example uses the new 2.x API, for MoviePy 1.0.3, currently on PyPI, see `this snippet <https://gist.github.com/Zulko/57e6e50debef1834fb9b60700b1b9f99>`_.


Maintainers wanted!
Expand Down

0 comments on commit 576fb1a

Please sign in to comment.