请提供从摄像头采集到显示到屏幕上的demo,用rockit方式
-
请提供从摄像头采集到显示到屏幕上的demo,用rockit方式
您好 请参考 ${SDK}/luckfox-pico/media/samples/simple_test/simple_vi_get_frame_send_vo_rv1106.c
我编译后在RV1106上执行这个sample,只能获取到一张图片,并可以显示在LCD上
但是之后就一直超时
请问有人知道如何解决吗?
谢谢
===========================================================
RK_MPI_VI_SetDevAttr already
RK_MPI_VI_EnableDev already
RTIsp3x 12:04:23-504 {ispInitDevice :591} sensor name = m00_b_sc3336 4-0030
RTDeviceV4L2 12:04:23-506 {open :137} cameraIndex:0, entityName:rkisp_mainpath
RTDeviceV4L2 12:04:23-506 {open :143} open video name(/dev/video11)
Using mplane plugin for capture
cmpi 12:04:23-516 {RKVIChannel :286} mb pool creat success, MBCnt:2
RKViChn 12:04:23-516 {prepareRuntime :354} ---------------------------------------------------------
RKViChn 12:04:23-517 {prepareRuntime :356} vi version: 1.22, name:vvi
RKViChn 12:04:23-517 {prepareRuntime :357} rockit-ko version: vmpi:28ee389dbc33
RKViChn 12:04:23-518 {prepareRuntime :358} rockit-ko building: -2024-05-24-18:15:06
RKViChn 12:04:23-518 {prepareRuntime :359} ---------------------------------------------------------
cmpi 12:04:23-519 {prepareRuntime :378} mb pool create success, MBCnt= 2
RTDeviceV4L2 12:04:23-522 {open :137} cameraIndex:0, entityName:stream_cif_mipi_id0
RTDeviceV4L2 12:04:23-522 {open :143} open video name(stream_cif_mipi_id0)
RTDeviceV4L2 12:04:23-523 {ispOpenDevice :541} failed to open camera:stream_cif_mipi_id0
RTDeviceV4L2 12:04:23-524 {ispStreamOff :521} do ispStreamOff start
RTDeviceV4L2 12:04:23-524 {close :374} do RTDeviceV4L2 close
cmpi 12:04:23-524 {open :1047} RTDeviceV4L2 device open fail!
mpi_vo 12:04:23-568 {vo_init :071} find a plane type = 1, index = 0, zpos = 0
get a connect id = 70 ,type = 17, type_id = 1, encoder_type = 8
drm_output_create crtc id 66
mpi_vo 12:04:23-571 {RK_MPI_VO_Enable :369} Vodev 0 enable ok
cmpi 12:04:23-575 {vo_init :208} Create vo [dev: 0, layer: 0, chn: 0] success!
drm_render 12:04:23-575 {drm_render :579} VoDev 0 render thread start
mpi_vo_composer 12:04:23-577 {vo_composer_thread:156} Layer 0 type 0 compose thread start
========GetMediaBuffer0========
cmpi 12:04:23-581 {mb_get_buffer_by_i:433} allocated buffer(this=0x64438, data=(nil), size=0, id=-1)
cmpi 12:04:23-583 {getFrameRuntime :1347} -------------------------------vviBuf->buf_size: 4481024
rga_api version 1.10.1_[0]
cmpi 12:04:23-602 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:23-681 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:23-761 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
mpi_vo_composer 12:04:23-812 {vo_composer_vsync_:076} Layer 0 s32Vsyncval 8242 u32FrameVal vsync 20408
cmpi 12:04:23-841 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:23-921 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:24-001 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:24-081 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:24-161 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
mpi_vo_composer 12:04:24-168 {vo_comp_get_fb :121} Layer 0 no free buffer to compose
但是之后就一直超时
请问有人知道如何解决吗?
谢谢
===========================================================
RK_MPI_VI_SetDevAttr already
RK_MPI_VI_EnableDev already
RTIsp3x 12:04:23-504 {ispInitDevice :591} sensor name = m00_b_sc3336 4-0030
RTDeviceV4L2 12:04:23-506 {open :137} cameraIndex:0, entityName:rkisp_mainpath
RTDeviceV4L2 12:04:23-506 {open :143} open video name(/dev/video11)
Using mplane plugin for capture
cmpi 12:04:23-516 {RKVIChannel :286} mb pool creat success, MBCnt:2
RKViChn 12:04:23-516 {prepareRuntime :354} ---------------------------------------------------------
RKViChn 12:04:23-517 {prepareRuntime :356} vi version: 1.22, name:vvi
RKViChn 12:04:23-517 {prepareRuntime :357} rockit-ko version: vmpi:28ee389dbc33
RKViChn 12:04:23-518 {prepareRuntime :358} rockit-ko building: -2024-05-24-18:15:06
RKViChn 12:04:23-518 {prepareRuntime :359} ---------------------------------------------------------
cmpi 12:04:23-519 {prepareRuntime :378} mb pool create success, MBCnt= 2
RTDeviceV4L2 12:04:23-522 {open :137} cameraIndex:0, entityName:stream_cif_mipi_id0
RTDeviceV4L2 12:04:23-522 {open :143} open video name(stream_cif_mipi_id0)
RTDeviceV4L2 12:04:23-523 {ispOpenDevice :541} failed to open camera:stream_cif_mipi_id0
RTDeviceV4L2 12:04:23-524 {ispStreamOff :521} do ispStreamOff start
RTDeviceV4L2 12:04:23-524 {close :374} do RTDeviceV4L2 close
cmpi 12:04:23-524 {open :1047} RTDeviceV4L2 device open fail!
mpi_vo 12:04:23-568 {vo_init :071} find a plane type = 1, index = 0, zpos = 0
get a connect id = 70 ,type = 17, type_id = 1, encoder_type = 8
drm_output_create crtc id 66
mpi_vo 12:04:23-571 {RK_MPI_VO_Enable :369} Vodev 0 enable ok
cmpi 12:04:23-575 {vo_init :208} Create vo [dev: 0, layer: 0, chn: 0] success!
drm_render 12:04:23-575 {drm_render :579} VoDev 0 render thread start
mpi_vo_composer 12:04:23-577 {vo_composer_thread:156} Layer 0 type 0 compose thread start
========GetMediaBuffer0========
cmpi 12:04:23-581 {mb_get_buffer_by_i:433} allocated buffer(this=0x64438, data=(nil), size=0, id=-1)
cmpi 12:04:23-583 {getFrameRuntime :1347} -------------------------------vviBuf->buf_size: 4481024
rga_api version 1.10.1_[0]
cmpi 12:04:23-602 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:23-681 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:23-761 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
mpi_vo_composer 12:04:23-812 {vo_composer_vsync_:076} Layer 0 s32Vsyncval 8242 u32FrameVal vsync 20408
cmpi 12:04:23-841 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:23-921 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:24-001 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:24-081 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
cmpi 12:04:24-161 {GetMediaBuffer0 :051} RK_MPI_VI_GetChnFrame timeout a008800e
mpi_vo_composer 12:04:24-168 {vo_comp_get_fb :121} Layer 0 no free buffer to compose