BrianHepler / MMM-Selfieshot

Taking a Selfie with USB cam on MagicMirror.
MIT License
8 stars 6 forks source link

fswebcam with Raspberry pi camera module v3 #24

Open oturan233 opened 1 year ago

oturan233 commented 1 year ago

Hi Brian,

I managed to get selifes with a usb webcam, however I get error with raspberry camera module 3.

I searched and reviewed the logs, and found that fswebcam does not work with this pi module 3 camera.

--- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. No input was specified, using the first. Error starting stream. VIDIOC_STREAMON: Invalid argument Unable to use mmap. Using read instead. --- Capturing frame... VIDIOC_DQBUF: Invalid argument

I tried fswebcam command seperately and couldn't be successsfull.

Are you sure that pi camera modules works with fswebcam and also with sefieshot ?

Best regards, and thanks for this great job.

Ozgur

BrianHepler commented 1 year ago

I don't have any connection to fswebcam. You may wish to ask over at https://github.com/fsphil/fswebcam

However, if it's not working with MMM-Selfieshot then there's definitely a problem. What model Pi and which version of Raspbian are you running? And did you remember to enable the camera in the raspi-config application?

Scottfx2 commented 8 months ago

Dear, same error, than Oturan233, with raspberrypi V4 and last Os, there is no more option to activate PICAM. The camera still works only with libcamera. Could you help me to use licamera instead of fswebcam ? Thanks

BrianHepler commented 8 months ago

Well that definitely seems like a problem. I'll get to it this week.

Scottfx2 commented 8 months ago

You are master :)

BrianHepler commented 6 months ago

I'm still working this issue. Have you tried enabling the legacy cameras support in the raspi-config app?

Scottfx2 commented 6 months ago

Happy to read you :) Legacy camera works fine, tested with RaspiVid and Raspistill, but not with fswebcam. Raspi-config is no more used for enabling camera, as last raspberry OS (the enable camera option is no more present) and camera presence is detected by OS. (raspio bookworm and bullseye) Actually your Software works fine with an USB Webcam. and resolution look Vintage ! But if i could use new camera module V2, it could be nice.