Unable to display streaming webcam

What is the problem?
I'm using Version 1.3.8 and have been unable to display my webcam from within Octoprint. Octoprint is running on a Pi 0 attached to the control board of my Prusa i3 MK3. The webcam is separately connected to my computer via USB and is being streamed with the help of Yawcam.

Octoprint simply says that the stream "Needs to be reachable from the browser displaying the OctoPrint UI, used to embed the webcam stream into the page.".

These set of screenshots illustrate the problem.
https://drive.google.com/file/d/1nZXYHVLxy2WYif6oOvkgc8OtwIbNTi_t/view?usp=sharing

Looking for any help you can offer.

Ken

What did you already try to solve it?

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)

Just out of curiosity, if you go to a third machine and open a browser, can you stream from the machine with the camera?

update: The url you should use for the video stream is http://serverip:port/video.mjpg where serverip is the ip address of your yawcam computer and port is the port the stream is set to run on in yawcam's settings.

For the snapshot URL, enable "http" output in yawcam and the url will end in /out.jpg

so for example video stream: http://yawcamsvr:8081/video.mjpg snapshot url http://yawcamsvr:8888/out.jpg

Of note: When putting the same video url into the snapshot field, octoprint completely locks up for me so I wouldn't suggest doing that.

You need the webcam url with the action = stream thing on the end. I don't have mine available at the moment but tomorrow (currently almost 1am) I'll dig out my yawcam install and see what the actual stream url is that yawcam uses.

The short and curlies of it is, you've put a server address into the stream url, not an actual stream address. It's like trying to link someone to an image on imgur, and only giving them the imgur dot com address, but not the actual image name.

Also your timelapse url should be set to the same computer (unless you actually have another web cam attached directly to the pi).

If you haven't already figured it out for yourself by tomorrow, I'll update with some more details. In the mean time I think you can right click on the image and click copy address, and that might be the stream url to use but I'm not 100% sure. Again, I'll fire up yaw cam tomorrow and make sure and give you an update.

1 Like

Sorry, didn't make a difference.