TT_Vert
Posts: 34
Joined: Mon Jan 02, 2017 5:46 pm

Using Pi camera, had to mount upside down, how to invert output?

Mon Jan 29, 2018 12:20 am

Basically I just plugged it in and the webcam worked on 8080 albeit upside down. Is there a way to rotate this? I read that I can add a switch to either -ro or -rot 180 but It doesn't mention where I add this so the 8080 webserver actually rotates it. I'm actually using this for a 3D printer and am using ffmpeg for the still shots as well as live cam.

Thanks much,

Dave

ericcooper
Posts: 126
Joined: Sat Apr 08, 2017 6:23 pm

Re: Using Pi camera, had to mount upside down, how to invert output?

Mon Jan 29, 2018 12:55 am

I use raspivid to stream, and it accepts a --vflip (or -vf) argument to do that.

TT_Vert
Posts: 34
Joined: Mon Jan 02, 2017 5:46 pm

Re: Using Pi camera, had to mount upside down, how to invert output?

Mon Jan 29, 2018 1:55 am

I think the pi is using mjpg-streamer because when I try to output anything via raspivid i get the following (See error below) and my output is working, just upside down. With that said, where did you add that argument to flip? Maybe I can find it for mjpg-streamer in the same place. Sorry very new to camera output on a pi.

raspivid output error.


mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

sparkie777
Posts: 121
Joined: Tue Nov 27, 2012 4:37 am

Re: Using Pi camera, had to mount upside down, how to invert output?

Mon Jan 29, 2018 6:11 am

when is comes to the mmal version of mjpeg-streamer just add '-hf -vf' to the options to yield a 180 degree rotation
Last edited by sparkie777 on Mon Jan 29, 2018 7:30 am, edited 2 times in total.

TT_Vert
Posts: 34
Joined: Mon Jan 02, 2017 5:46 pm

Re: Using Pi camera, had to mount upside down, how to invert output?

Mon Jan 29, 2018 7:24 am

Yes I just wasn't sure where to add it. I found it was in boot/octopi.txt.

Thanks
Dave

Return to “General discussion”