spdl.io.streaming_decode_packets¶
- streaming_decode_packets(packets: VideoPackets, num_frames: int, decode_config: DecodeConfig | None = None, filter_desc: str | None = '__PLACEHOLDER__') Iterator[VideoFrames] [source]¶
Decode the video packets chunk by chunk.
- Parameters:
packets – Input packets.
num_frames – Number of frames to decode at a time.
decode_config – Optional: Custom decoding config. Optional: Custom decode config. See
decode_config()
,filter_desc – Optional: Custom filter description. See
decode_packets()
for the detail.
- Yields:
VideoFrames object containing at most
num_frames
frames.