ayufan / camera-streamer

High-performance low-latency camera streamer for Raspberry PI's
329 stars 50 forks source link

video4linux was not met #29

Open frogmaker opened 1 year ago

frogmaker commented 1 year ago

Hi! When I start daemon I obtain error:

sudo systemctl status camera-streamer-arducam-16MP ● camera-streamer-arducam-16MP.service - camera-streamer web camera Loaded: loaded (/......../camera-streamer/service/camera-streamer-arducam-16MP.service; enabled; vendor preset: enabled) Active: inactive (dead) Condition: start condition failed at Sat 2023-01-14 21:56:41 CET; 2s ago └─ ConditionPathExists=/sys/bus/i2c/drivers/imx519/10-001a/video4linux was not met

Do you know what is the problem? I have raspberryPi 4, 5.15.84-v8+ aarch64 GNU/Linux, bullseye and HQ reapberryPi camera

When I run ./libcamera_camera.sh:

++ nproc

and ./camera-streamer device/v4l2/device.c: CAMERA: Device path=/dev/video0 fd=14 opened device/v4l2/device_options.c: CAMERA: Configuring option horizontalflip (00980914) = 0 device/v4l2/device_options.c: CAMERA: Configuring option verticalflip (00980915) = 0 device/buffer_list.c: CAMERA:capture: Using: 1920x1080/pBCC, bytesperline=2880 device/camera/camera_input.c: CAMERA: Unsupported camera format=pBCC

Dark360 commented 1 year ago

Hi! When I start daemon I obtain error:

sudo systemctl status camera-streamer-arducam-16MP ● camera-streamer-arducam-16MP.service - camera-streamer web camera Loaded: loaded (/......../camera-streamer/service/camera-streamer-arducam-16MP.service; enabled; vendor preset: enabled) Active: inactive (dead) Condition: start condition failed at Sat 2023-01-14 21:56:41 CET; 2s ago └─ ConditionPathExists=/sys/bus/i2c/drivers/imx519/10-001a/video4linux was not met

Do you know what is the problem? I have raspberryPi 4, 5.15.84-v8+ aarch64 GNU/Linux, bullseye and HQ reapberryPi camera

When I run ./libcamera_camera.sh:

++ nproc

  • make -j4 make: 'camera-streamer' is up to date.
  • ./camera-streamer -camera-path=/base/soc/i2c0mux/i2c@1/imx519@1a -camera-type=libcamera -camera-format=YUYV [1:31:43.022122477] [5575] INFO Camera camera_manager.cpp:299 libcamera v0.0.2+55-5df5b72c [1:31:43.054707230] [5586] INFO RPI raspberrypi.cpp:1425 Registered camera /base/soc/i2c0mux/i2c@1/imx477@1a to Unicam device /dev/media1 and ISP device /dev/media3 device/libcamera/device.cc: CAMERA: Available cameras (1) device/libcamera/device.cc: CAMERA: - /base/soc/i2c0mux/i2c@1/imx477@1a device/libcamera/device.cc: CAMERA: Camera /base/soc/i2c0mux/i2c@1/imx519@1a was not found. device/device.c: CAMERA: Can't open device: /base/soc/i2c0mux/i2c@1/imx519@1a

and ./camera-streamer device/v4l2/device.c: CAMERA: Device path=/dev/video0 fd=14 opened device/v4l2/device_options.c: CAMERA: Configuring option horizontalflip (00980914) = 0 device/v4l2/device_options.c: CAMERA: Configuring option verticalflip (00980915) = 0 device/buffer_list.c: CAMERA:capture: Using: 1920x1080/pBCC, bytesperline=2880 device/camera/camera_input.c: CAMERA: Unsupported camera format=pBCC

What type of camera are you using?

It would appears according to the logs your device is seeing:

/base/soc/i2c0mux/i2c@1/imx477@1a

and

camera-streamer-arducam-16MP is configured for /base/soc/i2c0mux/i2c@1/imx519@1a

You may need to create your own camera-streamer-arducam-16MP.service for you specific camera.

I created this own for the Raspberry Pi Camera 3 Wide and it is working.

camera-streamer-pi708-12MP.service.txt