OV5640 MIPI Camera with IMX8M Mini 1080p 30fps

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OV5640 MIPI Camera with IMX8M Mini 1080p 30fps

1,927 Views
totoro
Contributor I

Hi, 

I'm trying to use OV5640 MIPI camera with the Compulab SBC-iMX8M-Mini Evaluation Kit

 

when i run v4l2-ctl --list-formats-ext -d /dev/video0 i get following configurations

root@ucm-imx8m-mini:~# v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
[ 1266.819611] ov5640_mipi 3-003c: Please assign pixel format, width and height
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 720x480
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 2592x1944
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 0x0

when i try to capture the stream with 1920x1080 30fps and encode it to h264 the resulting video runs too fast: 

rm /tmp/test.avi
gst-launch-1.0 -v v4l2src device=/dev/video0 ! \
'video/x-raw, format=YUY2, width=1920, height=1080, framerate=30/1' \
! videoparse format=4 width=1920 height=1080 framerate=30/1 \
! vpuenc_h264 ! avimux ! filesink location=/tmp/test.avi

-> the generated avi-video is attached

With 1280x720 30fps the video speed is correct.

Any clues how to fix the frame-rate to 30fps?

 

Regards, 

Christian

Labels (1)
0 Kudos
2 Replies

1,342 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Christian,

For camera playback on i.MX 8M EVK one can try:

gst-launch-1.0 v4l2src ! video/x-raw,format=YUY2,width=1920,height=1080 ! queue max-size-time=0 ! waylandsink enable-tile=true sync=false

Regards

0 Kudos

1,342 Views
totoro
Contributor I

HI, the display-output works fine, however i cant see if the framerate outputs the desired 30fps.

My problem is that when i record the stream, i get ~24fps with 1920x1080.

0 Kudos