aaronwmorris / indi-allsky

Software to manage a Linux-based All Sky Camera.
GNU General Public License v3.0
188 stars 31 forks source link

multi camera support with raspi5 #1336

Open gmke opened 1 week ago

gmke commented 1 week ago

Hi Aaron, I started to play with my raspi5 and its two camera interfaces. I connected one RPI HQ camera and an ov5647 based camera. Both cameras show up in the selector below the left up logo. Changing the camera there changes nothing in the display. Going into config/Camera, I can change the interface to libcamera OV5647, but after a save/reload, the HQ(imx477) camera still gets displayed. The only way to use the ov5647 camera was to add --camera 1 to the libcamera extra options. I guess I'm to dump to configure it correctly or some multicam sw features are buggy or missing. Would be nice to operate two cameras with one system, not only switchable but also in parallel. Killer feature would be to stitch the two pics together for an allsky panorama using two super widefield lenses instead of a circle fisheye lens :-)

CS, Markus

aaronwmorris commented 1 week ago

I will work on a camera port selector for libcamera.

As for multi-camera support. I considered multi-camera support early in the development, but I kind of abandoned the idea due to the added complexity. I may still focus some effort on running two instances of indi-allsky on the same device, which could still be viewed through the same web interface. I completely agree that it would be really cool, but I do not want to sacrifice stability for a rarely used feature.

gmke commented 1 week ago

thank you Aaron. Making the camera selection actually work would be really nice. You could put the multi-camera support into a separate application managing multiple instances of indi-allsky (maybe containerized) by adding a kind of remote control API.

CS, Markus

aaronwmorris commented 1 week ago

I have had others manage two cameras on the same Pi5 by running one instance on the Pi5 and the second instance under a docker container.

I do need to update the docker-compose script to make it easier to run multiple docker instances of indi-allsky.

aaronwmorris commented 1 week ago

Merged #1364 with the camera selection in the config.