mainsail-crew / crowsnest

Webcam Service for multiple Cams
GNU General Public License v3.0
313 stars 74 forks source link

Raspberry Pi Cam 3 "No signal" #83

Closed Hely0n closed 1 year ago

Hely0n commented 1 year ago

What happened

I bought the new Raspberry Pi Camera Model 3 and realized, it wasn't detected. I found out that the cam was just released 3 weeks ago, so i made an "apt update && apt full-upgrade" and it indeed updated some libcamera stuff.

crowsnest stopped working afterwards and after running the uninstall.sh and then "make install" again (with freshly pulled as from today), it was detected and shows some FPS in mainsail, but it says "no Signal" on the image.

libcamera-still worked, so the camera is okay.

Is it normal to have many /dev/video* devices with different numbers? Maybe the culprit is here?

While the crowsnest.log seems to act like everything is fine,

"systemctl status crowsnest.service"

says this:

Jan 31 17:41:33 Ender3 crowsnest[2865]: -- INFO [48.408 stream] -- Requested 3 device buffers, got 3 Jan 31 17:41:33 Ender3 crowsnest[2871]: -- ERROR [48.414 stream] -- Can't start capturing: Invalid argument Jan 31 17:41:34 Ender3 crowsnest[2883]: -- INFO [48.419 stream] -- Sleeping 1 seconds before new stream init ... Jan 31 17:41:35 Ender3 crowsnest[2901]: -- INFO [49.421 stream] -- Using input channel: 0 Jan 31 17:41:36 Ender3 crowsnest[2907]: -- INFO [49.422 stream] -- Using resolution: 1920x1080 Jan 31 17:41:36 Ender3 crowsnest[2913]: -- INFO [49.422 stream] -- Using format: MJPEG Jan 31 17:41:36 Ender3 crowsnest[2919]: -- INFO [49.422 stream] -- Using HW FPS: 15 Jan 31 17:41:37 Ender3 crowsnest[2925]: -- ERROR [49.422 stream] -- Device doesn't support setting of HW encoding quality parameters Jan 31 17:41:37 Ender3 crowsnest[2931]: -- INFO [49.422 stream] -- Using IO method: MMAP Jan 31 17:41:39 Ender3 crowsnest[2951]: -- INFO [49.442 stream] -- Device fd=8 closed

What did you expect to happen

The new Raspberry Pi camera works plug & play like always, at least after system upgrade.

How to reproduce

Just try to use a raspberry pi camera 3.

Maybe the error is somewhere else but as I ordered the cam because my old Raspicam v2.1 broke by trying to fit it in an enclosue (so not software related damage) and I can't test it now.

Additional information

crowsnest.log, just in case:

