monkeymademe / picamera2-WebUI

This is a WebUI for the Picamera2 Library for the Raspberry Pi
MIT License
136 stars 16 forks source link

Cannot retrive video feed with Pi 3B+ and HQ Camera #80

Open dariotarantini opened 3 weeks ago

dariotarantini commented 3 weeks ago

I cant get video feed when using HQ camera in mode 4056x3040. Web page refreshing never ends, seems there is something broken with backend. First two modes works fine.

Hardware : Raspberry PI 3B+, HQ Camera. I also tested RPI zero 2 with same results. image image

monkeymademe commented 2 weeks ago

I see that there is an issue but unfortunately can't say what or how to fix it right now.. I will poke around, I am on it ;-P

monkeymademe commented 2 weeks ago

Yeah seems there is a memory allocation issue when running on older pi's... If you start from the bottom and work your way up the resolutions the pi4 can do a little better but the issue persists when you get to the biggest resolution.

Unfortunately looks like a picamera2 issue and I am still investigating maybe... Maybe allowing changes to the buffers might help I am not sure for now I would recommend upgrading to a pi5 (the 2bg model has just released) or just stick to the lower resolution for the time being

I created a feature request to deal with explaining this in the frontend https://github.com/monkeymademe/picamera2-WebUI/issues/81

Sorry this is maybe not the answer you where looking for

dariotarantini commented 2 weeks ago

Hi! Thank you actually, I own a rpi 5 so I can just try it there! i will let you know in 7/8 h. im doing a bit of astrophotography so higher resolutions are better for my case. I guess pi3/pi0v2 is just not enough. Also, is there any way to get "the feed" in a lower res and take pictures in full res? instead of sending everything in full resolution

monkeymademe commented 2 weeks ago

I like the cut of your jib sir!

image

To answer your question... yes and no its on my todo... there is a way to view different feeds but it does not mean the higher resolution feed is not running just means you have a choice between a RAW feed a Main feed (the one you will see in the UI) and a lores feed (if enabled) its a tricky juggling act.

There is also a function for switching config so video config (which is what UI is using) has one set of settings and still config at the moment the UI is only using video and the still is saved from the feed. 'switch_mode_and_capture_image' function in picamera2 should switch but last I used that the feed did not recover so it was not used. Its because the feeds not connected to actual video config so when you switch mode the feed bombs out in an error because the still config is being used... if that makes sense.. or if I got that right!