Cam detected but not working

Camera model

OV5647 (RPI CAM NOIR MF: Raspberry Pi - Kamera, 5MP, 75°, IR-LEDs bei reichelt elektronik)

What is the problem?

Octoprint is detecting my Camera but not working.

What did you already try to solve it?

  • sudo apt-get update
  • sudo apt-get upgrade --with-new-pkgsList
  • I2C enabeled

Have you tried running in safe mode?


Did running in safe mode solve the problem?


Systeminfo Bundle (22.4 KB)

additional info

felix@CR10MAX:~ $ libcamera-hello --list-cameras
Available cameras
0 : ov5647 [2592x1944] (/base/soc/i2c0mux/i2c@1/ov5647@36)
    Modes: 'SGBRG10_CSI2P' : 640x480 [30.00 fps - (0, 0)/0x0 crop]
                             1296x972 [30.00 fps - (0, 0)/0x0 crop]
                             1920x1080 [30.00 fps - (0, 0)/0x0 crop]
                             2592x1944 [30.00 fps - (0, 0)/0x0 crop]
felix@CR10MAX:~ $ vcgencmd get_camera
supported=1 detected=0, libcamera interfaces=1

felix@CR10MAX:~ $ libcamera-hello -v3
    verbose: 3
    info_text:#%frame (%fps fps) exp %exp ag %ag dg %dg
    timeout: 5000
    width: 0
    height: 0
    rawfull: 0
    preview: default
    qt-preview: 0
    transform: identity
    roi: all
    metering: centre
    exposure: normal
    ev: 0
    awb: auto
    flush: false
    wrap: 0
    brightness: 0
    contrast: 1
    saturation: 1
    sharpness: 1
    framerate: 30
    denoise: auto
    viewfinder-width: 0
    viewfinder-height: 0
    tuning-file: (libcamera)
    lores-width: 0
    lores-height: 0
    autofocus-range: normal
    autofocus-speed: normal
    autofocus-window: all
    mode: unspecified
    viewfinder-mode: unspecified
    metadata-format: json
No connector ID specified.  Choosing default from list:
Connector 32 (crtc 0): type 11, 0x0
Connector 42 (crtc 0): type 11, 0x0
Preview window unavailable
Running without preview window
Opening camera...
[0:02:14.931499846] [1005]  INFO Camera camera_manager.cpp:297 libcamera v0.0.5+82-2783c8d8
[0:02:14.970485905] [1006]  INFO RPI vc4.cpp:437 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media1 and ISP device /dev/media0
[0:02:14.970571404] [1006]  INFO RPI pipeline_base.cpp:1101 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
[0:02:14.970981012] [1005]  INFO Camera camera.cpp:840 Pipeline handler in use by another process
Closing Libcamera application(frames displayed 0, dropped 0)
Camera stopped!
Tearing down requests, buffers and configuration
Camera closed
ERROR: *** failed to acquire camera /base/soc/i2c0mux/i2c@1/ov5647@36 ***
# For more options and information see
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border

# uncomment to force a console size. By default it will be display's size minus
# overscan.

# uncomment if hdmi display is not detected and composite is being output

# uncomment to force a specific HDMI mode (this will force VGA)

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display

# uncomment for composite PAL

#uncomment to overclock the arm. 700 MHz is the default.

# Uncomment some or all of these to enable the optional hardware interfaces

# Uncomment this to enable infrared communication.

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)

# Automatically load overlays for detected cameras

# Automatically load overlays for detected DSI displays

# Enable DRM VC4 V3D driver

# Disable compensation for displays with overscan

# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.


# Run as fast as firmware / board allows

# enable raspicam


### IMPORTANT: Looking for the camera settings? Those are now located
### in the camera-streamer directory! libcamera.conf to configure the Raspberry Pi
### camera and usb-default.conf to configure USB cameras. Read more about it here:

### Windows users: To edit this file use Notepad++, VSCode or SublimeText.
### Do not use Notepad or WordPad.

### MacOSX users: If you use Textedit to edit this file make sure to use
### "plain text format" and "disable smart quotes" in "Textedit > Preferences"

# Configuration of network monitoring
# This enables network monitoring for wifi connections with a simple ping test.
# If connection terminates by variable reasons system tries to restart the wifi connection to reestablish a connection.
# The connection test is done every minute.
# By default it is disabled (0 = off / 1 = on)
# destination_host can be an ip address or a hostname (for hostname ensure dns resosultion is working correctly)


# Be sure to change this to match your network!

# Support for different streamer types.
# Available options:
#   mjpeg [default] - camera-streamer
#   hls - FFMPEG HLS streamer


### Options for libcamera based cameras (PiCam, Arducam, ...)

# The port on which the webcam server for the camera should listen on. If you have only
# one camera, leave at 8080. If you have more, change to 8081, 8082, etc. The primary
# camera will be considered the one with 8080.

# The resolution to request on the camera sensor. Defaults to 1280x720.

# The height to use for the video stream. Defaults to 720.

# The height to use for the snapshots. Defaults to 1080.

# The framerate to set on the camera. Defaults to 15fps.

# Additional options. By default enables continuous auto focus (if possible).
OPTIONS='--camera-options="AfMode=2" --camera-options="AfRange=2"'

Please share a systeminfo bundle

Hi so sorry, forgott..

i updated it in the first post and also some additional steps i did so far. And all files updated too.

Some more maybe "usefull" information:

Hi, did you resolve this as I've got exactly the same issue and my running the same commands basically get the same responses as you did. I have a clean install of Octoprint 'new camera' from yesterday, with apts updated. I manually added the dtoverlay=ov5647 to the config.txt file and that resulted in the libcamera count going 0 to 1, but at the same time the detected count went from 1 to 0. I'll create a new post if you didn't manage to solve it. The reason I reinstalled is because a few months ago after an octoprint update (not new camera version) the camera stream stopped working in Octoprint...but using the raspstill command I could take still images so Pi was recognising the camera

It sounds like you forgot to permit the stream to be accessible from all network devices.

Make sure the line for options reads


in the camera.conf file.

Then reboot.