iizukanao / picam

Audio/video recorder for Raspberry Pi with language agnostic API
GNU Lesser General Public License v2.1
489 stars 78 forks source link

New Raspberry Pi OS "Bullseye" and picam #166

Closed MOVE1904 closed 2 years ago

MOVE1904 commented 2 years ago

Hi,

under the new Raspberry Pi OS "Bullseye" picam doesn't work. The driver used to access camera modules has been replaced.

So, at this moment, do not upgrade to "Bullseye" if you want to use picam.

@iizukanao: is there a chance to implement the new changes to your software?

CharlesBinard commented 2 years ago

@gamer1966 have you found an alternative or a fix?

MOVE1904 commented 2 years ago

@gamer1966 have you found an alternative or a fix?

Sorry, I'm not the developer.

As you can read here, the new software library 'libcamera' drive the camera system. A brand new version of picam may be required.

mistes32 commented 2 years ago

@gamer1966 You should enable legacy camera support in raspi-config interfaces.

MOVE1904 commented 2 years ago

@mistes32 Thank you for the hint.

Before it is possible to enable legacy camera you have to update raspi-config (8 Update Update this tool to the latest version) (edit: in Raspberry Pi OS version dated 2022-01-28 no more update needed)

But that is not enough. There are missing libs and files in /opt/vc. The following set of commands help.

git clone https://github.com/raspberrypi/firmware sudo cp -r firmware/hardfp/opt/vc /opt/ echo "/opt/vc/lib" > opt-vc.conf sudo chown root.root opt-vc.conf sudo mv opt-vc.conf /etc/ld.so.conf.d/ sudo ldconfig

(Thanks to peter64 @ https://forums.raspberrypi.com/viewtopic.php?t=317888&start=25)

iizukanao commented 2 years ago

Sorry for the late response. picam version 2.0.0 for Bullseye OS (with libcamera) is now available. Legacy camera stack is no longer used. https://github.com/iizukanao/picam/releases/tag/v2.0.0