camera-streamer icon indicating copy to clipboard operation
camera-streamer copied to clipboard

Add Horizontal/Vertical flipping and 90 degree rotation.

Open jdwhite opened this issue 11 months ago • 4 comments

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 avatar Mar 16 '24 22:03 jdwhite

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.

jdwhite avatar Mar 16 '24 23:03 jdwhite

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

Svanto1963 avatar May 02 '24 15:05 Svanto1963

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.

crycode-de avatar Aug 07 '24 07:08 crycode-de

--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

boehser-enkel avatar Sep 02 '24 11:09 boehser-enkel