zoneminder icon indicating copy to clipboard operation
zoneminder copied to clipboard

Automatically set resolution

Open mastertheknife opened this issue 13 years ago • 7 comments

If the resolution field is empty or zero, let zmc auto-detect the resolution and store it in the shared memory. This is possible by using epadding1 32bit padding variable by splitting it into two unsigned 16bit variables. This will keep the shared memory size and layout backwards compatible with older versions. This is fairly easy to do for most cases. For remote streams such as http(mjpeg), ffmpeg or rtsp, we get the resolution after decompressing the first frame. For local cameras, we can simply attempt to use highest resolution supported by the device.

The only problem is that memory allocation happens first, so we have to allocate lots of memory to support the highest possible resolution defined in src/config.h. Hopefully we will find a way around this approach.

This is an important another step in the direction to make ZM quicker and simpler to configure. Adding a new monitor should not take more than a few minutes.

mastertheknife avatar May 22 '13 05:05 mastertheknife

this has been open for ages - and i think it would be a really useful feature, so i've set a small bounty to hopefully get the ball rolling. https://www.bountysource.com/issues/935822-automatically-set-resolution

mnbf9rca avatar Dec 27 '16 09:12 mnbf9rca

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 15 '18 22:06 stale[bot]

Bounty on this is now $195

mnbf9rca avatar Jun 16 '18 08:06 mnbf9rca

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 15 '18 08:08 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 14 '18 13:10 stale[bot]

Bountysource is going to take the money in this bounty on July 1st unless the funds are redirected. Alternatively I can close this out, collect the bounty and ZoneMinder will hold the funds until it is properly closed.

connortechnology avatar Jun 17 '20 16:06 connortechnology

@connortechnology is the bounty still open?

singhharsh1708 avatar May 21 '26 18:05 singhharsh1708