silvanmelchior / RPi_Cam_Web_Interface

A web interface for the RPi Cam
MIT License
1.54k stars 493 forks source link

Video cropped / zoomed in #598

Open ajaskiewiczpl opened 3 years ago

ajaskiewiczpl commented 3 years ago

When I take a picture using web UI it looks as I expect, like this: image However video stream area is smaller, looks cropped / zoomed in: image

I didn't find any relevant setting for this behavior. How to set video stream to see entire area?

BETLOG commented 3 years ago

note the difference in yours (and not in mine) of

Video res:

Image res:

2020-12-31--19-00-17_betlogbeast_RPiCamControlv6613mycampizerocam1GoogleChrome

Mine are the same because the only thing I use image capture for is creating motion masks, so i leave them set to the same resolution. Default is not the same.

ajaskiewiczpl commented 3 years ago

Ok when I set both resolutions to 1296x972 it works. But I don't understand why video is cropped when video resolution is set to 1920x1080.

BETLOG commented 3 years ago

Well the full resolution of the sensor is probably generally preferred for image capture, but because of various overheads, not the least of which will be motion detection itself, it's probably best to keep video constrained to certain high-performance resolutions. 1296x972 for example is the highest res that still uses '2x2 binning', which happens at a very low level, therefore less processing overheads..... so i imagine the same logic applies to all of the standard resolution selections in the RPiCamWeb interface.

ctrl-f this for 'binning'

https://picamera.readthedocs.io/en/latest/fov.html

then scroll down a page or two down from this section and have a look at the sensor crop images/descriptions:

https://picamera.readthedocs.io/en/latest/fov.html#sensor-modes

xxLeoxx93 commented 2 years ago

For me it's also zoomed in, but setting both to 1296x972 doesn't help at all. Anyone any Idea? I use the 5mp IR Cut Filter camera module.