Closed pelegw closed 1 month ago
Running ustreamer manually gives the following error:
The camera is a c270 so it should support MJPEG.
Some of the dmesg errors and the first ustreamer error are "normal" I think. I also have them, but the dmesg errors seems to vary a bit depending on the camera model. But the cameras work. Tested the official one an a generic webcam.
I think the issue is that "Mainloop select error()". Have you tried full power off? Is there a difference in booting with the camera already attached vs not?
Btw. the camera autostart script does not set the framerate, it takes whatever is supported by the camera.
The error is because for some reason, the camera is not encoding mjpeg, I have no idea why it worked and stopped working. I'll try an Arducam when it arrives next week instead and will update here.
Some camera's have weird quirks, one of my collegues had a camera which after using under linux was tinted blue. Under windows it went normal again but as soon as you used it on any linux machine it went blue again. Some weird register setting in the firmware probably.
Launching ustreamer with --io-method=USERPTR seemed to solve the problem.
It ran once, then the same error comes back. I'm starting to think the camera may be cursed.
Adding the --device-timeout=2 option seems to have solved the issue and the camera is now working. This time, it survived multiple printer reboots and camera disconnects. I suggest adding this option to the camear autostart script, it shouldn't affect performance but may help solve this for others.
@pelegw Great you were able to find the root cause! I will look into that parameter and then probably add it to the script.
Fix is included and master and will be part of the next release.
Hi Everyone, I wonder if anyone ran into this issue as well. I have a logitech c270 attached to the printer, and on first load it worked well. After I shut the printer down though, it won't load anymore. Tried rebooting the system but still nothing.
When I attach it this is the message I'm getting:
The streamer runs, but I'm getting a no-signal message.