Frames

class av.frame.Frame

Bases: object

Base class for audio and video frames.

See also AudioFrame and VideoFrame.

dts

The decoding timestamp in time_base units for this frame.

Type:int
index
is_corrupt

Is this frame corrupt?

Type:bool
planes

A tuple of AudioPlane or VideoPlane objects.

Type:tuple
pts

The presentation timestamp in time_base units for this frame.

This is the time at which the frame should be shown to the user.

Type:int
time

The presentation time in seconds for this frame.

This is the time at which the frame should be shown to the user.

Type:float
time_base

The unit of time (in fractional seconds) in which timestamps are expressed.

Type:fractions.Fraction