Creality camera with rasberry pi 4?

Hello everyone. Can I use a Creality camera which is usb with my rasberry pi 4? I am using my rasberry solely for 3d printing. I have been using the ribbon style camera and wanted to give my dad (who isn't using it lol)

I bought a Crealitybox with a Creality camera for myself quickly to find out that it has connectivity issues and is far inferior to the rasberry pi (I am an impulsive buyer). So I was hoping to combine the camera with the pi. I plugged it in but it is not working.

It should be compatible, since it is a USB webcam that does output mjpeg according to the specs. Th question is whether it has anything different in it that is not supported by Linux.

So if you have it plugged in, run lsusb (over SSH to the Pi) and see if the device is listed. If it is, run v4l2-ctl --list-devices and paste the output to see if it is recognized by the Pi.

1 Like

Hi, it might be an old post, but I have the same question, whether or not the Creality camera can work with Octoprint. I have done suggested above and here is the result.
pi@octopi:~ $ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12

bcm2835-isp (platform:bcm2835-isp):
/dev/video13
/dev/video14
/dev/video15
/dev/video16

CREALITY CAM: CREALITY CAM (usb-0000:01:00.0-1.3):
/dev/video0
/dev/video1
/dev/video2
/dev/video3

My octopi.txt

camera_usb_options="-r 1920x1080 -f 10 "

camera_http_webroot="./www"
camera_http_options=""

Hi, did you manage to make it work?

It seems CREALITY CAM works just with Creality Wifi Box?!?

I am also looking for a solution to use this camera with my pi...

The problem with this camera is that the specs says it supports mjpeg, but in reality it does not. It should technically work by installing the octopi version that uses the new camera stack which supports h264, but I was not able to get it to work yet. It's just a shitty camera overall.

Were there ever any updates on this? I was able to get the new camera stack to detect the camera with the following logs after setting the config to 5264 but the camera still does not work. This is the output from the camera service on octopi

md[1]: Started camera-streamer default. 273Jan 11 13:05:32 Octoprintcr10 sh[536]: util/http/http.c: ?: HTTP listening on 127.0.0.1:8080. 274Jan 11 13:05:32 Octoprintcr10 sh[536]: device/v4l2/device.c: CAMERA: Device path=/dev/v4l/by-id/usb-Creality_3D_Technology_CREALITY_CAM_00000000-video-index0 fd=6 opened 275Jan 11 13:05:32 Octoprintcr10 sh[536]: device/v4l2/device_options.c: CAMERA: The 'horizontal_flip=0' was failed to find. 276Jan 11 13:05:32 Octoprintcr10 sh[536]: device/v4l2/device_options.c: CAMERA: The 'vertical_flip=0' was failed to find. 277Jan 11 13:05:32 Octoprintcr10 sh[536]: device/camera/camera_input.c: CAMERA: Disabling DMA since device uses USB (which is likely not working properly). 278Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: CAMERA:capture: Using: 1280x720/H264, buffers=2, bytesperline=0, sizeimage=1.8MiB 279Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: CAMERA:capture: Opened 2 buffers. Memory used: 3.5 MiB 280Jan 11 13:05:32 Octoprintcr10 sh[536]: device/v4l2/device.c: CAMERA: ioctl(ret=-1, errno=22): Can't force keyframe 281Jan 11 13:05:32 Octoprintcr10 sh[536]: device/v4l2/device.c: DECODER: Device path=/dev/video10 fd=17 opened 282Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: DECODER:output:mplane: Using: 1280x720/H264, buffers=2, bytesperline=0, sizeimage=1.8MiB 283Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: DECODER:output:mplane: Opened 2 buffers. Memory used: 3.5 MiB 284Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: DECODER:capture:mplane: Using: 1280x720/NV12, buffers=2, bytesperline=1280, sizeimage=1.3MiB 285Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: DECODER:capture:mplane: Opened 2 buffers. Memory used: 2.6 MiB 286Jan 11 13:05:32 Octoprintcr10 sh[536]: device/v4l2/device.c: SNAPSHOT: Device path=/dev/video11 fd=22 opened 287Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: SNAPSHOT:output:mplane: Using: 1280x720/NV12, buffers=2, bytesperline=1280, sizeimage=1.3MiB 288Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: SNAPSHOT:output:mplane: Opened 2 buffers. Memory used: 0.0 MiB 289Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: SNAPSHOT:capture:mplane: Using: 1280x720/MJPG, buffers=2, bytesperline=0, sizeimage=0.5MiB 290Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: SNAPSHOT:capture:mplane: Opened 2 buffers. Memory used: 1.0 MiB 291Jan 11 13:05:32 Octoprintcr10 sh[536]: device/device.c: CAMERA: Setting frame interval_us=0 for FPS=15 292Jan 11 13:05:32 Octoprintcr10 sh[536]: device/v4l2/device_options.c: CAMERA: The 'AfTrigger=1' was failed to find. 293Jan 11 13:05:32 Octoprintcr10 sh[536]: device/v4l2/device_options.c: SNAPSHOT: The 'compression_quality=80' was failed to find. 294Jan 11 13:05:32 Octoprintcr10 sh[536]: device/links.c: ?: Link 0: CAMERA:capture[1280x720/H264/2] => [DECODER:output:mplane[1280x720/H264/2], VIDEO-CAPTURE] 295Jan 11 13:05:32 Octoprintcr10 sh[536]: device/links.c: ?: Link 1: DECODER:capture:mplane[1280x720/NV12/2] => [SNAPSHOT:output:mplane[1280x720/NV12/2]] 296Jan 11 13:05:32 Octoprintcr10 sh[536]: device/links.c: ?: Link 2: SNAPSHOT:capture:mplane[1280x720/MJPG/2] => [SNAPSHOT-CAPTURE, STREAM-CAPTURE] 297Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: CAMERA:capture: Streaming started... Was 0 of 2 enqueud 298Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: DECODER:output:mplane: Streaming started... Was 0 of 2 enqueud 299Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: DECODER:capture:mplane: Streaming started... Was 0 of 2 enqueud 300Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: SNAPSHOT:output:mplane: Streaming started... Was 0 of 2 enqueud 301Jan 11 13:05:32 Octoprintcr10 sh[536]: device/buffer_list.c: SNAPSHOT:capture:mplane: Streaming started... Was 0 of 2 enqueud 302Jan 11 13:05:51 Octoprintcr10 systemd[1]: camera-streamer-libcamera.service: Scheduled restart job, restart counter is at 1. 303Jan 11 13:05:51 Octoprintcr10 systemd[1]: Stopped camera-streamer libcamera. 304Jan 11 13:05:51 Octoprintcr10 systemd[1]: Starting camera-streamer libcamera... 305Jan 11 13:05:53 Octoprintcr10 systemd[1]: camera-streamer-libcamera.service: Control process exited, code=exited, status=1/FAILURE 306Jan 11 13:05:53 Octoprintcr10 systemd[1]: camera-streamer-libcamera.service: Skipped due to 'exec-condition'. 307Jan 11 13:05:53 Octoprintcr10 systemd[1]: Condition check resulted in camera-streamer libcamera being skipped. 308Jan 11 13:06:03 Octoprintcr10 systemd[1]: camera-streamer-libcamera.service: Scheduled restart job, restart counter is at 2. 309Jan 11 13:06:03 Octoprintcr10 systemd[1]: Stopped camera-streamer libcamera.

Hello @computeq !

Please! Either you format your snippet as preformatted text

Format

or you upload it here as file.

The way it is, no one can/will read it.

Or way better: Open a new thread. This one is quite old. (Oct 21)