IMX298 on RPi High Reosltuion Video

1.Which seller did you purchase the product(s) from?
Scoprion Vision, UK
2.The Model number of the product(s) you have purchased?
UC-572 Rev C
3.Which Platform are you using the product(s) on?
RPi 4
4.Which instruction are you following?
Paper plus code
5.Has your product ever worked properly?
6.What problems are you experiencing?


I’m working with the IMX298 sensor and I have it working to capture a video at 1920x1080 using the video.c code. However, I need to capture at a higher resolution, when I change the resolution to 4656x3496 it fails as follows:

[email protected]:~/MIPI_Camera/RPI $ ./video
Open camera…
Found sensor imx298 at address 1A
Setting the resolution…
Current resolution is 4656x3496
Notice:You can use the list_format sample program to see the resolution and control supported by the camera.
Start preview…
Enable Software Auto Exposure…
Enable Software Auto White Balance…
Start video encoding…
Failed to start video encoding, probably due to resolution greater than 1920x1080 or video_state setting error.

However on the product page it states ‘Frame Rates: Capture video at 4672×3496/7fps, 1080p/55fps and 720p/120fps resolutions.’. In addition list_format gives me:

mode: 0, width: 1160, height: 800, pixelformat: pBAA, desc: 4x4 binning 60fps
mode: 1, width: 1920, height: 1080, pixelformat: pBAA, desc: 60fps
mode: 2, width: 2336, height: 1748, pixelformat: pBAA, desc: 2x2 binning 27fps
mode: 3, width: 4656, height: 3496, pixelformat: pBAA, desc: 8fps
mode: 4, width: 4656, height: 3496, pixelformat: pBAA, desc: 12fps

How can I achieve the 4656x3496 resolution?




7.What attempts at troubleshooting have you already made?
Ran code and performed web search
8.How would you like us to help you?
advise on capturing higher frame rate


Since the Raspberry Pi hardware video encoder does not support resolutions above 1080P, it is impossible to obtain videos above 1080P.



OK, thanks though the marketing on the website should possibly be changed? However can I get back yuv at that resolution?




In fact you can get the raw image from rawcamera component.

we have a demo here

From the image component, you also can get still image with BMP/ JPEG/PNG format.

You can refer to arducamstill demo

Feel free to let me know if you need more help.


Thanks, the raw should be fine as I don’t need every frame.



You are welcome.

Let me know if you need more help

Contacting us by our email [email protected]