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

Graphics, sound and multimedia • Cropped Video Output (Arducam Quad-Cam 5120x800) picamera2

$
0
0
I am using the following Arducam product (it is a quad-cam):
1MP*4 Quadrascopic OV9281 Global Shutter Monochrome Camera Bundle Kit for Raspberry Pi

When I take videos (which should have 5120x800 resolution) the output is cropped. This does not occur when taking a still image (jpeg) for example. I have tried using the H264 and MJEPG encoders with picamera2, but the video remains cropped. Here is my video capture code (python):

Code:

from picamera2 import Picamera2from picamera2.encoders import H264Encoder# Create the Picamera2 objectpicam2 = Picamera2()# Set the desired resolution and frame rateresolution = (5120, 800)frame_rate = 30# Create a video configuration with custom resolution and frame ratevideo_config = picam2.create_video_configuration(main={"size": resolution})# Set the frame rate in the configurationvideo_config["controls"]["FrameRate"] = frame_rate# Apply the configuration to the camerapicam2.configure(video_config)# Start and record video with custom settingspicam2.start_and_record_video("test_video.h264", duration=5)
I have been troubleshooting (using libcamera ,different file containers, trying the null encoder too), but this problem persists.

I have included a normal jpeg view as well as a cropped view bellow. The system is rated for 5120x800 video at 45 fps. I am running on a raspi 4 B. Please let me know if this is enough information.

Thank you all for your time :)
CroppedVidImage.jpg

Fullview.jpg

Statistics: Posted by JayCanMan — Fri Jan 31, 2025 5:15 pm — Replies 0 — Views 11



Viewing all articles
Browse latest Browse all 4680

Trending Articles