Firefly开源社区

打印 上一主题 下一主题

[技术讨论] rkmedia demo运行rkmedia_vi_rknn_venc_rtsp_test出错

45

积分

0

威望

0

贡献

技术小白

积分
45

rkmedia demo运行rkmedia_vi_rknn_venc_rtsp_test出错

发表于 2022-5-5 11:43:55      浏览:11004 | 回复:7        打印      只看该作者   [复制链接] 楼主
  • 固件类型: 自行编译的固件
  • SDK包名称: rv1126_rv1109_linux_release_20211022
  • SDK更新到哪个COMMIT: 0000-00-00 00:00:00
  • SDK修改内容: 没有修改,直接编译
  • Log日志: rknndemo.zip
问题描述及复现步骤:
我的开发板是core-1126-JD4,sensor是购买的OS04A10。SDK包rv1126_rv1109_linux_release_20211022,更新到最新了,如下:
.repo/manifests/rv1126_rv1109/rv1126_rv1109_linux_release_20220324_v2.2.5b.xml

[root@RV1126_RV1109:/]# cat /proc/version
Linux version 4.19.111 (xzh@ubuntu) (kernel commit id: 85988bd7b1fc67ac96e868b90f4e676f44c713ae) (sdk version: rv1126_rv1109_linux_release_20220324_v2.2.5b.xml) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #1 SMP PREEMPT Wed May 4 22:49:21 CST 2022

我编译的顺序是:
1.source envsetup.sh 选择的是  4. firefly_rv1126_rv1109;
2. ./build.sh device/rockchip/rv1126_rv1109/aio-rv1126-jd4-BE-45.mk
3. make menuconfig把下面的选项选中,并保存
# OPENCV3
BR2_PACKAGE_OPENCV3=y
BR2_PACKAGE_OPENCV3_LIB_CALIB3D=y
BR2_PACKAGE_OPENCV3_LIB_FEATURES2D=y
BR2_PACKAGE_OPENCV3_LIB_FLANN=y
BR2_PACKAGE_OPENCV3_LIB_HIGHGUI=y
BR2_PACKAGE_OPENCV3_LIB_IMGCODECS=y
BR2_PACKAGE_OPENCV3_LIB_IMGPROC=y
BR2_PACKAGE_OPENCV3_LIB_ML=y
BR2_PACKAGE_OPENCV3_LIB_OBJDETECT=y
BR2_PACKAGE_OPENCV3_LIB_PHOTO=y
BR2_PACKAGE_OPENCV3_LIB_SHAPE=y
BR2_PACKAGE_OPENCV3_LIB_STITCHING=y
BR2_PACKAGE_OPENCV3_LIB_SUPERRES=y
BR2_PACKAGE_OPENCV3_LIB_TS=y
BR2_PACKAGE_OPENCV3_LIB_VIDEOIO=y
BR2_PACKAGE_OPENCV3_LIB_VIDEO=y
BR2_PACKAGE_OPENCV3_LIB_VIDEOSTAB=y
BR2_PACKAGE_OPENCV3_WITH_FFMPEG=y
BR2_PACKAGE_OPENCV3_WITH_GSTREAMER1=y
BR2_PACKAGE_OPENCV3_WITH_JASPER=y
BR2_PACKAGE_OPENCV3_WITH_JPEG=y
BR2_PACKAGE_OPENCV3_WITH_PNG=y
BR2_PACKAGE_OPENCV3_WITH_PROTOBUF=y
BR2_PACKAGE_OPENCV3_WITH_TIFF=y
BR2_PACKAGE_OPENCV3_WITH_V4L=y
BR2_PACKAGE_OPENCV3_WITH_WEBP=y

BR2_PACKAGE_FIREFLY_RKMEDIA_DEMO=y
BR2_PACKAGE_ZBAR=y

4../build.sh

编完的固件烧进去之后,run起来可以用vlc看到通过rtsp传上来的视频。接下来用RkLunch-stop.sh关掉sensor ISP服务,接着运行:
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/usr/share/rknn_model/coco_labels_list.txt -p /oem/usr/share/rknn_model/ssd_inception_v2_rv1109_rv1126.rknn


就报错了:

[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


然后我发现/oem文件夹里面没有etc文件夹。请问这是哪里配置有问题吗?
再次上电运行后,我把-a /oem/etc/iqfiles/这个参数改成-a /etc/iqfiles/,还是会报错。我觉得根本原因还是编译完/oem下面没有etc文件夹就有问题。


请问下,哪个地方的配置没有配对,出了问题。

rknndemo.zip

2.99 KB, 下载次数: 6, 下载积分: 灯泡 -1 , 经验 -1

回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2022-5-6 10:38:39        只看该作者  沙发
这里就是没有找到 xml” os04a10_CMK-OT1607-FV1_M12-40IRC-4MP-F16.xml and bin are all not exist!“,这个 xml 应该在 buildroot 的 config 中配置覆盖的

firefly_rv1126_rv1109_defconfig


firefly_rv1126_rv1109_defconfig 编译不会生成在 oem 下,会在 /etc/iqfiles,下


你可以先看一下你的设备上/etc/iqfiles 有没有这个文件,确认 sdk 编译完输出有没有这个文件,

另外把 -a /etc/iqfiles/  的 log 也贴上来
回复

使用道具 举报

45

积分

0

威望

0

贡献

技术小白

积分
45
发表于 2022-5-6 11:00:46        只看该作者  板凳
是的,我有看到这个deconfig这个配置,所以xml在/etc/iqfiles下面也是没问题的是吧?,我编译完在/etc/iqfiles下面有这个sensor的xml文件,如下:

[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.773351][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:7044: calib_check_tag_attrs(7044): parent_tag_id:439 parent_tag_name:zoomfocus_tbl  tag_id:1201 tag_name:unknown --- ASSERT!!!

[09:03:39.774724][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:7188: calib_check_tag_mark(7188): parent_tag_id:439 tag_id:1201 --- tag_id 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.778447][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:7044: calib_check_tag_attrs(7044): parent_tag_id:439 parent_tag_name:zoomfocus_tbl  tag_id:1201 tag_name:unknown --- ASSERT!!!

[09:03:39.779836][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:7188: calib_check_tag_mark(7188): parent_tag_id:439 tag_id:1201 --- tag_id 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
[  146.599562] os04a10 1-0036: sensor mode: 0
[09:03:40.071174][CAMHW]:XCAM ERROR LensHw.cpp:199: get vcm cfg failed
[09:03:40.096151][XCORE]:XCAM ERROR CamHwIsp20.cpp:3751: |||set DC-Iris PwmDuty: 100
[09:03:40.096438][CAMHW]:XCAM ERROR LensHw.cpp:411: iris is not supported
[09:03:40.130627][CAMHW]:XCAM ERROR LensHw.cpp:296: focus is not supported
rk_aiq_uapi_sysctl_init/prepare succeed
[  146.663549] rkcif_mipi_lvds: stream[0] start streaming
[  146.669529] rkcif_mipi_lvds: Allocate dummy buffer, size: 0x00532000
[  146.669671] rockchip-mipi-csi2 ffb10000.mipi-csi2: stream on, src_sd: 0c0b8423, sd_name:rockchip-mipi-dphy-rx
[  146.669695] rockchip-mipi-csi2 ffb10000.mipi-csi2: stream ON
[  146.669736] rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
[  146.669761] rockchip-mipi-dphy-rx: data_rate_mbps 720
[  146.670773] rockchip-mipi-dphy-rx ff4b0000.csi-dphy: stream on:1
rk_aiq_uapi_sysctl_start succeed
SAMPLE_COMM_ISP_SetFrameRate start 30
SAMPLE_COMM_ISP_SetFrameRate 30
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
[  146.859026] rkispp0: scale0:0x0 out of range:
[  146.859026]  [wUsing mplane plugin for capture
idth max:3264 ratio max:8 min:1]
[  146.859078] rkispp0: scale0:0x0 out of range:
[  146.859078]  [width max:2080 ratio max:8 min:1]
[  146.859097] rkispp0: scale0:0x0 out of[ RKMEDIA][SYS][Info]:#V4L2Ctx:aopen /dev/video19, fd 93
nge:
[  146.859097]  [width max:3264 ratio max:8 min:1]
[  146.859113] rkispp0: scale0:0x0 out of range:
[  146.859113]  [width max:3264 ratio max:8 min:1]
[  146.859130] rkispp0: scale0:0x0 out of range:
[  146.859130]  [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[2782]: mpp_rt: NOT found ion allocator
mpp[2782]: mpp_rt: found drm allocator
mpp[2782]: 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[2782]: mpp_enc: MPP_ENC_SET_RC_CFG bps 4443428 [3949713 : 4937142] fps [30:30] gop 30
mpp[2782]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [1920:1080] stride [1920:1080]
mpp[2782]: mpp_enc: send header for set cfg change input/format
[RKMEDIA][VENC][Info]:MPP Encoder: w x h(1920[1920] x 1080[1080])
mpp[2782]: 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
[RKMEDIA][SYS][Info]:Camera 0 stream 93 is started
[  146.924913] rkisppUsing mplane plugin for capt0ure
: scale1:0x0 out of range:
[  146.924913]  [width max:1280 ratio max:8 min:2]
[  146.924964] rkispp0: scale1:0x0 out of range:
[  146.924964]  [width max:1280 ratio max:8 min:2]
[  14[RKMEDIA][SYS][Info]:#V4L2Ctx: open /dev/video20, fd 107
[RKMEDIA][SYS][Info]:Opened DRM device /dev/dri/card0: driver rockchip version 2.0.0.
.924985] rkispp0: scale1:0x0 out of range:
[  146.924985]  [width max:1280 ratio max:8 min:2]
[  146.925003] rkispp0: scale1:0x0 out of range:
[  146.925003]  [width max:1280 ratio max:8 min:2]
[  146.925022] rkispp0: scale1:0x0 out of range:
[  146.925022]  [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[2782]: 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[2782]: mpp_enc: MPP_ENC_SET_RC_CFG bps 888685 [789942 : 987427] fps [30:30] gop 30
mpp[2782]: h264e_api_v2: MPP_ENC_SET_PREP_CFG w:h [720:576] stride [720:576]
mpp[2782]: mpp_enc: send header for set cfg change input/format
[RKMEDIA][VENC][Info]:MPP Encoder: w x h(720[720] x 576[576])
mpp[2782]: 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 107 is started
#Start GetMediaBuffer thread, arg:(nil)
Loading model ...
x_rate is 6.400000, y_rate is 3.600000
mpp[2782]: h264e_sps: set level to 2.2
mpp[2782]: h264e_sps: set level to 4
[DEBUG utils.c:160:rtsp_codec_data_parse_from_user_h264] sps 24
[DEBUG utils.c:168:rtsp_codec_data_parse_from_user_h264] pps 4
[DEBUG utils.c:160:rtsp_codec_data_parse_from_user_h264] sps 26
[DEBUG utils.c:168:rtsp_codec_data_parse_from_user_h264] pps 4
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
Had init the rga dev ctx = 0x54378
rga_api version 1.3.0_[11] (RGA is compiling with meson base: $PRODUCT_BASE)
rknn_run
loadLabelName
ssd - loadLabelName /oem/usr/share/rknn_model/coco_labels_list.txt
loadBoxPriors
rknn_run
rknn_run
rknn_run
rknn_run
rknn_run
rknn_run
回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2022-5-6 11:52:41        只看该作者  地板
现在还不出流吗?请问你预览的 url 是?
回复

使用道具 举报

45

积分

0

威望

0

贡献

技术小白

积分
45
发表于 2022-5-6 12:05:24        只看该作者  5#
地址是 rtsp://169.254.73.175/live/main_stream
现在有出图了,只是有报错,这个没有关系么?
回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2022-5-6 14:08:23        只看该作者  6#
我没有看到明显致命报错,你说的报错是?
回复

使用道具 举报

45

积分

0

威望

0

贡献

技术小白

积分
45
发表于 2022-5-6 14:12:26        只看该作者  7#
板蓝根 发表于 2022-5-6 14:08
我没有看到明显致命报错,你说的报错是?

[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.773351][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:7044: calib_check_tag_attrs(7044): parent_tag_id:439 parent_tag_name:zoomfocus_tbl  tag_id:1201 tag_name:unknown --- ASSERT!!!

[09:03:39.774724][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:7188: calib_check_tag_mark(7188): parent_tag_id:439 tag_id:1201 --- tag_id 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.778447][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:7044: calib_check_tag_attrs(7044): parent_tag_id:439 parent_tag_name:zoomfocus_tbl  tag_id:1201 tag_name:unknown --- ASSERT!!!

[09:03:39.779836][XCORE]:XCAM ERROR RkAiqCalibTag.cpp:7188: calib_check_tag_mark(7188): parent_tag_id:439 tag_id:1201 --- tag_id 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

感谢回复,这些没有关系?
回复

使用道具 举报

1万

积分

14

威望

13

贡献

管理员

Rank: 9Rank: 9Rank: 9

积分
11182

优秀版主

发表于 2022-5-7 14:19:12        只看该作者  8#
我看 zoom 接口相关的,这个摄像头是定焦的,没有实现相关变焦接口,所以找不到这些接口报这个错应该是正常的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表