#Fresh Install, lost Raspicam

56 messages · Page 1 of 1 (latest)

hushed axle
#

Hello, I did a fresh install of Mainsail OS. I used KIAUH to reinstall Moonraker, Klipper, and Crowsnest because I am running 3 instances. Since the reinstall, I have lost access to my raspicam. My USB camera still works and I can configure it normally. This was working correctly prior to the update. I have tried both camera-streamer and ustreamer to no effect. I have also tried reducing both cameras to the bare minimum resolution provided in crowsnest.log.

https://pastebin.com/w5uJbvV8 - Crowsnest log - Debug/Delete=true

bright estuary
#

There would be a second option that would "patch" crowsnest v4 but that might not work that good with usb and raspicam. I didn't test what exactly would happen with that patch

hushed axle
#

Would that work considering I'm running Bullseye?

bright estuary
#

There is no problem with the old version on bullseye. Only problems with the new version on buster

hushed axle
#

Ahh I see. Thank you.

#

Well now I'm getting this.

#

[07/06/23 16:38:05] crowsnest: crowsnest - A webcam Service for multiple Cams and Stream Services.
[07/06/23 16:38:05] crowsnest: Version: v3.0.7-4-g0bdc1bc
[07/06/23 16:38:05] crowsnest: Prepare Startup ...
[07/06/23 16:38:05] crowsnest: INFO: Host information:
[07/06/23 16:38:05] crowsnest: Host Info: Distribution: Raspbian GNU/Linux 11 (bullseye)
[07/06/23 16:38:05] crowsnest: Host Info: Release: MainsailOS release 1.2.1 (bullseye)
[07/06/23 16:38:05] crowsnest: Host Info: Kernel: Linux 6.1.21-v7+ armv7l
[07/06/23 16:38:05] crowsnest: Host Info: Model: Raspberry Pi 3 Model B Plus Rev 1.3
[07/06/23 16:38:05] crowsnest: Host Info: Available CPU Cores: 4
[07/06/23 16:38:05] crowsnest: Host Info: Available Memory: 858828 kB
[07/06/23 16:38:05] crowsnest: Host Info: Diskspace (avail. / total): 23G / 29G
[07/06/23 16:38:05] crowsnest: INFO: Checking Dependencys
[07/06/23 16:38:05] crowsnest: Dependency: 'crudini' found in /usr/bin/crudini.
[07/06/23 16:38:05] crowsnest: Dependency: 'find' found in /usr/bin/find.
[07/06/23 16:38:05] crowsnest: Dependency: 'logger' found in /usr/bin/logger.
[07/06/23 16:38:05] crowsnest: Dependency: 'xargs' found in /usr/bin/xargs.
[07/06/23 16:38:05] crowsnest: Dependency: 'ffmpeg' found in /usr/bin/ffmpeg.
[07/06/23 16:38:05] crowsnest: Dependency: 'ustreamer' found in bin/ustreamer/ustreamer.
[07/06/23 16:38:05] crowsnest: Dependency: 'rtsp-simple-server' not found. Exiting!

#

It seems the folder exists but there is only a version file in it.

#

Just ran

#

cd ~/crowsnest
make buildclean
make build

#

Okay, that has gotten me back to where I was. The USB camera is working now and the Raspicam is still down.

#

getting new log

bright estuary
#

You have to edit your /boot/config.txt back again. So change camera_auto_detect=1 to camera_auto_detect=0 and add start_x=1 directly below it. Then reboot

hushed axle
#

do you mean to camera_auto_detect=0?

bright estuary
#

Yeah sry ^^

hushed axle
#

Had to fiddle with the device addresses some more but we have lift off thank you so much

bright estuary
#

It could be that the /dev/video numbers are swapping on system reboots, so if you can't see your picam anymore, you have to check the logs for the correct path

hushed axle
#

Starting to think maybe my raspicam is going bad. It's working now but it's flickering weirdly. I've never seen this behavior. The FPS is all over the map too

#

This all started because I wanted to use WebRTC but it still doesn't function. I'll be happy if I can just get normal cameras back.

bright estuary
#

Sadly you can't use the ov5647 with camera-streamer. Also I observed sometimes problems that people got after the update of crowsnest even if they downgrade afterwards

#

Can you send your /boot/config.txt real quick? Maybe changing one specific option helps

bright estuary
hushed axle
#

sure

bright estuary
#

Try to comment out dtoverlay=vc4-kms-v3d and then reboot. Maybe that will help

#

Otherwise, you could try a fresh installation on a spare sdcard, just to check if something might be messed up on your image.
Fresh installations can really make some things magically work......

hushed axle
#

This is a fresh install lol like yesterday.

#

giving that a shot now

bright estuary
#

Ok, then it's not that likely ^^
But maybe setting old crowsnest up without the raspicam attached and then connecting it, after the setup and the pi shut downed ofc, will work. I already saw enough things that proofed me that this whole camera thing is just really messed up....

hushed axle
#

Yeah, I'm working on this during some downtime between jobs so until I find work I can't replace the cam. Any idea how to change the focus on this thing? It seems super zoomed in now. I was able to get rid of the flicker by changing to adaptive mpeg and restricting to 20 fps

bright estuary
#

What settings are you using right now?

hushed axle
#

I figured it out

#

changing the resolution seems to effect the zoom

bright estuary
#

Are you using ustreamer right now or camera-streamer?

#

You have legacy stack so ustreamer ig

hushed axle
#

ustreamer

bright estuary
#

I didn't know that ustreamer suffers from that problem too

hushed axle
bright estuary
#

Can you send a log?

hushed axle
#

sure

bright estuary
#

That config looks still like crowsnest v4

hushed axle
bright estuary
#

Just like I thought, it's using the fallbacks. If you want to clean it up a bit you would have to comment out enable_rtsp and rtsp_port and change mode to mjpg. Nothing bad happens if you don't have the right values, but your log doesn't throw all the unnecessary error.
For reference: https://github.com/mainsail-crew/crowsnest/blob/legacy/v3/resources/crowsnest.conf

GitHub

Webcam Service for multiple Cams. Contribute to mainsail-crew/crowsnest development by creating an account on GitHub.

hushed axle
#

I will clean that up right now. camera doesn't like the 1920x1080 resolution. Once I dropped that back to 1280x720 the flickering stops after being set back to 30 fps

#

memory buffer?

bright estuary
hushed axle
#

Oh there was no error, I was just taking a wild guess as to why it would have issues at that resolution.

#

The only errors I'm seeing in the log are are

#

[07/06/23 17:46:00] crowsnest: DEBUG: ustreamer [cam 1]: -- ERROR [1046.113 stream] -- Device doesn't support setting of HW encoding quality parameters

#

and the exact same for cam 2

#

Otherwise all is functioning as normally as I would expect.

bright estuary
hushed axle
#

No worries, you have been beyond helpful and I can't thank you enough for the time you put in on the entire project let alone my little error.