moviepy.video.io.ImageSequenceClip.ImageSequenceClip#
- class moviepy.video.io.ImageSequenceClip.ImageSequenceClip(sequence, fps=None, durations=None, with_mask=True, is_mask=False, load_images=False)[source]#
A VideoClip made from a series of images.
- Parameters:
sequence --
Can be one of these:
The name of a folder (containing only pictures). The pictures will be considered in alphanumerical order.
A list of names of image files. In this case you can choose to load the pictures in memory pictures
A list of Numpy arrays representing images. In this last case, masks are not supported currently.
fps -- Number of picture frames to read per second. Instead, you can provide the duration of each image with durations (see below)
durations -- List of the duration of each picture.
with_mask -- Should the alpha layer of PNG images be considered as a mask ?
is_mask -- Will this sequence of pictures be used as an animated mask.
load_images -- Specify that all images should be loaded into the RAM. This is only interesting if you have a small number of images that will be used more than once.