Frame
- class mcai_worker_sdk.Frame
Class representing a video frame.
Note
This class is provided for documentation purpose as frames are given to the
process_frames()method. It shouldn’t be used directly in the worker.- channels
Number of audio channels, only used for audio.
- coded_picture_number
Picture number in bitstream order.
- data
Sequence of bytes representing the image.
- display_picture_number
Picture number in bitstream order.
- format
Format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames, enum AVSampleFormat for audio).
- height
Height of the frame.
- index
Index of the frame.
- interlaced_frame
The content of the picture is interlaced.
- key_frame
1 -> keyframe, 0-> not.
- line_size
Line size of the frame.
- name
Name of the frame. Can be null.
- nb_samples
Number of samples of the frame.
- pkt_size
Size of the corresponding packet containing the compressed frame.
- pts
Presentation timestamp in time_base units (time when frame should be shown to user).
- sample_rate
Sample rate of the audio data.
- top_field_first
If the content is interlaced, is top field displayed first.
- width
Width of the frame.