spdl.io.VideoEncoder¶
- class VideoEncoder¶
Video encoder.
Returned by
Muxer.add_encode_stream().Attributes
Encode video frames.
Notify the encoder of the end of the stream and fetch the buffered packets.
- encode¶
Encode video frames.
- Parameters:
frames – Audio frames. Use
create_reference_video_frame()to convert tensor/array objects into frames.- Returns:
Packets objects if encoder generates one.
- flush¶
Notify the encoder of the end of the stream and fetch the buffered packets.