Yi-RTS3903N-RTSPServer icon indicating copy to clipboard operation
Yi-RTS3903N-RTSPServer copied to clipboard

Image rotation?

Open ASerbinski opened this issue 1 year ago • 3 comments

On my cameras (XY-R9320-S3), the output image is rotated by 180 degrees. Is there any simple way to correct this rotation?

ASerbinski avatar Jan 09 '24 16:01 ASerbinski

There's not a quick option but the source code responsible for the rotation is here.

Changing to RTS_AV_ROTATION_0 to RTS_AV_ROTATION_1, RTS_AV_ROTATION_2 or RTS_AV_ROTATION_3 should allow you to find the correct rotation.

cjj25 avatar Jan 13 '24 09:01 cjj25

Didn't work, made it crash -- no telnet even so I don't know how to debug it. Ended up setting up an instance of zoneminder and using that to do the rotation.

And before you ask, yes my builds have been successful -- I've tweaked some other settings successfully, like disabling the day/night sensor since I'm shooting through windows at night.

ASerbinski avatar Jan 15 '24 14:01 ASerbinski

Didn't work, made it crash -- no telnet even so I don't know how to debug it. Ended up setting up an instance of zoneminder and using that to do the rotation.

And before you ask, yes my builds have been successful -- I've tweaked some other settings successfully, like disabling the day/night sensor since I'm shooting through windows at night.

The parameter is h264_attr.rotation and can be set to 0 (default), 1, 2 and 3 as defined in headers/rtsavdefs.h

enum rts_av_rotation { RTS_AV_ROTATION_0 = 0, RTS_AV_ROTATION_90R = 1, RTS_AV_ROTATION_90L = 2, RTS_AV_ROTATION_180 = 3, };

It compiles but it's not a surprise, it crashes with a core dump. The problem here is that all this code is super untested, copied from here and there and somehow half working. My guess is that, sadly, this repo is abandoned.

Would be great if at least @cjj25 releases the documentation and/or knowlege adquired.

jlopez77 avatar Jul 01 '24 08:07 jlopez77