Frames¶
- class av.frame.Frame¶
 Bases:
objectBase class for audio and video frames.
See also
AudioFrameandVideoFrame.- dts¶
 The decoding timestamp copied from the
Packetthat triggered returning this frame intime_baseunits.(if frame threading isn’t used) This is also the Presentation time of this frame calculated from only
Packet.dtsvalues without pts values.- Type:
 int | None
- key_frame¶
 Is this frame a key frame?
Wraps AVFrame.key_frame.
- make_writable()¶
 Ensures that the frame data is writable. Copy the data to new buffer if it is not. This is a wrapper around av_frame_make_writable.
- opaque¶
 
- pts¶
 The presentation timestamp in
time_baseunits for this frame.This is the time at which the frame should be shown to the user.
- Type:
 int | None
- side_data¶
 
- 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 | None
- time_base¶
 The unit of time (in fractional seconds) in which timestamps are expressed.
- Type:
 fractions.Fraction | None