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)
Bases: object
Header facts about a video’s first video stream.
-
Parameters:
-
- fps (float | None) – Frame rate the container declares, or
Nonewhen 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;
0when the header offers nothing. - width (int) – Frame width in pixels (
0when unreported). - height (int) – Frame height in pixels (
0when unreported).
- fps (float | None) – Frame rate the container declares, or
fps
frame_bytes
property frame_bytes: int
Decoded size of one RGB frame, in bytes.
height
height: int
num_frames
num_frames: int
width
width: int