Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5266

Troubleshooting • Re: Picamera2 video frame size recording

$
0
0

My fault, I forgot also import Quality.
Anyway, setting high quality I still get 1280x720 despite I set quality=Quality.VERY_HIGH
MP4Box:
Quality controls the amount of compression used in the encoding and therefore the bitrate of the H264 encoding.
If you want to control the resolution of the recordings in pixels, you need to specify the required width and height in the configuration.
(The default video configuration is 1280 x 720).
So perhaps try a configuration of

Code:

video_config = picam2.create_video_configuration(main={"size":(1920,1080})
or if you want a 4x3 format then try

Code:

video_config = picam2.create_video_configuration(main={"size":(1672,1254})

Statistics: Posted by sandyol — Mon Mar 11, 2024 7:35 pm



Viewing all articles
Browse latest Browse all 5266

Trending Articles