motioneyeos icon indicating copy to clipboard operation
motioneyeos copied to clipboard

Wrong resolution if rotated

Open KarlBaumann opened this issue 7 years ago • 10 comments

Hi!

First of all, thanks for the amazing software!

My camera is rotated 90deg. and it means all available resolutions should adapt to that rotation. Currently I am getting cropped image with all available resolutions.

KarlBaumann avatar Feb 05 '18 01:02 KarlBaumann

Can you be more clear about what your situation/problem is? Is your camera physically rotated? Doesn't the rotate configuration option help? Screenshots may be useful here.

ccrisan avatar Feb 05 '18 12:02 ccrisan

Yes, my camera is physically rotated, so I use option in the configuration and set it to 90 degrees. After I do that, Image rotates to the correct angle, but gets cropped (I see only middle part of it).

I will add some screenshots later, if necessary

KarlBaumann avatar Feb 05 '18 12:02 KarlBaumann

So I tried to make some screenshots and suddenly all problems are gone. I guess it was a temporary issue.

But thanks for the instant reply!

KarlBaumann avatar Feb 05 '18 13:02 KarlBaumann

Now I finally understood how to reproduce it: "Fast Network Camera" mode has to be enabled. motioneye

KarlBaumann avatar Feb 05 '18 23:02 KarlBaumann

Hi,

I’m having this same issue, and have the same repro steps as above. If the camera is rotated 90degrees when “fast network camera” mode is enabled, the video ends up being the wrong aspect ratio (it remains the original aspect ratio not the rotated one) meaning the video gets severely cropped.

TomThorpe avatar Apr 09 '20 20:04 TomThorpe

Same here, in fact it seems that the resolution does not get translated for 90°/270° when fast network camera is enabled.

Example: Resolution is set to 1280x960 and rotate is set to 90°. While the video is correctly rotated, the stream still has a resolution of 1280x960 and not the expected 960x1280, which leads to a center cropped and enlarged image like this one:

image

lcnittl avatar Aug 23 '21 12:08 lcnittl

And what happens if you modify the resolution to 960x1280 manually?

starbasessd avatar Aug 23 '21 14:08 starbasessd

You mean in the config file? (The GUI does not allow manual entry, at least in my case)

lcnittl avatar Aug 23 '21 14:08 lcnittl

In Video Resolution dropdown, at the bottom, Select Custom, then enter the correct aspect ratio of 980x1280

starbasessd avatar Aug 23 '21 14:08 starbasessd

Hmm - unfortunately, Select custom is not listed. Maybe due to the fact that I am using RTSP mode? In any case, I was able to get the desired effect by altering resolution settings in both /data/etc/raspimjpeg.conf and /data/etc/motioneye.conf. Thanks for the thought-provoking impulse 😄

PS: 2 important notes:

  1. Device has to be rebooted for changes to take effect.
  2. The GUI shows a wrong resolutions setting in the settings tab (320x200) and this setting is applied on saving changes to other config options.

lcnittl avatar Aug 23 '21 14:08 lcnittl