[libcamera-devel] How to set the width and height of the video. (IMX219)
Kieran Bingham
kieran.bingham at ideasonboard.com
Thu Dec 17 14:48:36 CET 2020
Hello Nomura-san,
On 17/12/2020 00:31, tetsuya.nomura at soho-enterprise.com wrote:
> Dear Laurent-san
>
> Thank you for your advice.
> Now I can set the size parameter.
>
> An additional question, please.
>
> I can now display the image up to 3280x1908 size and save the jpeg file,
> but I cannot see 3280x2464 full-size image.
> Please see attached message log when error occurs.
>
Your log is showing this message:
> [0:25:39.161582345] [1353] ERROR V4L2 v4l2_videodevice.cpp:1124 /dev/video15[cap]: Unable to request 4 buffers: Cannot allocate memory
> [0:25:39.161725770] [1353] ERROR RPI raspberrypi.cpp:742 Failed to allocate buffers
I think you need to perhaps increase your CMA allocations.
Try adding 'cma=256M' to /boot/cmdline.txt ?
(or larger, I think 256M is the default?)
> PS
> The aspect ratio of the display is sometimes incorrect. The aspect of Jpeg file is OK.
That's likely due to the scaling we do in qcam.
Perhaps we should enforce aspect ratio on the window size of qcam.
--
Kieran
>
> I appreciate your kind advice in advance.
>
> Best Regards,
>
> NOMURA
>
> -----Original Message-----
> From: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> Sent: Wednesday, December 16, 2020 1:28 AM
> To: tetsuya.nomura at soho-enterprise.com
> Cc: 'libcamera devel' <libcamera-devel at lists.libcamera.org>; 'David Plowman' <david.plowman at raspberrypi.com>
> Subject: Re: [libcamera-devel] How to set the width and height of the video. (IMX219)
>
> Hello Nomura-san,
>
> On Tue, Dec 15, 2020 at 07:48:26PM +0900, tetsuya.nomura at soho-enterprise.com wrote:
>> Dear Sirs and Madams
>>
>> I'm evaluating the "qcam" and try to change the width and height option.
>> However, I cannot change the image size, always full FoV.
>> For example, ./qcam -s width=1280, height=720 (ret) Or -width=1920,
>> height=1080, but always the same image.
>> Can this option work?
>
> The syntax is
>
> qcam -s width=1280,height=720
>
> without any space after the ','. I've just tested it with a UVC camera as my Raspberry Pi isn't plugged in right now, but it should work there too. If it doesn't, we can look into it.
>
> --
> Regards,
>
> Laurent Pinchart
>
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
>
--
Regards
--
Kieran
More information about the libcamera-devel
mailing list