Firefly开源社区

标题: rkmedia demo运行报错 [打印本页]

作者: cxr    时间: 2022-3-12 16:59
标题: rkmedia demo运行报错
运行[root@RV1126_RV1109:/]# ./oem/usr/bin/rkmedia_vi_rknn_venc_rtsp_test -a /oem/etc/iqfiles/ -c /oem/usr/share/rtsp-nn.cfg -b /oe
m/usr/share/rknn_model/box_priors.txt -l /oem/usr/share/rknn_model/coco_labels_list.txt -p /oem/usr/share/rknn_model/ssd_incep
tion_v2_rv1109_rv1126.rknn
报错[root@RV1126_RV1109:/]#

media get entity by name: stream_cif_dvp_id0 is null
media get entity by name: stream_cif_dvp_id1 is null
media get entity by name: stream_cif_dvp_id2 is null
media get entity by name: stream_cif_dvp_id3 is null
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
media get entity by name: stream_cif is null
media get entity by name: rkcif-dvp-sof is null
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
media get entity by name: rkcif_dvp is null
media get entity by name: rkcif_dvp is null
media get entity by name: rkcif_lite_mipi_lvds is null
[16:58:02.612999][CAMHW]:XCAM ERROR CamHwIsp20.cpp:1022: No free isp&ispp needed by fake camera!
register factory : rkmpp
register factory : rkmpp
register factory : live555_rtsp_server
register factory : video_enc
register factory : audio_enc
register factory : video_dec
register factory : file_read_flow
register factory : file_write_flow
register factory : filter
register factory : link_flow
register factory : source_stream
register factory : muxer_flow
register factory : audio_dec
register factory : output_stream
register factory : move_detec
register factory : occlusion_detec
register factory : file_write_stream
register factory : file_read_stream
register factory : alsa_playback_stream
register factory : alsa_capture_stream
register factory : v4l2_capture_stream
register factory : v4l2_output_stream
register factory : drm_output_stream
rga_api version 1.2.6_[0] (RGA is compiling with meson base: $PRODUCT_BASE)
register factory : rkrga
register factory : through_guard
register factory : ANR
register factory : AEC
register factory : rockx_filter
register factory : nn_result_input
register factory : draw_filter
register factory : rknn
register factory : face_capture
register factory : rockface_detect
register factory : rockface_evaluate
register factory : rockface_bodydetect
register factory : rockface_recognize
register factory : rkaudio
register factory : rkaudio_aud
register factory : rkaudio_vid
register factory : rkaudio_aud
register factory : rkaudio_vid
register factory : rkaudio_resample
register factory : rkaudio_audio_fifo
cfg path is /oem/usr/share/rtsp-nn.cfg
BOX_PRIORS_TXT_PATH is /oem/usr/share/rknn_model/box_priors.txt
LABEL_NALE_TXT_PATH is /oem/usr/share/rknn_model/coco_labels_list.txt
MODEL_PATH is /oem/usr/share/rknn_model/ssd_inception_v2_rv1109_rv1126.rknn
#CameraIdx: 0

rtsp path = /live/main_stream.
video_type = 5.
width = 1920.
height = 1080.
video path =rkispp_scale0.
image type = 4.
rtsp path = /live/sub_stream.
video_type = 5.
width = 720.
height = 576.
video path =rkispp_scale1.
image type = 4.
xml dirpath: /oem/etc/iqfiles/

#bMultictx: 0

ID: 0, sensor_name is m01_f_os04a10 1-0036, iqfiles is /oem/etc/iqfiles/
[16:58:02.633883][XCORE]:XCAM ERROR RkAiqCalibDb.cpp:804: calibdb /oem/etc/iqfiles//os04a10_CMK-OT1607-FV1_M12-40IRC-4MP-F16.xml and bin are all not exist!
[16:58:02.633993][XCORE]:XCAM ERROR rk_aiq_user_api_sysctl.cpp:206: _rkAiqManager init error!
[16:58:02.634080][CAMHW]:XCAM ERROR CamHwIsp20.cpp:1274: can't find sensor
[16:58:02.634120][XCORE]:XCAM ERROR RkAiqManager.cpp:383: camhw deinit error -7
SAMPLE_COMM_ISP_Run : CamId is over 3 or not init
SAMPLE_COMM_ISP_SetFrameRate : CamId is over 3 or not init
init rtsp
[INFO  rtsp_demo.c:281:rtsp_new_demo] rtsp server demo starting on port 554
init mpi
##RKMEDIA Log level: 2
[RKMEDIA][SYS][Info]:text is all=2
[RKMEDIA][SYS][Info]:module is all, log_level is 2
[DEBUG rtsp_demo.c:481:rtsp_new_session] add session path: /live/main_stream
VI create
[RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:0]:rkispp_scale0, 1920x1080 Start...
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
[RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev6
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media2
[RKMEDIA][SYS][Info]:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media3
[RKMEDIA][SYS][Info]:RKAIQ: model(rkispp1): ispp_info(1): ispp-subdev entity name: /dev/v4l-subdev1
[RKMEDIA][SYS][Info]:#V4l2Stream: camraID:0, Device:rkispp_scale0
[RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale0
[RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale0, idx: 0
[RKMEDIA][SYS][Info]:#V4l2Stream: camera id:0, VideoNode:/dev/video19
Using mplane plugin for capture
[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video19, fd 7
[RKMEDIA][SYS][Info]:Opened DRM device /dev/dri/card0: driver rockchip version 2.0.0.
[RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:0]:rkispp_scale0, 1920x1080 End...
VENC create
env_fps: 30
[RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[0], Type:5 Start...
[RKMEDIA][SYS][Info]:ParseMediaConfigFromMap: rect_x = 0, rect_y = 0, rect.w = 1920, rect.h = 1080
mpp[1812]: mpp_rt: NOT found ion allocator
mpp[1812]: mpp_rt: found drm allocator
mpp[1812]: mpp_info: mpp version: 20d07111 author: daijh         2021-12-23 Merge branch 'rockchip' into mfirefly
[RKMEDIA][VENC][Info]:MPP Encoder: MPPConfig: cfg init sucess!
[RKMEDIA][VENC][Info]:MPP Encoder: qpMaxi use default value:48
[RKMEDIA][VENC][Info]:MPP Encoder: qpMini use default value:8
[RKMEDIA][VENC][Info]:MPP Encoder: qpMax use default value:48
[RKMEDIA][VENC][Info]:MPP Encoder: qpMin use default value:8
[RKMEDIA][VENC][Info]:MPP Encoder: qpInit use default value:-1
[RKMEDIA][VENC][Info]:MPP Encoder: qpStep use default value:2
[RKMEDIA][VENC][Info]:MPP Encoder: rect_x use default value:0
[RKMEDIA][VENC][Info]:MPP Encoder: rect_y use default value:0
[RKMEDIA][VENC][Info]:MPP Encoder: rotaion = 0
[RKMEDIA][VENC][Info]:MPP Encoder: automatically calculate bsp with bps_target
[RKMEDIA][VENC][Info]:MPP Encoder: Set output block mode.
[RKMEDIA][VENC][Info]:MPP Encoder: Set input block mode.
[RKMEDIA][VENC][Info]:MPP Encoder: bps:[4937142,4443428,3949713] fps: [30/1]->[30/1], gop:30 qpInit:-1, qpMin:8, qpMax:48, qpMinI:8, qpMaxI:48.
[RKMEDIA][VENC][Info]:MPP Encoder: AVC: encode profile 77 level 0
mpp[1812]: mpp_enc: MPP_ENC_SET_RC_CFG bps 4443428 [3949713 : 4937142] fps [30:30] gop 30
mpp[1812]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [1920:1080] stride [1920:1080]
mpp[1812]: mpp_enc: send header for set cfg change input/format
[RKMEDIA][VENC][Info]:MPP Encoder: w x h(1920[1920] x 1080[1080])
mpp[1812]: mpp_enc: mode cbr bps [3949713:4443428:4937142] fps fix [30/1] -> fix [30/1] gop i [30] v [0]
[RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[0], Type:5 End...
rtsp video
[DEBUG rtsp_demo.c:481:rtsp_new_session] add session path: /live/sub_stream
VI create
[RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:1]:rkispp_scale1, 720x576 Start...
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media0
media get entity by name: rkcif-lvds-subdev is null
media get entity by name: rkcif-lite-lvds-subdev is null
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media1
media get entity by name: rkisp-mpfbc-subdev is null
media get entity by name: rkisp_dmapath is null
media get entity by name: rockchip-mipi-dphy-rx is null
[RKMEDIA][SYS][Info]:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev6
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media2
[RKMEDIA][SYS][Info]:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
[RKMEDIA][SYS][Info]:RKAIQ: parsing /dev/media3
[RKMEDIA][SYS][Info]:RKAIQ: model(rkispp1): ispp_info(1): ispp-subdev entity name: /dev/v4l-subdev1
[RKMEDIA][SYS][Info]:#V4l2Stream: camraID:0, Device:rkispp_scale1
[RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale1
[RKMEDIA][SYS][Warn]:camera_id: 0, chn: rkispp_scale1, idx: 0
[RKMEDIA][SYS][Info]:#V4l2Stream: camera id:0, VideoNode:/dev/video20
[RKMEDIA][SYS][Info]:Camera 0 stream 7 is started
Using mplane plugin for capture
[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video20, fd 22
[RKMEDIA][SYS][Info]:RK_MPI_VI_EnableChn: Enable VI[0:1]:rkispp_scale1, 720x576 End...
VENC create
env_fps: 30
[RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[1], Type:5 Start...
[RKMEDIA][SYS][Info]:ParseMediaConfigFromMap: rect_x = 0, rect_y = 0, rect.w = 720, rect.h = 576
mpp[1812]: mpp_info: mpp version: 20d07111 author: daijh         2021-12-23 Merge branch 'rockchip' into mfirefly
[RKMEDIA][VENC][Info]:MPP Encoder: MPPConfig: cfg init sucess!
[RKMEDIA][VENC][Info]:MPP Encoder: qpMaxi use default value:48
[RKMEDIA][VENC][Info]:MPP Encoder: qpMini use default value:8
[RKMEDIA][VENC][Info]:MPP Encoder: qpMax use default value:48
[RKMEDIA][VENC][Info]:MPP Encoder: qpMin use default value:8
[RKMEDIA][VENC][Info]:MPP Encoder: qpInit use default value:-1
[RKMEDIA][VENC][Info]:MPP Encoder: qpStep use default value:2
[RKMEDIA][VENC][Info]:MPP Encoder: rect_x use default value:0
[RKMEDIA][VENC][Info]:MPP Encoder: rect_y use default value:0
[RKMEDIA][VENC][Info]:MPP Encoder: rotaion = 0
[RKMEDIA][VENC][Info]:MPP Encoder: automatically calculate bsp with bps_target
[RKMEDIA][VENC][Info]:MPP Encoder: Set output block mode.
[RKMEDIA][VENC][Info]:MPP Encoder: Set input block mode.
[RKMEDIA][VENC][Info]:MPP Encoder: bps:[987427,888685,789942] fps: [30/1]->[30/1], gop:30 qpInit:-1, qpMin:8, qpMax:48, qpMinI:8, qpMaxI:48.
[RKMEDIA][VENC][Info]:MPP Encoder: AVC: encode profile 77 level 0
mpp[1812]: mpp_enc: MPP_ENC_SET_RC_CFG bps 888685 [789942 : 987427] fps [30:30] gop 30
mpp[1812]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [720:576] stride [720:576]
mpp[1812]: mpp_enc: send header for set cfg change input/format
[RKMEDIA][VENC][Info]:MPP Encoder: w x h(720[720] x 576[576])
mpp[1812]: mpp_enc: mode cbr bps [789942:888685:987427] fps fix [30/1] -> fix [30/1] gop i [30] v [0]
[RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[1], Type:5 End...
[RKMEDIA][SYS][Info]:RK_MPI_SYS_Bind: Bind Mode[VI]:Chn[1] to Mode[VENC]:Chn[1]...
rtsp video
[RKMEDIA][SYS][Info]:Camera 0 stream 22 is started
create rknn_list success
x_rate is 6.400000, y_rate is 3.600000
#Start GetMediaBuffer thread, arg:(nil)
Loading model ...
model input num: 1, output num: 2
input tensors:
index=0 name= n_dims=4 dims=[1 300 300 3] n_elems=270000 size=270000 fmt=0 type=3 qnt_type=2 fl=127 zp=127 scale=0.007843
output tensors:
index=0 name= n_dims=4 dims=[1 1917 1 4] n_elems=7668 size=7668 fmt=0 type=3 qnt_type=2 fl=-76 zp=180 scale=0.089482
index=1 name= n_dims=3 dims=[0 1 1917 91] n_elems=174447 size=174447 fmt=0 type=3 qnt_type=2 fl=-66 zp=190 scale=0.137463





tchip_askquestions

log.zip

2.77 KB, 下载次数: 4, 下载积分: 灯泡 -1 , 经验 -1


作者: 799959745    时间: 2022-3-14 11:50
看一下rkmedia仓库的最新提交
作者: cxr    时间: 2022-3-14 16:57
799959745 发表于 2022-3-14 11:50
看一下rkmedia仓库的最新提交

去掉-a参数,运行RkLunch-stop.sh后解决。请问如何实现上电开机自动运行RkLunch-stop.sh后跑rkmedia_vi_rknn_venc_rtsp?

作者: 799959745    时间: 2022-3-15 09:56
cxr 发表于 2022-3-14 16:57
去掉-a参数,运行RkLunch-stop.sh后解决。请问如何实现上电开机自动运行RkLunch-stop.sh后跑rkmedia_vi_r ...

修改RkLunch-stop.sh这个脚本不就行了?




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1