Camera IMX219 no stream

What is the problem?

I don't get any camera stream displayed

What did you already try to solve it?

various Octoprint versions. Currently the one with the new camera build

Have you tried running in safe mode?

No

Did running in safe mode solve the problem?

No

Systeminfo Bundle

WRITE HERE

Additional information about your setup

Raspberry Pi 5

pi@OctoprintEnder:~ $ rpicam-still --list-cameras
Available cameras
-----------------
0 : imx219 [3280x2464 10-bit RGGB] (/base/axi/pcie@1000120000/rp1/i2c@80000/imx219@10)
    Modes: 'SRGGB10_CSI2P' : 640x480 [103.33 fps - (1000, 752)/1280x960 crop]
                             1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
                             1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
                             3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
           'SRGGB8' : 640x480 [103.33 fps - (1000, 752)/1280x960 crop]
                      1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
                      1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
                      3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
pi@OctoprintEnder:~ $ rpicam-vid -t 0 --inline --listen -o tcp://0.0.0.0:8554
[0:02:13.801487779] [2296]  INFO Camera camera_manager.cpp:330 libcamera v0.5.2+99-bfd68f78
[0:02:13.815217803] [2299]  INFO RPI pisp.cpp:720 libpisp version v1.2.1 981977ff21f3 29-04-2025 (14:17:26)
[0:02:13.824820506] [2299]  INFO IPAProxy ipa_proxy.cpp:180 Using tuning file /usr/share/libcamera/ipa/rpi/pisp/imx219.json
[0:02:13.838090583] [2299]  INFO Camera camera_manager.cpp:220 Adding camera '/base/axi/pcie@1000120000/rp1/i2c@80000/imx219@10' for pipeline handler rpi/pisp
[0:02:13.838134361] [2299]  INFO RPI pisp.cpp:1179 Registered camera /base/axi/pcie@1000120000/rp1/i2c@80000/imx219@10 to CFE device /dev/media1 and ISP device /dev/media2 using PiSP variant BCM2712_C0
Made X/EGL preview window
Made DRM preview window
Preview window unavailable
Mode selection for 640:480:12:P
    SRGGB10_CSI2P,640x480/0 - Score: 1000
    SRGGB10_CSI2P,1640x1232/0 - Score: 1444.49
    SRGGB10_CSI2P,1920x1080/0 - Score: 1636.67
    SRGGB10_CSI2P,3280x2464/0 - Score: 2162.49
    SRGGB8,640x480/0 - Score: 2000
    SRGGB8,1640x1232/0 - Score: 2444.49
    SRGGB8,1920x1080/0 - Score: 2636.67
    SRGGB8,3280x2464/0 - Score: 3162.49
Stream configuration adjusted
[0:02:13.932891778] [2296]  INFO Camera camera.cpp:1215 configuring streams: (0) 640x480-YUV420/SMPTE170M (1) 640x480-BGGR_PISP_COMP1/RAW
[0:02:13.933025501] [2299]  INFO RPI pisp.cpp:1483 Sensor: /base/axi/pcie@1000120000/rp1/i2c@80000/imx219@10 - Selected sensor format: 640x480-SBGGR10_1X10/RAW - Selected CFE format: 640x480-PC1B/RAW
[libx264 @ 0x18903b0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x18903b0] profile High, level 3.0, 4:2:0, 8-bit
Output #0, h264, to 'tcp://0.0.0.0:8554?listen=1':
  Stream #0:0: Video: h264, yuv420p(tv, smpte170m/smpte170m/bt709), 640x480, q=2-31, 30 fps, 30 tbr, 1000k tbn
#7 (0.00 fps) exp 33251.00 ag 9.14 dg 1.00
#8 (30.00 fps) exp 33251.00 ag 9.14 dg 1.00
#9 (30.00 fps) exp 33251.00 ag 9.14 dg 1.00
#10 (30.01 fps) exp 33251.00 ag 8.83 dg 1.03
#11 (30.00 fps) exp 33251.00 ag 8.83 dg 1.03
#12 (30.00 fps) exp 33251.00 ag 8.00 dg 1.02
#13 (30.01 fps) exp 33251.00 ag 8.00 dg 1.02
#14 (30.00 fps) exp 33251.00 ag 8.00 dg 1.02
#15 (30.01 fps) exp 33251.00 ag 8.00 dg 1.02
#16 (30.01 fps) exp 33251.00 ag 8.00 dg 1.02
#17 (30.00 fps) exp 33251.00 ag 8.00 dg 1.02
#18 (30.01 fps) exp 33251.00 ag 8.00 dg 1.02
#19 (30.01 fps) exp 33251.00 ag 8.00 dg 1.02
#20 (30.00 fps) exp 33251.00 ag 8.00 dg 1.02
#21 (30.00 fps) exp 33251.00 ag 8.00 dg 1.02

Problem is no stream in Octoprint, and i have no idear why. Possible that anyone here can help me?

Cant give help unless you add the requested data in the original post. Please click the highlighted lines to attach the full logs etc

I just spent several hours over the past couple of days trying to get my IMX219 cam to stream on my Pi 5 and was not able to figure it out. The cam works fine on my Pi 3. No idea why a picam won't immediately work in any Pi. Interested in the solution here.

Since the OP hasn't provided any details on his problem you might be better off opening your own topic and providing YOUR details.

My guess given the limited information provided is that your RPi 3 and your RPi 5 are running different versions of the Raspberry Pi OS (Debian), cat /etc/os-release.

1 Like

Here my System:

pi@OctoprintEnder:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Log´s follow

(post deleted by author)

octoprint.log (6.5 KB)

Log.zip (4.5 KB)

For camera stuff we really need the system info bundle that will include some logging from the camera streamer.

Thanks

octoprint-systeminfo-20251009162056.zip (8.9 KB)

and all Settings:


Based on the journal.log it looks like the service is stopping due to something missing.

Okt 07 13:51:58 OctoprintEnder systemd[1]: Started camera-streamer-usb-default.path - camera-streamer default autolaunch.
Okt 07 13:51:59 OctoprintEnder list-libcamera-devices[843]: /usr/bin/list-libcamera-devices: 6: exit: Illegal number: -1
Okt 07 13:51:59 OctoprintEnder systemd[1]: camera-streamer-libcamera.service: Skipped due to 'exec-condition'.
Okt 07 13:51:59 OctoprintEnder systemd[1]: camera-streamer-libcamera.service - camera-streamer libcamera was skipped because of an unmet condition check (ConditionPathExists=/etc/octopi_streamer/mjpeg).

This could be a bug in the service file configuration. Can you SSH to the pi and run this for me and report the output?

sudo systemctl camera-streamer-libcamera.service