fluidd-core / FluiddPI

FluiddPi - A Pi image with Klipper, Moonraker, Fluidd and Web Camera support pre-installed.
https://docs.fluidd.xyz
GNU General Public License v3.0
299 stars 58 forks source link

Fluiddpi missing input_raspicam.so #28

Open ilektron opened 2 years ago

ilektron commented 2 years ago

Something is happening causing mjpg-streamer to be compiled without the input_raspicam plugin due to unmet dependencies. If I had to guess, something changed with the location of /opt/vc/include that isn't being installed on the root image causing the plugin to have unmet dependencies. The raspi camera doesn't work out of the box because it's missing the so associated with the plugin.

thisiscam commented 2 years ago

FWIW, I tracked down to this line: https://github.com/jacksonliam/mjpg-streamer/blob/master/mjpg-streamer-experimental/plugins/input_raspicam/CMakeLists.txt#L2, and understood what @ilektron was saying.

ilektron commented 2 years ago

As a workaround I was able to just change the CMakeLists.txt for the input_raspicam to look in /usr/include/interface for the required library headers and then update all the /opt/vc filepaths to /usr/include/interface. After the change and recompiling, make install, everything things to be working.

I think in the latest releases of pi base images the pi specific headers were moved from /opt/vc into /usr/include

thisiscam commented 2 years ago

It appears that in this issue, the developer of mjpg_streamer said it's better to deprecate the input_raspicam plugin, and just resort to using the pi camera as a regular webcam instead (by using the input_uvc plugin).

To do that in fluidd, I basically changed my webcam.txt config to use usb, and enabled the legacy raspicam interface through sudo raspi-config -> interface -> enable legacy camera interface.

I have no idea how this affect performance though.

Also, the new interface libcamera is not yet integrate into mjpg_streamer but here's the discussion.

alucryd commented 2 years ago

Gave the libcamera fork a try, afraid it's not a viable option at the moment, even at 640x480 it completely pegs a 3B+, let alone a Zero 2. UVC uses so little CPU, even at 1080p on a NoIR v2 that I don't think raspicam will be missed.

kbingham commented 2 years ago

@alucryd Did you try https://github.com/ArduCAM/mjpg-streamer ? or something else?

alucryd commented 2 years ago

That's the one I tried, yes.

kbingham commented 2 years ago

Could you tell me what you mean by 'pegs a 3b+'?