[01/31/23 17:40:37] crowsnest: crowsnest - A webcam Service for multiple Cams and Stream Services. [01/31/23 17:40:37] crowsnest: Version: v3.0.6-23-g00fe721 [01/31/23 17:40:37] crowsnest: Prepare Startup ... [01/31/23 17:40:38] crowsnest: INFO: Host information: [01/31/23 17:40:38] crowsnest: Host Info: Distribution: Debian GNU/Linux 11 (bullseye) [01/31/23 17:40:38] crowsnest: Host Info: Release: MainsailOS release 1.0.1 (bullseye) [01/31/23 17:40:38] crowsnest: Host Info: Kernel: Linux 5.15.84-v8+ aarch64 [01/31/23 17:40:38] crowsnest: Host Info: Model: Raspberry Pi 3 Model B Rev 1.2 [01/31/23 17:40:38] crowsnest: Host Info: Available CPU Cores: 4 [01/31/23 17:40:38] crowsnest: Host Info: Available Memory: 751596 kB [01/31/23 17:40:38] crowsnest: Host Info: Diskspace (avail. / total): 1.3G / 7.1G [01/31/23 17:40:38] crowsnest: INFO: Checking Dependencys [01/31/23 17:40:38] crowsnest: Dependency: 'crudini' found in /usr/bin/crudini. [01/31/23 17:40:39] crowsnest: Dependency: 'find' found in /usr/bin/find. [01/31/23 17:40:39] crowsnest: Dependency: 'logger' found in /usr/bin/logger. [01/31/23 17:40:39] crowsnest: Dependency: 'xargs' found in /usr/bin/xargs. [01/31/23 17:40:39] crowsnest: Dependency: 'ffmpeg' found in /usr/bin/ffmpeg. [01/31/23 17:40:39] crowsnest: Dependency: 'ustreamer' found in bin/ustreamer/ustreamer. [01/31/23 17:40:39] crowsnest: Dependency: 'rtsp-simple-server' found in bin/rtsp-simple-server/rtsp-simple-server. [01/31/23 17:40:40] crowsnest: Version Control: ustreamer is up to date. (v5.37) [01/31/23 17:40:41] crowsnest: Version Control: rtsp-simple-server is up to date. (v0.20.2) [01/31/23 17:40:46] crowsnest: Version Control: ffmpeg is up to date. (4.3.5-0+deb11u1+rpt3) [01/31/23 17:40:46] crowsnest: INFO: Print Configfile: '/home/pi/printer_data/config/crowsnest.conf' [01/31/23 17:40:46] crowsnest: [crowsnest] [01/31/23 17:40:46] crowsnest: log_path: ~/printer_data/logs/crowsnest.log [01/31/23 17:40:46] crowsnest: log_level: verbose [01/31/23 17:40:46] crowsnest: delete_log: false [01/31/23 17:40:46] crowsnest: [01/31/23 17:40:46] crowsnest: [cam 1] [01/31/23 17:40:46] crowsnest: mode: mjpg [01/31/23 17:40:46] crowsnest: port: 8080 [01/31/23 17:40:46] crowsnest: device: /dev/video0 [01/31/23 17:40:46] crowsnest: resolution: 1920x1080 [01/31/23 17:40:46] crowsnest: max_fps: 15 [01/31/23 17:40:46] crowsnest: INFO: Detect available Devices [01/31/23 17:40:47] crowsnest: INFO: Found 1 total available Device(s) [01/31/23 17:40:47] crowsnest: Detected 'Raspicam' Device -> /dev/video0 [01/31/23 17:40:47] crowsnest: Supported Formats:

[01/31/23 17:40:47] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:47] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:47] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:47] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2

