AnsweredAssumed Answered

OV5640 MIPI Camera with IMX8M Mini 1080p 30fps

Question asked by Christian Winkler on Mar 7, 2019
Latest reply on Mar 11, 2019 by Christian Winkler

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

Attachments

Outcomes