guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.45k stars 366 forks source link

Webcamd restart in loops then lost video stream #817

Closed Syl20-94 closed 1 year ago

Syl20-94 commented 1 year ago

Hello I switch to Octoprint 1.0.0 654b on my rapsberry pi 4b connected to a MK3 prusa printer,

so I did a backup from previous install in Octoprint 1.8.7 to save installation time. and it works well.

in usage this is OK but I faced a strange behave that I did not have on 0.18 version, I have 2 webcam and on a regular time, image froze and I need to switch from one camera to other to reconnect - I assume that I lost video stream.

I had a look on log and figure out that webcamd generate a lot of logs especially by restarting the deamon each 2 min.

I tried a lot of twicking of the conf file but I can not fix the hint,

Does someone else have the same issue ?

the log look like this

logs_webcamd.txt

What did you expect to happen?

obviously that videostream are constant

What happened instead?

Version of OctoPi

Octopi 1.0.0 64b Octoprint 1.8.7 Python 3.8.10

guysoft commented 1 year ago

What kind of camera? Model?

Syl20-94 commented 1 year ago

What kind of camera? Model?

main one is a Logitec C270 and the other is a C930e which works without problem on my previous octopi install (32 bits, Octopi 0.18 )

guysoft commented 1 year ago

Says here you need to set settings for the C270. I'd start with one and then see how to add the second one: https://community.octoprint.org/docs?search=c270&topic=21149

Source that indicates changes are needed: https://www.reddit.com/r/3Dprinting/comments/pjeif0/comment/hbwnmlf/?utm_source=reddit&utm_medium=web2x&context=3

Also you might get better responses on the community forum, since I am not sure this is an issue I can resolve, because its either related to configuration or changes in Raspberry Pi OS. It might be, but you might get faster responses there from people who have the hardware: https://community.octoprint.org/

Syl20-94 commented 1 year ago

Thank a lot for your help, I will test these point and provide feedback

Syl20-94 commented 1 year ago

Hello I checked again and can't fix it, anyway I figure out I had this behaviour on my previous Octopi 0.18 install so I close the point as this is working like this since a while and is a minor hint