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

skvideo.io.vwrite

skvideo.io.vwrite(fname, videodata, inputdict=None, outputdict=None, backend='ffmpeg', verbosity=0, audiosrc=None)[source]

Save a video to file entirely from memory.

Parameters:
fnamestring

Video file name.

videodatandarray

ndarray of dimension (T, M, N, C), (T, M, N), (M, N, C), or (M, N), where T is the number of frames, M is the height, N is width, and C is number of channels.

inputdictdict

Input dictionary parameters, i.e. how to interpret the piped datastream coming from python to the subprocess.

outputdictdict

Output dictionary parameters, i.e. how to encode the data to disk.

backendstring

Program to use for handling video data. Only ‘ffmpeg’ and ‘libav’ are supported at this time.

verbosityint

Setting to 0 (default) disables all debugging output. Setting to 1 enables all debugging output. Useful to see if the backend is behaving properly.

audiosrcstring, optional

Path to a media file whose audio track should be muxed into the output, allowing audio to be preserved across a vread / vwrite round-trip (issues #173, #176). FFmpeg backend only.

Returns:
none