VideoMaker#

class brainrender.video.VideoMaker(scene, save_fld, name, fmt='mp4', size='1620x1050', make_frame_func=None)[source]#

Bases: object

Methods

compress(temp_name)

Compress the created video with ffmpeg and remove the uncompressed copy.

generate_frames(fps, duration, video, ...)

Loop to generate frames.

make_video(**kwargs)

compress(temp_name)[source]#

Compress the created video with ffmpeg and remove the uncompressed copy.

Parameters:

temp_name (str) – Path (without extension) of the temporary uncompressed video.

Return type:

None

generate_frames(fps, duration, video, resetcam, *args, **kwargs)[source]#

Loop to generate frames.

Parameters:
  • fps (int) – Frame rate.

  • duration (float) – Video duration in seconds.

  • video (Video) – vedo.Video instance used to create the video.

  • resetcam (bool) – If True the camera is reset.

Return type:

None