skvideo.io.vreader
skvideo.io.vreader¶Load a video through the use of a generator.
Video file name, e.g. bickbuckbunny.mp4
Set the source video height used for decoding. Useful for raw inputs when video header does not exist.
Set the source video width used for decoding. Useful for raw inputs when video header does not exist.
Only read the first num_frames number of frames from video. Setting num_frames to small numbers can significantly speed up video loading times.
If true, only load the luminance channel of the input video.
Input dictionary parameters, i.e. how to interpret the input file.
Output dictionary parameters, i.e. how to encode the data between backend and python.
Program to use for handling video data. Only ‘ffmpeg’ and ‘libav’ are supported at this time.
Setting to 0 (default) disables all debugging output. Setting to 1 enables all debugging output. Useful to see if the backend is behaving properly.
Skip the first start_frame frames before reading (issue #166).
Uses FFmpeg’s fast keyframe seek; the first frame returned may
snap to the nearest keyframe at or before the requested position.
returns ndarrays, shape (M, N, C) where M is frame height, N is frame width, and C is number of channels per pixel
Passed to the given plugin.