module helpers.video_helper

Short summary

module ensae_teaching_cs.helpers.video_helper

video helpers

source on GitHub

Functions

function truncated documentation
make_video Creates a video from a list of images.

Documentation

video helpers

source on GitHub

ensae_teaching_cs.helpers.video_helper.make_video(images, outvid=None, fps=5, size=None, is_color=True, format='XVID')[source]

Creates a video from a list of images.

Paramètres:
  • outvid – output video
  • images – list of images to use in the video
  • fps – frames per second
  • size – size of each frame
  • is_color – color
  • format – see fourcc
Renvoie:

VideoWriter

The function relies on opencv. By default, the video will have the size of the first image. It will resize every image to this size before adding them to the video. The function does not use moviepy but it is a a recommended module to do that.

source on GitHub