FFMPEG_BINARY = 'auto-detect'
VideoClip is the base class for all the other video clips in MoviePy. If all you want is to edit video files, you will never need it. This class is practical when you want to make animations from frames that are generated by another library. All you need is to define a function
make_frame(t) which returns a HxWx3 numpy array (of 8-bits integers) representing the frame at time t. Here is an example with the graphics library
This is a clip made from a series of images, you call it with:
images_list can be either a list of image names (that will be played) in that order, a folder name (at which case all the image files in the folder will be played in alphanumerical order), or a list of frames (Numpy arrays), obtained for instance from other clips.
Generating a TextClip requires to have ImageMagick installed and (for windows users) linked to MoviePy
Sometimes it is impossible for MoviePy to guess the
duration attribute of the clip (keep in mind that some clips, like ImageClips displaying a picture, have a priori an infinite duration). Then, the
durationmust be set manually with
To write your video as an animated GIF, use
You can write a frame to an image file with