ayufan / camera-streamer

High-performance low-latency camera streamer for Raspberry PI's
293 stars 46 forks source link

support different sensor modes for snapshot and video -> enable sensor pixel binning #78

Open gnurbs opened 1 year ago

gnurbs commented 1 year ago

It would be great if camera-streamer supported different sensor modes for snapshot and video. A lower mode would be used for video and a higher mode for snapshots. This would allow to go for native resolution for snapshots and reduced resolution but higher frame rate for video.

A good example is the v2 camera with the IMX219: native: 3280x2464 half/half: 1640x1232 the latter is within the capabilities of the raspis 1080p30 video encoder.

In addition, the IMX219 supports analog pixel binning (2x2 pixels are combined and read as pixel, directly on the chip). This means every data link uses 1/4 of the native resolution's bandwidth