class documentation

class PicameraStreamOutput(Output): (source)

Constructor: PicameraStreamOutput(stream, encoder)

View In Hierarchy

An Output class that sends frames to a stream.

Method __init__ Create an output that puts frames in an MJPEGStream.
Method outputframe Add a frame to the stream's ringbuffer.
Instance Variable encoder Undocumented
Instance Variable stream Undocumented
def __init__(self, stream: MJPEGStreamWithTimestamp, encoder: MJPEGEncoder): (source)

Create an output that puts frames in an MJPEGStream.

Parameters
stream:MJPEGStreamWithTimestampThe labthings MJPEGStream to send frames to.
encoder:MJPEGEncoderThe encoder that is encoding the frames. This is needed to get the full timestamp.
def outputframe(self, frame: bytes, _keyframe: bool | None = True, timestamp: int | None = None, _packet: Any = None, _audio: bool = False): (source)

Add a frame to the stream's ringbuffer.

Undocumented

Undocumented