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: 900
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: 900
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

noobPi_user
Posts: 1
Joined: Fri Oct 21, 2022 2:56 am

Re: HQ camera video resolution

Post by noobPi_user »

Hi Realizator,

Would I be able to use method 3 then to obtain 2 separate, 1920x1080 video feeds at 30fps? I need to use 2 separate video files in another application and have been stumped on how to get simultaneous 1080p video feeds.

If this is possible, I know that it is possible to connect 2 stereopi units together in order to use 4 cameras. Would the trigger method work for video recording as well?

Thanks!
Realizator wrote:
Sun Feb 13, 2022 3:00 pm
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.

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

Re: HQ camera video resolution

Post by Realizator »

noobPi_user wrote:
Fri Oct 21, 2022 3:04 am
Hi Realizator,

Would I be able to use method 3 then to obtain 2 separate, 1920x1080 video feeds at 30fps? I need to use 2 separate video files in another application and have been stumped on how to get simultaneous 1080p video feeds.

If this is possible, I know that it is possible to connect 2 stereopi units together in order to use 4 cameras. Would the trigger method work for video recording as well?

Thanks!
Uh, CM4 has the only video encoder and can't process two 1080p streams simultaneously... So with method 3 one StereoPi can provide you with one file 1920x1080, which can be post-processed to get two files 1920x1080 by scaling each half horizontally twice. It means you can't get two 1080p livestreams.

The same for two StereoPi's - you can get two streams, and each of them can be splitted later to sub-files.
Eugene a.k.a. Realizator

Post Reply