Skip to content

VideoReader

multimedia · scripts/multimedia/VideoReader.m

VIDEOREADER  Read frames of a video file.

  v = VideoReader (filename)
  while hasFrame (v), f = readFrame (v); end
  f = read (v, k)            % frame k, or read (v, [a b]) for a range

  Uncompressed 24-bit AVI (the file VideoWriter writes, including the
  'Motion JPEG AVI', 'Uncompressed AVI' and 'Archival' profiles) is read
  in-process.  No ffmpeg or ffprobe is required for that format, and
  neither tool is shipped with Nexus.

  Any other container or codec is decoded with ffprobe and ffmpeg when
  those programs are on PATH.  If they are not, the constructor errors
  MATLAB:audiovideo:VideoReader:InitializationFailed instead of returning
  an object with default properties.