Can't detect camera in OctoPrint

Camera model

Raspberry Pi Camera Rev V1.3 connected to Raspberry Pi 4 Model B.

What is the problem?

The webcam stream is unable to load on octoprint.

What did you already try to solve it?

I have tried everything here (OctoPrint-CameraSettings/docs/setup.md at c24b20961b4b2b78fc9e7e0fe0259dbdb9fcc2e7 路 The-EG/OctoPrint-CameraSettings 路 GitHub) as well as what octoprint has instructed me to do - add a "-y" behind the camera_usb_options="-r 640x480 -f 10 -y"

Previously, I am using the Raspberry Pi Model 3 I think. The Octoprint, python and OctoPi is an older version. The code previously and now are slightly different after plugging in the camera and powering on.

Hello @wong !

Have you tried running in safe mode?

WRITE HERE

Did running in safe mode solve the problem?

WRITE HERE

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

WRITE HERE

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

WRITE HERE

Where is the systeminfo bundle?
What OctoPrint/OctoPi version do you run?


What have you set at OctoPrint Settings -> Plugins -> Classic Webcam?


BTW:

Hi,

Both stream aspect ratio of 16:9 and 4:3 - The test is unable to display a view.

Also, I know is 3 years ago as my current raspberry pi has been running this firmware for quite sometime. Just that I bought a new raspberry pi and couldn't get it to connect.

Old vs. New
Octoprint: 1.8.6 vs 1.10.3
Python: 3.7.3 vs 3.9.2
OctoPi: 0.18.0 vs 1.0.0

What are your settings at Stream URL and Snapshot URL?

this should not be necessary with a picam.

Stream aspect ratio is 4:3, Stream timeout is 5 sec with cache buster enabled.
Stream URL unable to display any images in test function.

Snapshot timeout is at 5 seconds with "Validate SSL on snapshot URL" tick box checked.
Snapshot URL couldn't retrieve snapshot URL.

I've tried both - including and not including "-y". Both didn't work.

What URL did you use?

I am not sure if this is it? Or am I supposed to check somewhere else?

SSH to the pi, run these commands, and report back what is returned.

vcgencmd get_camera
v4l2-ctl --list-formats-ext

also, open OctoPrint and in the very bottom of the page click the System link. Click the button to download a system info bundle, and upload it here using the upload button.

pi@Octopi:~ vcgencmd get_camera supported=1 detected=0, libcamera interfaces=0 pi@Octopi:~ v412-ctl --list-formats-ext
-bash: v412-ctl: command not found

These are the returns.

octoprint-systeminfo-20250326092622.zip (1.4 MB)

lowercase letter L not the number 1 in v412-ctl --list-formats-ext, but the fact that detected=0 makes me think your camera isn't connected right, or possibly the tiny ribbon cable between the camera sensor and it's board has come loose.

image

Hi, I have tested with my old raspberry pi. The current camera has light powered on and it is working on the old raspberry pi 3. So I am not sure if there's some modification to the code to enable it on raspberry pi 4B.

On the raspberry pi 4B, i also dont have the enable camera setting under the interface setting.