spdl.io.VideoCodec

class VideoCodec[source]

Codec metadata

Attributes

frame_rate

The frame rate of the video.

height

The height of the video.

name

The name of the codec

pix_fmt

The pixel format of the video.

sample_aspect_ratio

The aspect ratio of a single pixel.

time_base

The internal unit of time used for timestamp.

width

The width of the video.

property frame_rate: tuple[int, int][source]

The frame rate of the video.

The value is expressed as a fraction. (numerator, denominator).

property height: int[source]

The height of the video.

property name: str[source]

The name of the codec

property pix_fmt: str[source]

The pixel format of the video.

property sample_aspect_ratio: tuple[int, int][source]

The aspect ratio of a single pixel.

The value is expressed as a fraction. (width, height).

property time_base: tuple[int, int][source]

The internal unit of time used for timestamp.

The value is expressed as a fraction. (numerator, denominator).

property width: int[source]

The width of the video.