IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

VideoStreamInfo

VideoStreamInfo​

class max.pipelines.context.VideoStreamInfo(fps, num_frames, width, height)

source

Bases: object

Header facts about a video’s first video stream.

Parameters:

  • fps (float | None) – Frame rate the container declares, or None when it declares none. Callers that need a number apply their own fallback.
  • num_frames (int) – Number of decodable frames. Best-effort from the header until a decode corrects it; 0 when the header offers nothing.
  • width (int) – Frame width in pixels (0 when unreported).
  • height (int) – Frame height in pixels (0 when unreported).

fps​

fps: float | None

source

frame_bytes​

property frame_bytes: int

source

Decoded size of one RGB frame, in bytes.

height​

height: int

source

num_frames​

num_frames: int

source

width​

width: int

source