# Using IMX412 camera with 4K resolution.

Source: https://forum.modalai.com/topic/2348/using-imx412-camera-with-4k-resolution
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2023-06-29 10:50:09 UTC by Anubhav
Replies: 1 · Views: 667

## Anubhav · 2023-06-29 10:50:09 UTC

Hello team, 
I want to use IMX412 camera for snapshots with 4k resolution but unable to do.
the below command is with  ```voxl-camera-server_1.6.1_arm64.deb``` 
```
voxl2:~$ voxl-camera-server 
=================================================================
configuration for 1 cameras:

cam #0
    name:                hires
    sensor type:         imx412
    isEnabled:           1
    camId:               0
    camId2:              -1
    fps:                 30

    en_preview:          0
    pre_width:           2048
    pre_height:          1536
    pre_format:          nv21

    en_small_video:      1
    small_video_width:   1024
    small_video_height:  768

    en_large_video:      1
    large_video_width:   4096
    large_video_height:  2160

    en_snapshot:         1
    snap_width:          4160
    snap_height:         3120

    ae_mode:             isp
    standby_enabled:     0
    decimator:           1
    independent_exposure:0

=================================================================
Starting Camera: hires
ERROR:   Camera 0 failed to find supported record config: 4096x2160
ERROR:   Failed to start camera: hires, exiting
```

and in this same camera server version when I have downgraded the resolution, camera started working but when I trigger voxl-portal to see the Hires image output camera is failing. below is the output. 

```
voxl2:~$ voxl-camera-server 
=================================================================
configuration for 1 cameras:

cam #0
    name:                hires
    sensor type:         imx412
    isEnabled:           1
    camId:               0
    camId2:              -1
    fps:                 30

    en_preview:          0
    pre_width:           2048
    pre_height:          1536
    pre_format:          nv21

    en_small_video:      1
    small_video_width:   2048
    small_video_height:  1536

    en_large_video:      1
    large_video_width:   2048
    large_video_height:  1536

    en_snapshot:         1
    snap_width:          2048
    snap_height:         1536

    ae_mode:             isp
    standby_enabled:     0
    decimator:           1
    independent_exposure:0

=================================================================
Starting Camera: hires
WARNING: Port Def 0:
	Count Min: 8
	Count Actual: 16
	Size: 0x480000
	Buffers Contiguous: Yes
	Buffer Alignment: 0
WARNING: Port Def 1:
	Count Min: 4
	Count Actual: 16
	Size: 0x2d0000
	Buffers Contiguous: No
	Buffer Alignment: 0
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
WARNING: Port Def 0:
	Count Min: 8
	Count Actual: 16
	Size: 0x480000
	Buffers Contiguous: Yes
	Buffer Alignment: 0
WARNING: Port Def 1:
	Count Min: 4
	Count Actual: 16
	Size: 0x2d0000
	Buffers Contiguous: No
	Buffer Alignment: 0
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm

------ voxl-camera-server: Camera server is now running

Segmentation fault:
Fault thread: cam0-request(tid: 6949)
Fault address: (nil)
Unknown reason.
Segmentation fault
```
Thanks.

## Reply by Arjun Jain 0 · 2023-07-06 05:13:49 UTC

@Chad-Sweet - I have the same issue. How to enable the 4K resolution for IMX412 that we bought for $349 USD from you?
