Kullachart

Results 5 comments of Kullachart

> I wonder if trying to stop the encoders while holding the `output.condition` is causing a deadlock. Because they might still be trying to flush out the last frames, and...

I think this issue relates to MJPEGEncoder's parent Class. v4l2_encoder.py. that the latest commit address the issue of preventing dropping final frames.

Thank you for your advice. Your code help me a lot. It solved the problems of RuntimeError and BrokenPipeError that I am researching for solution. I will learn more on...

I modified the code by your suggestion: ``` with lock: active_sessions -= 1 print("active_sessions", active_sessions) if active_sessions == 0: print("Stopping") picam2.stop() print("After stop") picam2.stop_encoder() print("After stop_encoder") def thread_func(abort): for _...

Today, I just upgraded the raspi-firmware to version (1:1.20231024+ds-1+rpt1, 1:1.20231024+ds-1+rpt2). After the upgrade, I reinstalled picamera2 v0.3.14 and conducted a test. Fortunately, the problem has been resolved. Your analysis appears...