Rotation in Standard Webcam

Camera model

Raspberry Pi camera Model 2

What is the problem?

The picture is upside down

What did you already try to solve it?

I already modified the file /boot/firmware/octopi.txt (and rebooted)

  • added line camera_raspi_options="-r 640x480 -f 10 -hf -vf" => same result
  • added line camera_raspi_options="-r 640x480 -f 10 -rot 180" => same result

But the output of "sudo service webcamd status" does not show these changes:
973 ./mjpg_streamer -o "output_http.so -w ./www-octopi -n --listen 127.0.0.1" -i "input_uvc.so -r 640x480 -f 10 -d /dev/video0"

Have you tried running in safe mode?

YES

Did running in safe mode solve the problem?

NO - under Settings -> Webcam & Zeitraffer -> MJPEG Stream the video is still upside down

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

octoprint-systeminfo-20250914121528.zip (109.8 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

OctoPrint 1.11.3
Python 3.11.2
OctoPi* 1.1.0 (build 2025.05.13.134411)

Under Settings -> Plugins -> Classic Webcam - I can check the boxes for flip horizontal / flip vertical. Then the Timlapse Video is right. But this setting only affects the Stream and not the Snapshot.

But I also use Pushover to send me notifications if a print job has completed.
The attached picture in the Pushover message is upside down.

So in my opinion the only way to flip the picture for Stream and Snapshot is to flip the video before.

Best regards,
Christian

Sorry - I found the solution.

Although the Webcam is not an USB Webcam I had to set the following parameter in octoprint.txt
camera_usb_options="-r 640x480 -f 10 -rot 180"

Now the picture is right in Snapshot and Timelapse.

Best regards,
Christian