delta.utils.write_video#

delta.utils.write_video(images, filename, crf=20, verbose=1)[source]#

Write images stack to video file with h264 compression.

Parameters
images4D numpy array

Stack of RGB images to write to video file.

filenamestr or Path

File name to write video to. (Overwritten if exists)

crfint, optional

Compression rate. ‘Sane’ values are 17-28. See https://trac.ffmpeg.org/wiki/Encode/H.264 The default is 20.

verboseint, optional

Verbosity of console output. The default is 1.

Returns
None.