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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,696件の閲覧回数
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,688件の閲覧回数
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,689件の閲覧回数
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,684件の閲覧回数
toshinariagata
Contributor III

Hi. @qiang_li-mpu_se 

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

0 件の賞賛
返信