spdl.io.VideoDecoder

class VideoDecoder

Decode stream of video packets. See Decoder for the detail.

Attributes

flush

Flush the decoder and yield remaining frames

set_buffer_size

Set the buffer size for streaming decoding.

streaming_decode_packets

Streaming decode packets and yield frames

flush

Flush the decoder and yield remaining frames

set_buffer_size

Set the buffer size for streaming decoding. Providing 0 will disable the fixed-frame streaming, and the number of frames yielded can vary.

streaming_decode_packets

Streaming decode packets and yield frames