moviepy.video.io.ffplay_previewer.FFPLAY_VideoPreviewer#

class moviepy.video.io.ffplay_previewer.FFPLAY_VideoPreviewer(size, fps, pixel_format)[source]#

A class for FFPLAY-based video preview.

Parameters:
  • size (tuple or list) -- Size of the output video in pixels (width, height).

  • fps (int) -- Frames per second in the output video file.

  • pixel_format (str) -- Pixel format for the output video file, rgb24 for normal video, rgba if video with mask.

close()[source]#

Closes the writer, terminating the subprocess if is still alive.

show_frame(img_array)[source]#

Writes one frame in the file.