Camera resolution issue Ubuntu 22.04
Camera resolution issue Ubuntu 22.04
I have one 5mp camera that would not start ZM 1.36.29. The camera resolution was set to 1944x2592 which is 5mp sideways. Changing the ZM camera resolution to 2592x1944 and changing the camera configuration to be flipped 180 degrees and mirrored fixed the problem. This is an Amcrest IP5M-T1179E.
Re: Camera resolution issue Ubuntu 22.04
I don't know if this is connected, but FFMPEG used to Segmentation Fault for me whenever I asked to write out video where the X resolution was not an integer multiple of 16. Seeing your story above, 2592 *is* but 1944 *isn't* and with your apparent portrait mode of 1944 x ... the X co-ordinate is the questionable one. That could explain why changing the camera to 2592 x works better.swamprats wrote: ↑Thu Oct 13, 2022 4:25 pm I have one 5mp camera that would not start ZM 1.36.29. The camera resolution was set to 1944x2592 which is 5mp sideways. Changing the ZM camera resolution to 2592x1944 and changing the camera configuration to be flipped 180 degrees and mirrored fixed the problem. This is an Amcrest IP5M-T1179E.
It could be something like that -- I don't know if that bug was ever fixed, but I always look out for it now when transcoding video, and force video sizes to be a round multiple of 16 (either by padding or scaling) to stop it!

Re: Camera resolution issue Ubuntu 22.04
1944x2562 works fine with Ubuntu 20.04, not Ubuntu 22.04. Had to change he configuration of the camera to get 2562x1944 to work on 22.04, which meant I had to change it on 20.04. Chose rotate right and 2562x1944 (which appears to be the 5m default) in Zoneminder and it works. Using Ubuntu 22.04, ZM 1.36 does not seem to like 1944x2562. Probably because 1944 does not divide evenly into 16. Just a guess.
Re: Camera resolution issue Ubuntu 22.04
You should be able to set the resolution at the camera, use an Amcrest preset resolution, and use ONVIF to set up Zoneminder. 1080p is usually more than enough for a security cam. Also set the frame rate to 10 and the frame interval to 10. Also use Camera Pass Through in Zoneminder.