Webcam stream not working


The webcam stream via the web frontend worked 2 months ago. Now it only shows "Webcam Stream Loading" on a black background. When I use the iPad app the cam works just fine but not on the website.
I also tried to change the USB ports but it didn't help. I have the latest version of Octoprint installed.

Thanks in advance


What browser are we talking about?


Chrome but I also tried FF which didn't work either. Both the latest versions.


Open another tab and visit http://octopi.local:8080/ and see what's there.


There is a shot from the cam.


Brilliant. That means that mjpg_streamer is running and seems to be happy. I'm guessing that you're seeing two images, one a snapshot and one a video. The second one is something like http://octopi.local:8080/?action=stream . Just the / path from before by itself is some HTML which includes both outputs.

You might want to visit your OctoPrint -> Settings -> Webcam & Timelapse and see if that's been changed from the default.

If you're trying to reach your OctoPrint instance using HTTPS then it's possible that it doesn't like trying to include an HTTP stream as part of that for the webcam. In other words, just try http://octopi.local/ rather than https://octopi.local/ .


im having the same issue. i have a new raspberry pi, new webcam and ribbon cables and some issue. when i go to http://octopi.local:8080/ i get

This site can’t be reached

octopi.local refused to connect.


In your case, the mjpg_streamer program probably isn't running. You might try ps -ax|grep mjpg or ps -ax|grep webcam to look for it.