Skip to main content
Associate II
June 9, 2025
Question

How to capture a picture on stm32mp257

  • June 9, 2025
  • 2 replies
  • 401 views

Hi ST,

   I need to capture a picture on linux terminal. When I excute this cmd "

v4l2-ctl -d /dev/video3 --set-fmt-video=width=2592,height=1940,pixelformat=YUYV --stream-mmap=3 --stream-skip=3 --stream-to=3.raw --stream-count=1 --stream-poll", the resolution of the picture is smaller than 2592 x 1940. I will attach the picture. What the reason is it? How could I get a full resulotion picture?
faye_Lee_0-1749460939745.jpeg

 

2 replies

Jean-Christophe_TROTIN
ST Employee
June 13, 2025

Hi,

 

I could suggest that you have a look at the STM32 MPU wiki (https://wiki.st.com/stm32mpu/wiki/Main_Page).

The following article might be interesting for you:

* https://wiki.st.com/stm32mpu/wiki/STM32MP2_V4L2_camera_overview#Take_a_picture: it explains how to configure the camera subsystem for your use case with media-ctl, how to capture a raw image (with your expected resolution) with v4l-ctl , how to convert it in JPEG with gst-laucnh-1.0 and how to check the picture resolution with gst-typefind.

Reading your post, I’m wondering if the camera subsystem configuration has been successfully executed before the picture capture.

 

Hope this information helps.

 

Regards,

JC.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
faye_LeeAuthor
Associate II
June 13, 2025

 Hi  Jean-Christophe_TROTIN,

      Thanks for your suggest. How could I confirm whether camera subsystem configuration has been successfully or not? I was use imx335 to take the picture, which was supported on st-android-13.0.0-2024-07-31-stm32mp257f-ev1 defaultly.

      By the way, does the ISP of STM32MP257 support sensors with a resolution of 4K? We need to port our sensor with a resolution of 4K on stm32mp257f-ev1 Android, and try to get 4K picture from the isp.