API Reference >> skvideo.io.FFmpegWriter
Fork me on GitHub

skvideo.io.FFmpegWriter

class skvideo.io.FFmpegWriter(*args, **kwargs)[source]

Writes frames using FFmpeg

Using FFmpeg as a backend, this class provides sane initializations for the default case.

Methods

close() Closes the video and terminates FFmpeg process
writeFrame(im) Sends ndarray frames to FFmpeg
__init__(*args, **kwargs)[source]

Prepares parameters

Does not instantiate the an FFmpeg subprocess, but simply prepares the required parameters.

Parameters:

filename : string

Video file path for writing

inputdict : dict

Input dictionary parameters, i.e. how to interpret the data coming from python.

outputdict : dict

Output dictionary parameters, i.e. how to encode the data when writing to file.

Returns:

none :

close()

Closes the video and terminates FFmpeg process

writeFrame(im)

Sends ndarray frames to FFmpeg