HQ camera video resolution

Raspberry Pi cameras (V1, V2, wide angle etc), HDMI capture modules etc.
Post Reply
natxopedreira
Posts: 1
Joined: Sat Jun 19, 2021 2:33 pm

HQ camera video resolution

Post by natxopedreira »

Hello
Im cosidering stereo pi for a project and would like to know, in video mode using dual HQ camera what is the max fps/resolution i can have?

Thank you

User avatar
Realizator
Site Admin
Posts: 854
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: HQ camera video resolution

Post by Realizator »

Hello natxopedreira,
HQ cameras support up to 12 Mpix, but the Raspberry Pi Compute Module has hardware limitations for the video encoder.
You can get up to 30-40 FPS for the stereoscopic FullHD for the H264 video.
With MJPEG you can get a resolution like ~2400x1200, but with lower FPS (5-10).
Eugene a.k.a. Realizator

MatusisDrake
Posts: 1
Joined: Sat Feb 12, 2022 11:44 pm

Re: HQ camera video resolution

Post by MatusisDrake »

Does the FullHD (1920x1080) resolution get shared by the cameras or do you get 2x 1920x1080 steams? Same question for the MJPEG scenario with ~2400x1200? Thanks!

User avatar
Realizator
Site Admin
Posts: 854
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: HQ camera video resolution

Post by Realizator »

Hi MatusisDrake,

You have a few options here:

1. If you set 1920x1080 stereoscopic resolution with default settings, you will get 960x1080 cropped from each frame and stitched to the single 1920x1080
2. If you set 3840x1080, you will get two 1920x1080 from each camera. This works fine for the photo but not for the video since RPi's h264 video encoder is limited by 1920x1080 (actually a bit bigger).
3. The best trick to use is a "-dec" parameter. In this case, if you set 1920x1080, each camera's frame is 1920x1080 but scaled horizontally to 960x1080. If you record this video and upload it to YouTube, it will scale back each frame from 960x1080 to 1920x1080
4. JFYI: the actual sensor size ratio is 4:3. When you are taking 1920x1080 (i.e., 16:9), you are losing the top and bottom parts of the frame.
5. MJPEG encoder can support resolutions higher than 1920x1080, but you need to carefully tune all other parameters to keep >30FPS.
Eugene a.k.a. Realizator

Post Reply