How to get 30fps when using iMX8QXP and ISL79987 (weave)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to get 30fps when using iMX8QXP and ISL79987 (weave)

跳至解决方案
1,749 次查看
toshinariagata
Contributor III

Hi. @qiang_li-mpu_se

Would you please tell me how to get 30fps when using iMX8QXP and ISL79987 (weave)?

The following command specifies 300 frames and takes 20 seconds, which is 15 fps.

time ./mx8_v4l2_cap_drm.out -cam 0x1 -fmt YUYV -num 300 -ow 720 -oh 480 -of -fr 30

(init_video_channel:496): init channel[0] save_file_name=0.YUYV
(init_video_channel:503): init channel[0] v4l2_dev_name=/dev/video0 w/h=(1280,800)
(open_save_file:576): 202.063310] bypass csc
mopen 0.YUYV success
(open_v4l2_device:640): open /dev/[ 202.070900] input fmt YUV4
video0 success
(v4l2_setup_dev:1205): planes=1 WxH@fps[ 202.079238] output fmt YUYV
= 720x480@0
(v4l2_device_streamon:1476): channel[0] v4l_dev=0x4 start capturing

. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . . . . . . .
. . . . . . . . . .
(v4l2_device_streamoff:1487): channel[0] v4l2_dev=0x4 frame=300
(v4l2_device_streamoff:1495): channel[0] v4l_dev=0x4 stop capturing
(main:1835): =*= success =*=

real 0m20.496s
user 0m0.013s
sys 0m3.442s

0 项奖励
回复
1 解答
1,741 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

The fps issue should be caused by porting the patch from 4.19.35 to 5.4.70. For weaving mode, the ISL79987 should work at field mode, not frame mode.

isl7998x_write_reg(isl7998x_data, 0x01, 0x05); //For field mode
// isl7998x_write_reg(isl7998x_data, 0x01, 0x25); //For frame mode

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,742 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

The fps issue should be caused by porting the patch from 4.19.35 to 5.4.70. For weaving mode, the ISL79987 should work at field mode, not frame mode.

isl7998x_write_reg(isl7998x_data, 0x01, 0x05); //For field mode
// isl7998x_write_reg(isl7998x_data, 0x01, 0x25); //For frame mode

0 项奖励
回复
1,737 次查看
toshinariagata
Contributor III

Hi. @qiang_li-mpu_se 

Thank you for the reply.
Thanks to you, I could get 30fps.

0 项奖励
回复