Webcam stream flipped


#1

In OctoPrint, I have the webcam set to flip horizontally + vertically (to achieve a 180 degree rotation). It looks fine within the OctoPrint interface, but when I go to /webcam/?action=stream the stream reflects the unmodified webcam video (i.e. it's upside down for me)
I prefer to be able to use the full-screen video feed, since the video feed embedded within the OctoPrint interface is so small that it's hard to see when the print of a small part has failed catastrophically.
(on that note, it would be nice if there were an easy way to open the full-sized video feed from directly within OctoPrint...)

I'm using the latest Octoprint on an RPi3 with the official Raspberry Pi cam, which is mounted in an enclosure from thingiverse that happens to mount it upside down.


#2

Yep. OctoPrint doesn't control the webcam stream, it can only modify it when it displays it itself. Can't change this. If you happen to be using a Raspicam, the driver for that in the bundled webcam server supports rotation and flipping, see

https://discourse.octoprint.org/t/available-mjpg-streamer-configuration-options/1106

Sadly the USB webcam driver doesn't.


#3

I am using the RPicam, so the config change worked great - and so does the plugin. Two problems solved - thanks!


#4

Mark my post as the solution then please -> :marksolved:

That helps others with the same issue find it faster. :slight_smile:


#5

if you are using chrome, you can right-click -> inspect the stream. Then add the following atribute to the image tag: style="transform:rotate(180deg);"