Help dont work webcam with crowsnet

Hi, I’ve been building Voron 2.4 since January so far I’ve been able to configure Klipper without any problems, I have the machine working without problems, but now I would like to add a webcam but it’s not being very easy.
I followed Crowsnest with a cheap 720p usb webcam.

log crowsnet

[03/09/24 14:29:02] crowsnest: crowsnest - A webcam Service for multiple Cams and Stream Services.
[03/09/24 14:29:02] crowsnest: Version: v4.1.6-1-ge96cd46
[03/09/24 14:29:02] crowsnest: Prepare Startup …
[03/09/24 14:29:02] crowsnest: INFO: Host information:
[03/09/24 14:29:02] crowsnest: Host Info: Distribution: Raspbian GNU/Linux 12 (bookworm)
[03/09/24 14:29:02] crowsnest: Host Info: Kernel: Linux 6.1.0-rpi8-rpi-v8 aarch64
[03/09/24 14:29:02] crowsnest: Host Info: Model: Raspberry Pi 4 Model B Rev 1.5
[03/09/24 14:29:02] crowsnest: Host Info: Available CPU Cores: 4
[03/09/24 14:29:02] crowsnest: Host Info: Available Memory: 3884304 kB
[03/09/24 14:29:02] crowsnest: Host Info: Diskspace (avail. / total): 20G / 29G
[03/09/24 14:29:02] crowsnest: INFO: Checking Dependencies
[03/09/24 14:29:02] crowsnest: Dependency: ‘crudini’ found in /usr/bin/crudini.
[03/09/24 14:29:02] crowsnest: Dependency: ‘find’ found in /usr/bin/find.
[03/09/24 14:29:02] crowsnest: Dependency: ‘xargs’ found in /usr/bin/xargs.
[03/09/24 14:29:02] crowsnest: Dependency: ‘ustreamer.bin’ found in bin/ustreamer/ustreamer.bin.
[03/09/24 14:29:02] crowsnest: Dependency: ‘camera-streamer’ found in bin/camera-streamer/camera-streamer.
[03/09/24 14:29:02] crowsnest: Version Control: ustreamer new version available: 8f0acb2 (v5.57).
[03/09/24 14:29:02] crowsnest: Version Control: camera-streamer is up to date. ((6deb9c5))
[03/09/24 14:29:02] crowsnest: INFO: Print Configfile: ‘/home/pi/printer_data/config/crowsnest.conf’
[03/09/24 14:29:02] crowsnest: [crowsnest]
[03/09/24 14:29:02] crowsnest: log_path: /home/pi/printer_data/logs/crowsnest.log
[03/09/24 14:29:02] crowsnest: log_level: verbose
[03/09/24 14:29:02] crowsnest: delete_log: true
[03/09/24 14:29:02] crowsnest: no_proxy: true
[03/09/24 14:29:02] crowsnest:
[03/09/24 14:29:02] crowsnest: [cam bed]
[03/09/24 14:29:02] crowsnest: mode: camera-streamer
[03/09/24 14:29:02] crowsnest:
[03/09/24 14:29:02] crowsnest: port: 8080
[03/09/24 14:29:02] crowsnest: device: /dev/v4l/by-id/usb-FLH-H62-200426_Integrated_Camera-video-index0 → /dev/video0
[03/09/24 14:29:02] crowsnest: resolution: 640x480
[03/09/24 14:29:02] crowsnest: max_fps: 25
[03/09/24 14:29:02] crowsnest: v4l2ctl: focus_auto=0,focus_absolute=30
[03/09/24 14:29:02] crowsnest: INFO: Detect available Devices
[03/09/24 14:29:02] crowsnest: INFO: Found 1 total available Device(s)
[03/09/24 14:29:02] crowsnest: INFO: Found 1 available v4l2 (UVC) camera(s)
[03/09/24 14:29:02] crowsnest: /dev/v4l/by-id/usb-FLH-H62-200426_Integrated_Camera-video-index0 → /dev/video0
[03/09/24 14:29:02] crowsnest: Supported Formats:
[03/09/24 14:29:02] crowsnest: [0]: ‘YUYV’ (YUYV 4:2:2)
[03/09/24 14:29:02] crowsnest: Size: Discrete 1280x720
[03/09/24 14:29:02] crowsnest: Interval: Discrete 0.100s (10.000 fps)
[03/09/24 14:29:02] crowsnest: Size: Discrete 640x480
[03/09/24 14:29:02] crowsnest: Interval: Discrete 0.040s (25.000 fps)
[03/09/24 14:29:02] crowsnest: [1]: ‘MJPG’ (Motion-JPEG, compressed)
[03/09/24 14:29:02] crowsnest: Size: Discrete 1280x720
[03/09/24 14:29:02] crowsnest: Interval: Discrete 0.040s (25.000 fps)
[03/09/24 14:29:02] crowsnest: Size: Discrete 640x480
[03/09/24 14:29:02] crowsnest: Interval: Discrete 0.040s (25.000 fps)
[03/09/24 14:29:02] crowsnest: Supported Controls:
[03/09/24 14:29:02] crowsnest:
[03/09/24 14:29:02] crowsnest: User Controls
[03/09/24 14:29:02] crowsnest:
[03/09/24 14:29:02] crowsnest: brightness 0x00980900 (int) : min=0 max=255 step=1 default=128 value=128
[03/09/24 14:29:02] crowsnest: contrast 0x00980901 (int) : min=0 max=255 step=1 default=32 value=32
[03/09/24 14:29:02] crowsnest: saturation 0x00980902 (int) : min=0 max=100 step=1 default=64 value=64
[03/09/24 14:29:02] crowsnest: hue 0x00980903 (int) : min=-180 max=180 step=1 default=0 value=0
[03/09/24 14:29:02] crowsnest: white_balance_automatic 0x0098090c (bool) : default=1 value=1
[03/09/24 14:29:02] crowsnest: gamma 0x00980910 (int) : min=90 max=150 step=1 default=120 value=120
[03/09/24 14:29:02] crowsnest: gain 0x00980913 (int) : min=4 max=8 step=1 default=4 value=4
[03/09/24 14:29:02] crowsnest: power_line_frequency 0x00980918 (menu) : min=0 max=2 default=1 value=1 (50 Hz)
[03/09/24 14:29:02] crowsnest: 0: Disabled
[03/09/24 14:29:02] crowsnest: 1: 50 Hz
[03/09/24 14:29:02] crowsnest: 2: 60 Hz
[03/09/24 14:29:02] crowsnest: white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4000 value=4000 flags=inactive
[03/09/24 14:29:02] crowsnest: sharpness 0x0098091b (int) : min=0 max=7 step=1 default=2 value=2
[03/09/24 14:29:02] crowsnest: backlight_compensation 0x0098091c (int) : min=0 max=2 step=1 default=0 value=0
[03/09/24 14:29:02] crowsnest:
[03/09/24 14:29:02] crowsnest: Camera Controls
[03/09/24 14:29:02] crowsnest:
[03/09/24 14:29:02] crowsnest: auto_exposure 0x009a0901 (menu) : min=0 max=3 default=3 value=3 (Aperture Priority Mode)
[03/09/24 14:29:02] crowsnest: 1: Manual Mode
[03/09/24 14:29:02] crowsnest: 3: Aperture Priority Mode
[03/09/24 14:29:02] crowsnest: exposure_time_absolute 0x009a0902 (int) : min=10 max=2500 step=1 default=156 value=156 flags=inactive
[03/09/24 14:29:02] crowsnest: Try to start configured Cams / Services…
[03/09/24 14:29:03] crowsnest: INFO: Configuration of Section [cam bed] looks good. Continue …
[03/09/24 14:29:04] crowsnest: INFO: Set to ‘no_proxy’ mode! Using 0.0.0.0!
[03/09/24 14:29:05] crowsnest: V4L2 Control: Handling done by camera-streamer …
[03/09/24 14:29:05] crowsnest: V4L2 Control: Trying to set: focus_auto=0,focus_absolute=30
[03/09/24 14:29:05] crowsnest: Starting camera-streamer with Device /dev/v4l/by-id/usb-FLH-H62-200426_Integrated_Camera-video-index0 → /dev/video0 …
[03/09/24 14:29:05] crowsnest: ERROR: Start of camera-streamer [cam bed] failed!
[03/09/24 14:29:05] crowsnest: … Done!

config crowsnet

[crowsnest]
log_path: /home/pi/printer_data/logs/crowsnest.log
log_level: verbose
delete_log: true
no_proxy: true

[cam bed]
mode: camera-streamer

#enable_rtsp: true
#rtsp_port: 8554
port: 8080
device: /dev/v4l/by-id/usb-FLH-H62-200426_Integrated_Camera-video-index0 → /dev/video0
max_fps: 25
#custom_flags:
v4l2ctl: focus_auto=0,focus_absolute=30

The only thing I see in the log and crowsnest: ERROR: Start of camera-streamer [cam bed] failed!
I don’t know why, and I’ve already tried ustream and it’s still the same

any tips?

Hello @ricol !

Please either upload your logs as a file or format it as preformatted text:

Format

1 Like

sorry

config
crowsnest.conf (2.8 KB)

log
crowsnest.log (5.6 KB)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.