bluenviron / mediamtx-rpicamera

Raspberry Pi Camera component for MediaMTX
MIT License
5 stars 1 forks source link

Unable to Compile against an external libcamera #32

Open daPREdaTOR opened 3 weeks ago

daPREdaTOR commented 3 weeks ago

Hi all, first time using github so hopefully I haven't done anything silly but here goes: I am attempting to setup mediamtx using an arducam 16MP autofocus camera. Everything works as expected up until I get to step 4 of 'Compile against an external libcamera', where it says to enter the command: "meson_ setup --wrap-mode=default build && DESTDIR=./prefix ninja -C build install" When I do this I get an error: "Neither directory contains a build file meson.build."

I am an experienced beginner when it comes to linux but never compiled my own software or used meson etc.

Is there a simple solution (or easy to follow instructions for getting the autofocus to work with the arducam camera in metiamtx)? I have managed to get it to work using the standard libcamera install but got autofocus errors (and no autofocus). Thanks.

aler9 commented 2 days ago

Hello, first of all you can check whether autofocus works by using the libcamera-vid / rpicam-vid executable that is provided by Arducam, without recompiling the server.

If autofocus and all of its parameters work with no issues, it means that a custom libcamera is required for MediaMTX to use these feature too, and you need to recompile the server (and this component too).

Otherwise, autofocus might be completely managed by Arducam and impossible to control through software.

Error Neither directory contains a build file meson.build means that you are not launching the command from the mediamtx-rpicamera, but from another folder. First you have to build mediamtx-rpicamera, then mediamtx.