Hello.
I am fighting since monday to get the USB WEBCAM working with octoprint. I used mjpg-streamer for webcam.
My problem is:
When 3D printing, everything appears to work fine, until I get an “Error: Commection unexpectedly failed.”, and octopring closes the connection.
This is showing up in the octoprint LOG:
Send: N5490 G0 F5400 X123.6 Y84.44176*
Unexpected error while reading serial port, please consult octoprint.log for details: SerialException: ‘device reports readiness to read but returned no data (device disconnected or multiple access on port?)’ @ comm.py:_readline:4175
Please see Making sure you're not a bot! for possible reasons of this.
Changing monitoring state from “Printing” to “Offline after error”
Connection closed, closing down monitor
This is a nightmare, because without communication the hot nozzle stucks in the melted plastic, in worst case the entire weekend long.
What I permanently saw was a flickering image (approx. 3mm high stripe), where either something or the correct image appears.
With disabled mjpg-streamer printing works perfectly.
Now I give it a try with ffmpeg and a python script as web server. here the picture is stable.
Before changing to this, I wanted to run the USB camera on OTG to separate it from USB (used for Arduino), but whatever I tried, the camera did not appear in USB.
So my idea: Is OTG not working at the moment ?