How to edit video stream source?

Camera model

PI camera

What is the problem?

Unable to change THE SOURCE STREAM

What did you already try to solve it?

i can't find anything to help

Have you tried running in safe mode?

no

Did running in safe mode solve the problem?

no

Systeminfo Bundle

I downloaded the bundle but i have no clue what to do with it?

Additional information about your setup

1.9.3
2022.01.20.112925
ender3 - doesnt matter anything else

I'd like to modify the SOURCE video stream from FFMPEG, NOT the transform done in .octoprint. I have my video working fine in octoprint, but the image is flipped for use in home assistant. I can't figure out how to flip the image/stream in home assistant so i figure the other angle to attack is fix the source.

and because there's always that guy:
no, i can’t re-orient the camera
no, i’m not turning the printer upside down
no, i’m not turning my head to view it

sigh, found the upload button. something mentioning that probably would have been helpful for someone who has not used this platform before
octoprint-systeminfo-20231231143504.zip (146.1 KB)

You can flip or rotate the image from the streamer.
Which image are you using?
The regular one or the new camera stack?

On the old camera stack OctoPi image (which it looks like you have), you can edit the parameters passed to mjpg streamer using octopi.txt:

Some things to note:

  • Not all cameras support all of the options, so you might not be able to flip it at source
  • The cameras are not streamed by ffmpeg, so don't look at that

It is mentioned on this systeminfo bundle page, that explains all about it and where to find it and what to do with it. There's a link to the page.

old stack.
octoprint is fine, it's rotated within there, i want to adjust the original feed

i've tried editing the file in boot and it either doesnt work or gives a configuration error. its the original pi camera so i think it has support to do whatever and it's not a random USB one.

Please share exactly what you put in the file, so we can see if it's right.

1 Like

This caused error:
camera="input_raspi.so"
camera_raspi_options="-rot 180"
causes error:
Webcam stream not loaded
It might not be configured correctly or require authentication. You can change the URL of the stream under "Settings" > "Classic Webcam" > "Stream URL". If you don't have a webcam you can also just disable webcam support there.

This didnt change anything:
camera_raspi_options="-rot 180"

yes i rebooted after changes

ahhhh

first one is
camera="input_raspi.so"
camera_raspi_options="-rot 180"

so i did notice this too:
No longer available under OctoPi 1.0.0, use input_uvc.so for the Raspicam there

camera="input_uvc.so"
camera_raspi_options="-rot 180"

that doesnt work either, causes this:

Webcam stream not loaded

It might not be configured correctly or require authentication. You can change the URL of the stream under "Settings" > "Classic Webcam" > "Stream URL". If you don't have a webcam you can also just disable webcam support there.

Make sure you're reading the configuration instructions correctly. The only options available for camera="..." are auto, raspi or usb.

In this case you want to have camera="raspi".

Looking at your systeminfo bundle shows that you are running OctoPi 0.18. So this comment does not apply to you. Using camera_raspi_options is correct. Don't use the USB mode.

appreciate the help. changing camera to just "raspi" yields same error as above

/var/log/webcamd.log
Starting up webcamDaemon...

--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: raspi
usb options: -r 640x480 -f 10
raspi options: -rot 180
http options: -w ./www-octopi -n --listen 127.0.0.1

Explicitly USB device:

Found video devices:
/dev/video0
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video18
Scan again in two minutes
/root/bin/webcamd: line 103: kill: (787) - No such process

Goodbye...