[01/31/23 17:40:48] crowsnest: Size: Stepwise 32x32 - 4608x2592 with step 2/2 [01/31/23 17:40:48] crowsnest: Supported Controls: [01/31/23 17:40:48] crowsnest: [01/31/23 17:40:48] crowsnest: User Controls [01/31/23 17:40:48] crowsnest: [01/31/23 17:40:48] crowsnest: brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=50 flags=slider [01/31/23 17:40:48] crowsnest: contrast 0x00980901 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider [01/31/23 17:40:48] crowsnest: saturation 0x00980902 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider [01/31/23 17:40:48] crowsnest: red_balance 0x0098090e (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider [01/31/23 17:40:48] crowsnest: blue_balance 0x0098090f (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider [01/31/23 17:40:48] crowsnest: horizontal_flip 0x00980914 (bool) : default=0 value=0 [01/31/23 17:40:48] crowsnest: vertical_flip 0x00980915 (bool) : default=0 value=0 [01/31/23 17:40:48] crowsnest: power_line_frequency 0x00980918 (menu) : min=0 max=3 default=1 value=1 [01/31/23 17:40:48] crowsnest: 0: Disabled [01/31/23 17:40:49] crowsnest: 1: 50 Hz [01/31/23 17:40:49] crowsnest: 2: 60 Hz [01/31/23 17:40:49] crowsnest: 3: Auto [01/31/23 17:40:49] crowsnest: sharpness 0x0098091b (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider [01/31/23 17:40:49] crowsnest: color_effects 0x0098091f (menu) : min=0 max=15 default=0 value=0 [01/31/23 17:40:49] crowsnest: 0: None [01/31/23 17:40:49] crowsnest: 1: Black & White [01/31/23 17:40:49] crowsnest: 2: Sepia [01/31/23 17:40:49] crowsnest: 3: Negative [01/31/23 17:40:49] crowsnest: 4: Emboss [01/31/23 17:40:49] crowsnest: 5: Sketch [01/31/23 17:40:49] crowsnest: 6: Sky Blue [01/31/23 17:40:49] crowsnest: 7: Grass Green [01/31/23 17:40:49] crowsnest: 8: Skin Whiten [01/31/23 17:40:49] crowsnest: 9: Vivid [01/31/23 17:40:49] crowsnest: 10: Aqua [01/31/23 17:40:49] crowsnest: 11: Art Freeze [01/31/23 17:40:49] crowsnest: 12: Silhouette [01/31/23 17:40:49] crowsnest: 13: Solarization [01/31/23 17:40:49] crowsnest: 14: Antique [01/31/23 17:40:49] crowsnest: 15: Set Cb/Cr [01/31/23 17:40:49] crowsnest: rotate 0x00980922 (int) : min=0 max=360 step=90 default=0 value=0 flags=modify-layout [01/31/23 17:40:49] crowsnest: color_effects_cbcr 0x0098092a (int) : min=0 max=65535 step=1 default=32896 value=32896 [01/31/23 17:40:49] crowsnest: [01/31/23 17:40:49] crowsnest: Codec Controls [01/31/23 17:40:49] crowsnest: [01/31/23 17:40:49] crowsnest: video_bitrate_mode 0x009909ce (menu) : min=0 max=1 default=0 value=0 flags=update [01/31/23 17:40:49] crowsnest: 0: Variable Bitrate [01/31/23 17:40:49] crowsnest: 1: Constant Bitrate [01/31/23 17:40:49] crowsnest: video_bitrate 0x009909cf (int) : min=25000 max=25000000 step=25000 default=10000000 value=10000000 [01/31/23 17:40:49] crowsnest: repeat_sequence_header 0x009909e2 (bool) : default=0 value=0 [01/31/23 17:40:49] crowsnest: force_key_frame 0x009909e5 (button) : flags=write-only, execute-on-write [01/31/23 17:40:49] crowsnest: h264_minimum_qp_value 0x00990a61 (int) : min=0 max=51 step=1 default=0 value=0 [01/31/23 17:40:50] crowsnest: h264_maximum_qp_value 0x00990a62 (int) : min=0 max=51 step=1 default=0 value=0 [01/31/23 17:40:50] crowsnest: h264_i_frame_period 0x00990a66 (int) : min=0 max=2147483647 step=1 default=60 value=60 [01/31/23 17:40:50] crowsnest: h264_level 0x00990a67 (menu) : min=0 max=13 default=11 value=11 [01/31/23 17:40:50] crowsnest: 0: 1 [01/31/23 17:40:50] crowsnest: 1: 1b [01/31/23 17:40:50] crowsnest: 2: 1.1 [01/31/23 17:40:50] crowsnest: 3: 1.2 [01/31/23 17:40:50] crowsnest: 4: 1.3 [01/31/23 17:40:50] crowsnest: 5: 2 [01/31/23 17:40:50] crowsnest: 6: 2.1 [01/31/23 17:40:50] crowsnest: 7: 2.2 [01/31/23 17:40:50] crowsnest: 8: 3 [01/31/23 17:40:50] crowsnest: 9: 3.1 [01/31/23 17:40:50] crowsnest: 10: 3.2 [01/31/23 17:40:50] crowsnest: 11: 4 [01/31/23 17:40:50] crowsnest: 12: 4.1 [01/31/23 17:40:50] crowsnest: 13: 4.2 [01/31/23 17:40:50] crowsnest: h264_profile 0x00990a6b (menu) : min=0 max=4 default=4 value=4 [01/31/23 17:40:50] crowsnest: 0: Baseline [01/31/23 17:40:50] crowsnest: 1: Constrained Baseline [01/31/23 17:40:50] crowsnest: 2: Main [01/31/23 17:40:50] crowsnest: 4: High [01/31/23 17:40:50] crowsnest: [01/31/23 17:40:50] crowsnest: Camera Controls [01/31/23 17:40:50] crowsnest: [01/31/23 17:40:50] crowsnest: auto_exposure 0x009a0901 (menu) : min=0 max=3 default=0 value=0 [01/31/23 17:40:50] crowsnest: 0: Auto Mode [01/31/23 17:40:50] crowsnest: 1: Manual Mode [01/31/23 17:40:50] crowsnest: exposure_time_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=1000 value=1000 [01/31/23 17:40:50] crowsnest: exposure_dynamic_framerate 0x009a0903 (bool) : default=0 value=0 [01/31/23 17:40:50] crowsnest: auto_exposure_bias 0x009a0913 (intmenu): min=0 max=24 default=12 value=12 [01/31/23 17:40:50] crowsnest: 0: -4000 (0xfffffffffffff060) [01/31/23 17:40:50] crowsnest: 1: -3667 (0xfffffffffffff1ad) [01/31/23 17:40:50] crowsnest: 2: -3333 (0xfffffffffffff2fb) [01/31/23 17:40:51] crowsnest: 3: -3000 (0xfffffffffffff448) [01/31/23 17:40:51] crowsnest: 4: -2667 (0xfffffffffffff595) [01/31/23 17:40:51] crowsnest: 5: -2333 (0xfffffffffffff6e3) [01/31/23 17:40:51] crowsnest: 6: -2000 (0xfffffffffffff830) [01/31/23 17:40:51] crowsnest: 7: -1667 (0xfffffffffffff97d) [01/31/23 17:40:51] crowsnest: 8: -1333 (0xfffffffffffffacb) [01/31/23 17:40:51] crowsnest: 9: -1000 (0xfffffffffffffc18) [01/31/23 17:40:51] crowsnest: 10: -667 (0xfffffffffffffd65) [01/31/23 17:40:51] crowsnest: 11: -333 (0xfffffffffffffeb3) [01/31/23 17:40:51] crowsnest: 12: 0 (0x0) [01/31/23 17:40:51] crowsnest: 13: 333 (0x14d) [01/31/23 17:40:51] crowsnest: 14: 667 (0x29b) [01/31/23 17:40:51] crowsnest: 15: 1000 (0x3e8) [01/31/23 17:40:51] crowsnest: 16: 1333 (0x535) [01/31/23 17:40:51] crowsnest: 17: 1667 (0x683) [01/31/23 17:40:51] crowsnest: 18: 2000 (0x7d0) [01/31/23 17:40:51] crowsnest: 19: 2333 (0x91d) [01/31/23 17:40:51] crowsnest: 20: 2667 (0xa6b) [01/31/23 17:40:51] crowsnest: 21: 3000 (0xbb8) [01/31/23 17:40:51] crowsnest: 22: 3333 (0xd05) [01/31/23 17:40:51] crowsnest: 23: 3667 (0xe53) [01/31/23 17:40:51] crowsnest: 24: 4000 (0xfa0) [01/31/23 17:40:51] crowsnest: white_balance_auto_preset 0x009a0914 (menu) : min=0 max=10 default=1 value=1 [01/31/23 17:40:51] crowsnest: 0: Manual [01/31/23 17:40:51] crowsnest: 1: Auto [01/31/23 17:40:51] crowsnest: 2: Incandescent [01/31/23 17:40:51] crowsnest: 3: Fluorescent [01/31/23 17:40:51] crowsnest: 4: Fluorescent H [01/31/23 17:40:51] crowsnest: 5: Horizon [01/31/23 17:40:51] crowsnest: 6: Daylight [01/31/23 17:40:51] crowsnest: 7: Flash [01/31/23 17:40:51] crowsnest: 8: Cloudy [01/31/23 17:40:51] crowsnest: 9: Shade [01/31/23 17:40:51] crowsnest: 10: Greyworld [01/31/23 17:40:51] crowsnest: image_stabilization 0x009a0916 (bool) : default=0 value=0 [01/31/23 17:40:51] crowsnest: iso_sensitivity 0x009a0917 (intmenu): min=0 max=4 default=0 value=0 [01/31/23 17:40:51] crowsnest: 0: 0 (0x0) [01/31/23 17:40:51] crowsnest: 1: 100000 (0x186a0) [01/31/23 17:40:52] crowsnest: 2: 200000 (0x30d40) [01/31/23 17:40:52] crowsnest: 3: 400000 (0x61a80) [01/31/23 17:40:52] crowsnest: 4: 800000 (0xc3500) [01/31/23 17:40:52] crowsnest: iso_sensitivity_auto 0x009a0918 (menu) : min=0 max=1 default=1 value=1 [01/31/23 17:40:52] crowsnest: 0: Manual [01/31/23 17:40:52] crowsnest: 1: Auto [01/31/23 17:40:52] crowsnest: exposure_metering_mode 0x009a0919 (menu) : min=0 max=3 default=0 value=0 [01/31/23 17:40:52] crowsnest: 0: Average [01/31/23 17:40:52] crowsnest: 1: Center Weighted [01/31/23 17:40:52] crowsnest: 2: Spot [01/31/23 17:40:52] crowsnest: 3: Matrix [01/31/23 17:40:52] crowsnest: scene_mode 0x009a091a (menu) : min=0 max=13 default=0 value=0 [01/31/23 17:40:52] crowsnest: 0: None [01/31/23 17:40:52] crowsnest: 8: Night [01/31/23 17:40:52] crowsnest: 11: Sports [01/31/23 17:40:52] crowsnest: [01/31/23 17:40:52] crowsnest: JPEG Compression Controls [01/31/23 17:40:52] crowsnest: [01/31/23 17:40:52] crowsnest: compression_quality 0x009d0903 (int) : min=1 max=100 step=1 default=30 value=30 [01/31/23 17:40:52] crowsnest: INFO: No usable CSI Devices found. [01/31/23 17:40:52] crowsnest: V4L2 Control: [01/31/23 17:40:53] crowsnest: No parameters set for [cam 1]. Skipped. [01/31/23 17:40:54] crowsnest: INFO: Blockyfix: Setting video_bitrate_mode to constant. [01/31/23 17:40:54] crowsnest: Try to start configured Cams / Services... [01/31/23 17:41:13] crowsnest: INFO: Configuration of Section [cam 1] looks good. Continue... [01/31/23 17:41:15] crowsnest: ... Done! [01/31/23 17:41:16] crowsnest: Starting ustreamer with Device /dev/video0 ...

Hely0n commented 1 year ago

I did a fresh reinstall on another Pi and it's the same and I found out it's a issue from ustreamer: https://github.com/pikvm/ustreamer/issues/198

Is there some workaround to use until they fix it? Maybe an alternative to ustreamer or the whole crowsnest that's compatible to Mainsail/Moonraker

Hely0n commented 1 year ago

Thanks to the swarm intelligence on the discord server, we have a workaround!!

https://github.com/roamingthings/spyglass

KwadFan commented 1 year ago

That one will come, one day... I am bit busy right now but yeah, there is already an experimental branch ...

But..

THERE IS ABSOLUTLY NO SUPPORT FOR OTHER THAN THE STABLE VERSION!

Thanks in Advance

JD-Harding commented 1 year ago

Talk about timing - I've been trying to get my Pi Cam 3 working for two days with no luck. This might explain it

Hely0n commented 1 year ago

Yeah for me it was this whole day, until i looked at the discord channel. Just try out https://github.com/roamingthings/spyglass, it's very easy. I added it as a systemctl service for autostarting. One day Crowsnest is fixed and we can switch back, as there are some drawbacks like no adaptive mjpeg.

JD-Harding commented 1 year ago

I might give that a try but, until then, I think I might just reinstall my trusty logitech until crowsnest is back on its feet.

kaibsora commented 1 year ago

Please note, this is not an issue with crowsnest by any means. this is an issue with the newer cameras that arent able to use the old libraries(sony sensor based cameras like the pi cam 3) usb cameras should not have any issues, even using a sony sensor. Its a flaw in the way raspbian buster handles camera devices on csi now, specifically related to raspberry. this is why libcamera works. Libcamera was created to be able to use these new cams, by the raspberry pi foundation.

For more information, please see this issue: https://github.com/mainsail-crew/crowsnest/issues/67

Credits to @ayucam for finding this issue with the system itself, and working to implement ways around it. Credits to the mainsail team for their understanding of it and trying to work around it.

Caouette1988 commented 1 year ago

on this website, these guy susceffuly make work the pi cam 3 by installing a streamer in bullseye. You can give it a try. The final working method is the post # 72 Skip the first step, as it is an octoprint image.

https://community.octoprint.org/t/pi-camera-v3-imx-chipset-based-cameras-not-working/49022/72

KwadFan commented 1 year ago

There is already a sideproject for raspicam v3 ...

https://github.com/roamingthings/spyglass

KwadFan commented 1 year ago

But at some point it will find its way to crowsnest ...

bodak commented 1 year ago

Thanks for the workaround for raspicam V3.

I found one instruction missing from this thread and https://github.com/roamingthings/spyglass: You have to re-enable libcamera in boot config sudo vi /boot/config.txt Under ## Disable libcamera (interferes with ustreamer, when using raspicams) change to 1 camera_auto_detect=1

ubrider commented 1 year ago

Any news on an update for it ? i can't get it to work in spyglass... and want multi cam

KwadFan commented 1 year ago

Yes, I am almost done with develop branch using camera-streamer. We found 2 little bugs, that I will fix during this week. But you could try it if you are interessted. Cannt give support yet, but it works somehow/somewhat ...

stabias commented 1 year ago

I'm having problems with spyglass too. Any updates on solving this issue?

rizeddd commented 1 year ago

Hi , any news on this ? I just bought a Pi Cam 3 and didnt check it wouldnt work :(

stabias commented 1 year ago

I'm having problems with spyglass too. Any updates on solving this issue?

As for now - no

bobdivx commented 1 year ago

hello, look this:

https://robertmarks.cloud/posts/2023/02/setting-up-pi-camera-module-3-in-mainsailos/

stabias commented 1 year ago

pi@mainsailos:~ $ libcamera-hello Preview window unavailable [0:01:57.680285034] [1433] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70 [0:01:57.699442216] [1434] ERROR V4L2 v4l2_device.cpp:352 'imx708': Unable to set controls: Device or resource busy [0:01:57.712827110] [1434] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to ``Unicam device /dev/media4 and ISP device /dev/media1 [0:01:57.713162200] [1433] INFO Camera camera.cpp:841 Pipeline handler in use by another process ERROR: *** failed to acquire camera /base/soc/i2c0mux/i2c@1/imx708@1a *** I got this

TacoLococo commented 1 year ago

pi@mainsailos:~ $ libcamera-hello Preview window unavailable [0:01:57.680285034] [1433] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70 [0:01:57.699442216] [1434] ERROR V4L2 v4l2_device.cpp:352 'imx708': Unable to set controls: Device or resource busy [0:01:57.712827110] [1434] INFO RPI raspberrypi.cpp:1476 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a toUnicam device /dev/media4 and ISP device /dev/media1 `[0:01:57.713162200] [1433] INFO Camera camera.cpp:841 Pipeline handler in use by another process`ERROR: *** failed to acquire camera /base/soc/i2c0mux/i2c@1/imx708@1a *** I got this

Did you find a solution for this? I've got the same issue... "Device or resource busy".

meteyou commented 1 year ago
Pipeline handler in use by another process

shutdown/stop all other services which try to open your webcam...

Hely0n commented 1 year ago

Just updated crowsnest to let it replace spyglass again, but it doesn't work. I managed to get it working by logs (it says ... DONE! Starting camera-streamer with Device /dev/video0 ...) But there is no image either in mainsail, nor on the mobileraker App and if I call the page manually, it says "server error", while the logs don't change and it seems like everything works.

Moonraker says "HttpException: Stream returned 500 status"

Hely0n commented 1 year ago

Okay you have to replace the "device" parameter in the config to the one that gets listed in the log manually. Now it works, but I think this should happen automatically and the logs shouldn't say that everything is okay 😁.

But otherwise, well done guys! I can imagine how much work was involved to make this update.

godmanpicoli commented 1 year ago

how was your setup? my cam still doesn't work

Okay you have to replace the "device" parameter in the config to the one that gets listed in the log manually. Now it works, but I think this should happen automatically and the logs shouldn't say that everything is okay 😁.

But otherwise, well done guys! I can imagine how much work was involved to make this update.

TacoLococo commented 1 year ago

I reinstalled Mainsail OS from scratch to get mine to work. Just saved my config files, reimaged, installed Spyglass and it was all hunky-dory.

meteyou commented 1 year ago

@TacoLococo you don't need spyglass with the new mainsailOS, because camera-streamer also support v3 cams...

github-actions[bot] commented 1 year ago

Ahoi!

It looks like this ticket is a request for help (or similar). Many helpful people will not see your message here and you are unlikely to get a useful response.

We use github to handle bugreports, feature requests and planning new releases.

Please use our Discord-Server for help: discord.gg/mainsail

This ticket will be automatically closed.

Fair wind and a following sea! ~ Your friendly MainsailGithubBot

PS: I'm just an automated script, not a real sailor.

chalb0 commented 1 year ago

Hi, I had been following this closely and had been impacted by this.

There is now a fix in Crowsnest that supports Pi Camera Module 3. I prefer to use this option as it fully supports Obico where the spyglass option doesn't seem to.

FIX: Update Crowsnest as per guide here: https://crowsnest.mainsail.xyz/faq/upgrade-from-v3-to-v4

NOTE if you upgrade from Mainsail GUI, you will have to manually uninstall the old version, read the guide very carefully!

Hope this helps someone!