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

Failed to start #180

Closed Regradert closed 2 years ago

Regradert commented 2 years ago

Hello. I just installed it and it gives me this error when trying to test it. I do not know the motive:

./picam --alsadev hw:1,0 -w 1920 -h 1080 -f 30 &

@raspberrypi:~/picam $ ./picam: symbol lookup error: ./picam: undefined symbol: _ZN9libcamera10ColorSpace4JpegE

I don't know if I installed it wrong and I don't know what to try. Please, I would need a little help. Thanks.

DeborahFehr commented 2 years ago

I have the same problem. This could be related to the renaming of the color_space Jpeg to Sycc in the libcamera package: https://git.libcamera.org/libcamera/libcamera.git/commit/?id=a17f0eddc61486989a375e34dcdcbb15c3152a4a

iizukanao commented 2 years ago

Thank you for pointing this out. I will fix it shortly.

iizukanao commented 2 years ago

This issue has been fixed in version 2.0.6.

Regradert commented 2 years ago

@iizukanao I happen to have the problem again. I installed it yesterday afternoon (on raspbian) and it worked perfectly, but now I need to install it on Dietpi OS (following your installation guide, version 2.0.6) and the error returns:

dietpi@DietPi:~/picam$ ./picam --alsadev hw:1,0 ./picam: symbol lookup error: ./picam: undefined symbol: _ZN9libcamera10ColorSpace4SyccE

iizukanao commented 2 years ago

@Regradert That may be because Dietpi OS uses an older version of libcamera. Build the latest libcamera yourself or use picam 2.0.5.

Regradert commented 2 years ago

Many thanks @iizukanao. It works perfect now.

By the way, congratulations for picam, it is together with v4l2rtspserver the two best systems to transmit live video in good quality. I have tried all the ones available for the Raspberry. Picam seems to be the best since it sends audio by acc, you can add text and it allows you to crop the image (roi) it's amazing and from now on, I will recommend picam to everyone.

I miss a function that v4l2rtspserver has and I don't know if it can be done with picam. Is it possible to adjust brightness, contrast, exposure, etc. with the transmission running? I need it to change the brightness and contrast settings at dusk (or dawn) using a shell command. With v4l2rtspserver you can via these commands (without turning off the camera):

v4l2-ctl --set-ctrl brightness=60 v4l2-ctl --set-ctrl contrast=20

I have tried in picam like this but it seems that it does not pay attention:

$ sudo touch hooks/brightness=0.0

error: invalid hook: brightness=0.0

Thank you very much and congratulations again for this wonder !!

iizukanao commented 2 years ago

@Regradert Thank you so much for your comment. I am very happy to hear that! I think the dynamic control of brightness and contrast would be a nice addition. I am considering implementing it.

In the meantime, the white balance and exposure can be dynamically controlled with hooks. White balance: https://github.com/iizukanao/picam#white-balance Exposure: https://github.com/iizukanao/picam#exposure-control

Regradert commented 2 years ago

iizukanao

The system you have created is wonderful. It would be great to be able to control brightness/contrast/sharpness/color etc. dynamically. Let's see if you dare one day. Thank you very much !!

iizukanao commented 2 years ago

@Regradert The brightness/contrast/saturation/sharpness hooks have been implemented in version 2.0.7. Please see README for the usage.

iizukanao commented 2 years ago

I will lock the conversation as the original issue has already been resolved.