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
解決済! 解決策の投稿を見る。
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
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
Hi. @qiang_li-mpu_se
Thank you for the reply.
Thanks to you, I could get 30fps.