class documentation

class PicameraStreamOutput(Output): (source)

Constructor: PicameraStreamOutput(stream, portal)

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 portal Undocumented
Instance Variable stream Undocumented
def __init__(self, stream: lt.outputs.MJPEGStream, portal: lt.deps.BlockingPortal): (source)

Create an output that puts frames in an MJPEGStream.

We need to pass the stream object, and also the blocking portal, because new frame notifications happen in the anyio event loop and frames are sent from a thread. The blocking portal enables thread-to-async communication.

def outputframe(self, frame, _keyframe=True, _timestamp=None, _packet=None, _audio=False): (source)

Add a frame to the stream's ringbuffer.

Undocumented

Undocumented