Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Horizontal/Vertical flipping and 90 degree rotation. #145

Open
jdwhite opened this issue Mar 16, 2024 · 5 comments
Open

Add Horizontal/Vertical flipping and 90 degree rotation. #145

jdwhite opened this issue Mar 16, 2024 · 5 comments

Comments

@jdwhite
Copy link

jdwhite commented Mar 16, 2024

Please add the ability to flip images/video horizontally/vertically and rotate images/video 90 degree clockwise/counterclockwise.

Currently this can be done within OctoPrint with a plugin such as MultiCam, but only works within the OctoPrint UI. Anything streamed directly via camera-streamer gets the default orientation.

@jdwhite
Copy link
Author

jdwhite commented Mar 16, 2024

I'm aware of the --camera-hflip and --camera-vflip options but my camera (Logitech c920) doesn't support this. I gather that supporting my requested functionality would require post-processing by something such as ffmpeg.

@Svanto1963
Copy link

Cant get --camera-hflip and --camera-vflip to work on my Raspberry pi + Raspi cam v3.0 PLZ. help.

@crycode-de
Copy link

For the Raspberry Pi Camera (tested with v2.1) --camera-hflip and --camera-vflip are not working, but you can add the parameters --camera-options=horizontalflip=1 and --camera-options=verticalflip=1 which will do the trick.

By calling camera-streamer --camera-list_options you can query all available --camera-options and --camera-isp.options for your camera.

@boehser-enkel
Copy link

--camera-options=horizontalflip=1

shows:

device/v4l2/device_options.c: CAMERA: Configuring option 'Horizontal Flip' (00980914) = 0                                                                                                                          
device/v4l2/device_options.c: CAMERA: ioctl(ret=-1, errno=16): Can't set option Horizontal Flip                                                                                                                    
device/v4l2/device_options.c: CAMERA: Configuring option 'Vertical Flip' (00980915) = 0                                                                                                                            
device/v4l2/device_options.c: CAMERA: ioctl(ret=-1, errno=16): Can't set option Vertical Flip  

--camera-options=horizontalflip=1

Does nothing

Pi4 + Pi Cam V3

@mikulik86
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants