[root@RV1126_RV1109:/]# rkmedia_vi_rknn_venc_rtsp_test -a /oem/etc/iqfiles/ -c /
oem/usr/share/rtsp-nn.cfg -b /oem/usr/share/rknn_model/box_priors.txt -l /oem/us
r/share/rknn_model/coco_labels_list.txt -p /oem/usr/share/rknn_model/ssd_incepti
on_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
[09:25:29.919093][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.3.0_[11] (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
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/
[09:25:29.940411][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!
[09:25:29.941218][XCORE]:XCAM ERROR rk_aiq_user_api_sysctl.cpp:206: _rkAiqManager init error!
[09:25:29.941957][CAMHW]:XCAM ERROR CamHwIsp20.cpp:1274: can't find sensor
[09:25:29.942505][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-subdev5
[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]:#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
[ 1435.502204] rkispp0: scale0:0x0 out of range:
[ 1435.502204] [wUsing mplane plugin for capture
idth max:3264 ratio max:8 min:1]
[ 1435.502308] rkispp0: scale0:0x0 out of range:
[ 1435.502308] [width max:2080 ratio max:8 min:1]
[ 1435.502339] rkispp0: scale0:0x0 out of range:
[ 1[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video19, fd 7
435.502339] [width max:3264 ratio max:8 min:1]
[ 1435.502372] rkispp0: scale0:0x0 out of range:
[ 1435.502372] [width max:3264 ratio max:8 min:1]
[ 1435.502412] rkispp0: scale0:0x0 out of range:
[ 1435.502412] [width max:3264 ratio max:8 min:1]
[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[2120]: mpp_rt: NOT found ion allocator
mpp[2120]: mpp_rt: found drm allocator
mpp[2120]: 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[2120]: mpp_enc: MPP_ENC_SET_RC_CFG bps 4443428 [3949713 : 4937142] fps [30:30] gop 30
mpp[2120]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [1920:1080] stride [1920:1080]
mpp[2120]: mpp_enc: send header for set cfg change input/format
[RKMEDIA][VENC][Info]:MPP Encoder: w x h(1920[1920] x 1080[1080])
mpp[2120]: 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-subdev5
[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]:#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
[ 1436.564359] rkispp0: waiting on params stream on event timeout
[ 1436.595479] rkisp rkisp-vir0: can not get first iq setting in stream on
[RKMEDIA][SYS][Info]:Camera 0 stream 7 is started
[ 1436.596952] rkispp0: scale1:Using mplane plugin for capt0ure
x0 out of range:
[ 1436.596952] [width max:1280 ratio max:8 min:2]
[ 1436.597007] rkispp0: scale1:0x0 out of range:
[ 1436.597007] [width max:1280 ratio max:8 min:2]
[ 1436.597028] rkispp0: scale1:0x0 out of range:
[ 1[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video20, fd 421
36.597028] [width max:1280 ra[RKMEDIA][SYS][Info]:Opened tDRM device /dev/dri/card0: diriver rockchip version 2.0.0o.
max:8 min:2]
[ 1436.597044] rkispp0: scale1:0x0 out of range:
[ 1436.597044] [width max:1280 ratio max:8 min:2]
[ 1436.597061] rkispp0: scale1:0x0 out of range:
[ 1436.597061] [width max:1280 ratio max:8 min:2]
[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[2120]: 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[2120]: mpp_enc: MPP_ENC_SET_RC_CFG bps 888685 [789942 : 987427] fps [30:30] gop 30
mpp[2120]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [720:576] stride [720:576]
mpp[2120]: mpp_enc: send header for set cfg change input/format
[RKMEDIA][VENC][Info]:MPP Encoder: w x h(720[720] x 576[576])
mpp[2120]: 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
create rknn_list success
[RKMEDIA][SYS][Info]:Camera 0 stream 21 is started
#Start GetMediaBuffer thread, arg:(nil)
Loading model ...
x_rate is 6.400000, y_rate is 3.600000
librknn_runtime version 1.7.0 (0bef7b3 build: 2021-08-18 19:53:17 base: 1131)
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
[root@RV1126_RV1109:/etc/iqfiles]# ls
gc2053_YT-RV1109-2-V1_40IR-2MP-F20.xml
gc2093_YT-RV1109-2-V1_40IR-2MP-F20.xml
os04a10_CMK-OT1607-FV1_M12-40IRC-4MP-F16.xml
ov2718_YT-RV1109-3-V1_M43-4IR-2MP-F2.xml
参数-a /etc/iqfiles/ 的 log如下:
[root@RV1126_RV1109:/etc/iqfiles]# rkmedia_vi_rknn_venc_rtsp_test -a /etc/iqfile
s/ -c /oem/usr/share/rtsp-nn.cfg -b /oem/usr/share/rknn_model/box_priors.txt -l
/oem/usr/share/rknn_model/coco_labels_list.txt -p /oem/usr/share/rknn_model/ssd_
inception_v2_rv1109_rv1126.rknn &
[root@RV1126_RV1109:/etc/iqfiles]# 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
[09:03:39.627613][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.3.0_[11] (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
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: /etc/iqfiles/
#bMultictx: 0
ID: 0, sensor_name is m01_f_os04a10 1-0036, iqfiles is /etc/iqfiles/
[09:03:39.771184][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6920: calib_check_getID_by_name(6920): subtag: focusInfPosition from parent tag: zoomfocus_tbl is unknown, assert!!!
[09:03:39.772126][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6998: calib_check_tag_attrs(6998): parent_tag_id:439 tag_id:1201 --- tag id is is wrong: min:0 max:1201
[09:03:39.775931][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6920: calib_check_getID_by_name(6920): subtag: focusMacroPosition from parent tag: zoomfocus_tbl is unknown, assert!!!
[09:03:39.777255][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6998: calib_check_tag_attrs(6998): parent_tag_id:439 tag_id:1201 --- tag id is is wrong: min:0 max:1201
[09:03:39.771184][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6920: calib_check_getID_by_name(6920): subtag: focusInfPosition from parent tag: zoomfocus_tbl is unknown, assert!!!
[09:03:39.772126][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6998: calib_check_tag_attrs(6998): parent_tag_id:439 tag_id:1201 --- tag id is is wrong: min:0 max:1201
[09:03:39.775931][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6920: calib_check_getID_by_name(6920): subtag: focusMacroPosition from parent tag: zoomfocus_tbl is unknown, assert!!!
[09:03:39.777255][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:6998: calib_check_tag_attrs(6998): parent_tag_id:439 tag_id:1201 --- tag id is is wrong: min:0 max:1201
[09:03:40.056319][XCORE]:XCAM ERROR v4l2_device.cpp:196: open device() failed
[ 146.585113] clk_mipicsi_out2io_fracdiv p_rate(297000000) is low than rate(24000000)*20, use integer or half-div