Skip to main content

class  pixeltable.functions.StreamMetadata

Metadata for a stream within a media container.

attr  average_rate

Average frame rate in FPS (frames per second). Present only for video streams.

attr  base_rate

Base (constant) frame rate in FPS. Present only for video streams.

attr  codec_context

Codec information for this stream.

attr  duration

Stream duration in time_base units, or None if unknown.

attr  duration_seconds

Stream duration in seconds, computed from duration and time_base.

attr  frames

Number of frames in the stream (may be 0 if unknown).

attr  guessed_rate

Guessed frame rate in FPS. Present only for video streams.

attr  height

Frame height in pixels. Present only for video streams.

attr  metadata

Additional stream-specific metadata tags (e.g. language, title).

attr  time_base

Time base of the stream as a float (seconds per tick), or None if unknown.

attr  type

Stream type: typically 'audio' or 'video'. Other stream types (e.g. subtitles) will have a StreamMetadata entry, but with no metadata other than type.

attr  width

Frame width in pixels. Present only for video streams.
Last modified on June 24, 2026