I am trying to get a Pi camera Ver2.1 , Pi 4B working on a Voron 2.4. I followed the Crowsnest Documentation for setting it up and it looks like the camera is being seen but I don't get a camera preview.
#Getting Pi camera working
58 messages · Page 1 of 1 (latest)
Fix your tags. This has nothing to do with Mainsail
Also send me the klipper documentation for the camera. I don't know of such a thing, as Klipper has nothing to do with cams
There are two problems right now:
- camera settings are wrong: https://crowsnest.mainsail.xyz/configuration/cam-section#a-small-note-on-webrtc
- A Raspberry Pi Bug
To fix 2, add the following to the bottom of your /boot/firmware/config.txt and then restart:
[pi4]
gpu_mem=128
That's not the Klipper documentation
My mistake, I am new to Mainsail and Klipper. I meant I followed the Mainsail documentation.
It's not the Mainsail documentation either, but the Crowsnest Documentation. But tbh it's not that easy to see, as the thumbnail says mainsail and at the top left there is written Mainsail
It's just important to understand that these are all independent softwares that create a software stack
Klipper is at the bottom, then comes Moonraker and Mainsail is at the end
Crowsnest is not even in this stack, as it's completely independent. If we just look at the camera, the stack would be closer to Crowsnest->Mainsail, but that's not correct either, as Mainsail needs Moonraker, but Crowsnest doesn't need Moonraker
Updated as requested and rebooted but I still don't see the camera. This camera did work on a printer running marlin and Octoprint.
Please fix the first problem too and not just the second one: https://discordapp.com/channels/758059413700345988/1373435063315726467/1373566202416201768
And don't use the reply function, if you don't reply to a specific message for context
Can you maybe fix your stream instead of adjusting the title over and over again?
Sorry I don't know what you want me to do.
Then just write that maybe...
I linked to this message: https://discordapp.com/channels/758059413700345988/1373435063315726467/1373566202416201768
There I listed two problems. The second you fixed, the first one you ignored:
camera settings are wrong: https://crowsnest.mainsail.xyz/configuration/cam-section#a-small-note-on-webrtc
If you click on the link it tells you this:
In order to use WebRTC, please replace
?action=streamwithwebrtc. Keep in mind this will only work if you usemode: camera-streamer.
Don't change the URL Snapshot! This will be the same as before.
It also shows you this screenshot
Now compare it to your screenshot
No they are correct.
Now we can continue troubleshooting
Set log_level: debug and delete_log: true. Then try to look at the stream once and after that send a new log
There are two possibilities:
- Problem with your touch screen
- You have a long/not properly working cable
I have tried multiple cables, both short and long. My screen looks to be working fine so I could unplug it and see if the camera works then.
Please do so, as this is a common problem with screens
Screen is unpluged, short cable and no camera view.
Oh, I remembered a picam v2 thing. Try these settings:
resolution: 1640x1232
custom_flags: --camera-snapshot.height=1232 --camera-video.height=1232 --camera-stream.height=1232```
Did I do it correctly? If I did nothing changed.
Can you send your camera settings again?
I might be wrong, but I thought camera-streamer does not parse the url you are accessing the stream on.
Request 'POST' '/WebRTC' '' is definitely wrong
I don't know why you changed the url, after the last screenshot you sent
As you can see on my picture the url is case sensitive
Ok my bad, it's working now. Thank you very much.
If there are no further questions, please close this post
Is there a fix to get the camera to work with the display connected?
I assume you want the printer.cfg.
No, the config.txt
Otherwise I would writhe printer.cfg
The config.txt you changed, earlier in the thread
Sorry I don't see a config.txt