cxr 发表于 2022-3-12 16:59:54

rkmedia demo运行报错

运行# ./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
报错#

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
: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_ (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/
:XCAM ERROR RkAiqCalibDb.cpp:804: calibdb /oem/etc/iqfiles//os04a10_CMK-OT1607-FV1_M12-40IRC-4MP-F16.xml and bin are all not exist!
:XCAM ERROR rk_aiq_user_api_sysctl.cpp:206: _rkAiqManager init error!
:XCAM ERROR CamHwIsp20.cpp:1274: can't find sensor
: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
rtsp server demo starting on port 554
init mpi
##RKMEDIA Log level: 2
:text is all=2
:module is all, log_level is 2
add session path: /live/main_stream
VI create
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale0, 1920x1080 Start...
: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
: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
:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev6
:RKAIQ: parsing /dev/media2
:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
:RKAIQ: parsing /dev/media3
:RKAIQ: model(rkispp1): ispp_info(1): ispp-subdev entity name: /dev/v4l-subdev1
:#V4l2Stream: camraID:0, Device:rkispp_scale0
:camera_id: 0, chn: rkispp_scale0
:camera_id: 0, chn: rkispp_scale0, idx: 0
:#V4l2Stream: camera id:0, VideoNode:/dev/video19
Using mplane plugin for capture
:#V4L2Ctx: open /dev/video19, fd 7
:Opened DRM device /dev/dri/card0: driver rockchip version 2.0.0.
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale0, 1920x1080 End...
VENC create
env_fps: 30
:RK_MPI_VENC_CreateChn: Enable VENC, Type:5 Start...
:ParseMediaConfigFromMap: rect_x = 0, rect_y = 0, rect.w = 1920, rect.h = 1080
mpp: mpp_rt: NOT found ion allocator
mpp: mpp_rt: found drm allocator
mpp: mpp_info: mpp version: 20d07111 author: daijh         2021-12-23 Merge branch 'rockchip' into mfirefly
:MPP Encoder: MPPConfig: cfg init sucess!
:MPP Encoder: qpMaxi use default value:48
:MPP Encoder: qpMini use default value:8
:MPP Encoder: qpMax use default value:48
:MPP Encoder: qpMin use default value:8
:MPP Encoder: qpInit use default value:-1
:MPP Encoder: qpStep use default value:2
:MPP Encoder: rect_x use default value:0
:MPP Encoder: rect_y use default value:0
:MPP Encoder: rotaion = 0
:MPP Encoder: automatically calculate bsp with bps_target
:MPP Encoder: Set output block mode.
:MPP Encoder: Set input block mode.
:MPP Encoder: bps: fps: ->, gop:30 qpInit:-1, qpMin:8, qpMax:48, qpMinI:8, qpMaxI:48.
:MPP Encoder: AVC: encode profile 77 level 0
mpp: mpp_enc: MPP_ENC_SET_RC_CFG bps 4443428 fps gop 30
mpp: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h stride
mpp: mpp_enc: send header for set cfg change input/format
:MPP Encoder: w x h(1920 x 1080)
mpp: mpp_enc: mode cbr bps fps fix -> fix gop i v
:RK_MPI_VENC_CreateChn: Enable VENC, Type:5 End...
rtsp video
add session path: /live/sub_stream
VI create
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale1, 720x576 Start...
: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
: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
:RKAIQ: model(rkisp0): isp_info(0): isp-subdev entity name: /dev/v4l-subdev6
:RKAIQ: parsing /dev/media2
:RKAIQ: model(rkispp0): ispp_info(0): ispp-subdev entity name: /dev/v4l-subdev0
:RKAIQ: parsing /dev/media3
:RKAIQ: model(rkispp1): ispp_info(1): ispp-subdev entity name: /dev/v4l-subdev1
:#V4l2Stream: camraID:0, Device:rkispp_scale1
:camera_id: 0, chn: rkispp_scale1
:camera_id: 0, chn: rkispp_scale1, idx: 0
:#V4l2Stream: camera id:0, VideoNode:/dev/video20
:Camera 0 stream 7 is started
Using mplane plugin for capture
:#V4L2Ctx: open /dev/video20, fd 22
:RK_MPI_VI_EnableChn: Enable VI:rkispp_scale1, 720x576 End...
VENC create
env_fps: 30
:RK_MPI_VENC_CreateChn: Enable VENC, Type:5 Start...
:ParseMediaConfigFromMap: rect_x = 0, rect_y = 0, rect.w = 720, rect.h = 576
mpp: mpp_info: mpp version: 20d07111 author: daijh         2021-12-23 Merge branch 'rockchip' into mfirefly
:MPP Encoder: MPPConfig: cfg init sucess!
:MPP Encoder: qpMaxi use default value:48
:MPP Encoder: qpMini use default value:8
:MPP Encoder: qpMax use default value:48
:MPP Encoder: qpMin use default value:8
:MPP Encoder: qpInit use default value:-1
:MPP Encoder: qpStep use default value:2
:MPP Encoder: rect_x use default value:0
:MPP Encoder: rect_y use default value:0
:MPP Encoder: rotaion = 0
:MPP Encoder: automatically calculate bsp with bps_target
:MPP Encoder: Set output block mode.
:MPP Encoder: Set input block mode.
:MPP Encoder: bps: fps: ->, gop:30 qpInit:-1, qpMin:8, qpMax:48, qpMinI:8, qpMaxI:48.
:MPP Encoder: AVC: encode profile 77 level 0
mpp: mpp_enc: MPP_ENC_SET_RC_CFG bps 888685 fps gop 30
mpp: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h stride
mpp: mpp_enc: send header for set cfg change input/format
:MPP Encoder: w x h(720 x 576)
mpp: mpp_enc: mode cbr bps fps fix -> fix gop i v
:RK_MPI_VENC_CreateChn: Enable VENC, Type:5 End...
:RK_MPI_SYS_Bind: Bind Mode:Chn to Mode:Chn...
rtsp video
: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= 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= 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= n_elems=174447 size=174447 fmt=0 type=3 qnt_type=2 fl=-66 zp=190 scale=0.137463





799959745 发表于 2022-3-14 11:50:20

看一下rkmedia仓库的最新提交

cxr 发表于 2022-3-14 16:57:59

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:31

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

修改RkLunch-stop.sh这个脚本不就行了?{:4_90:}
页: [1]
查看完整版本: rkmedia demo运行报错