components.io.videofilereader

class VideoFileReader(config={}, **kwds)[source]

Bases: Component

Read conventional video files (mp4, flv, AVI, etc.).

VideoFileReader has been superseded by VideoFileReader2.

This component uses FFmpeg to read video from a wide variety of formats. Make sure you have installed FFmpeg before attempting to use VideoFileReader.

The zperiod config item can be used to adjust the repeat period so it is an integer multiple of a chosen number, e.g. 4 frames for a PAL encoded sequence. It has no effect if looping is off.

Config

path

str

Path name of file to be read.

looping

str

Whether to play continuously. Can be 'off' or 'repeat'.

type

str

Output data type. Can be 'RGB' or 'Y'.

16bit

bool

Attempt to get greater precision than normal 8-bit range.

noaudit

bool

Don’t output file’s “audit trail” metadata.

zperiod

int

Adjust repeat period to an integer multiple of zperiod.

file_reader()[source]

Generator process to read file


Comments or questions? Please email jim@jim-easterbrook.me.uk.