Correct. LD_PRELOAD allows a library to intercept system ioctl calls, so libcamerify does that for the v4l2 ioctls and translates them into libcamera calls.Generally you just put it in front of the command you wish to use it with. For example, to run "ffmpeg with_some_options_here" you just use "libcamerify ffmpeg with_some_options_here".
I use it with "motion", so I just use "libcamerify motion".
It does appear to be a script which adds a compatibility library to the LD_PRELOAD path. I presume that library translates the v4l2 calls to libcamera ones.
Thank you.
After some discusstion, we plan to use the IMX477 on the old stack bcm2835_v4l2 stack, it seems like somehow the IMX477 is working without errors when doing ffmpeg, but the video is totally black.
And we found some info online that the old bcm2835 stack supports IMX477 camera, am I correct?
Statistics: Posted by wufengyi — Sat Feb 08, 2025 3:20 am