Skip to content

Instantly share code, notes, and snippets.

@ericgitonga
Last active July 1, 2021 11:29
Show Gist options
  • Save ericgitonga/9802f2624e35b7143c17cc03b7b30f60 to your computer and use it in GitHub Desktop.
Save ericgitonga/9802f2624e35b7143c17cc03b7b30f60 to your computer and use it in GitHub Desktop.
import moviepy.editor as mpy
clip = mpy.VideoFileClip("https://eric-gitonga-articles.s3.eu-west-2.amazonaws.com/videos/sample.mp4")
clip_duration = clip.duration + 1
mpy.ipython_display(clip, width=500, maxduration=clip_duration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment