Firefly开源社区

打印 上一主题 下一主题

[技术讨论] 执行./rkmedia_vi_rknn_venc_rtsp_test自带的demo出现下面的错误

7

积分

0

威望

0

贡献

吃瓜的群众

积分
7

执行./rkmedia_vi_rknn_venc_rtsp_test自带的demo出现下面的错误

发表于 2023-8-27 10:41:38      浏览:1063 | 回复:1        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
在/oem/usr/bin/目录下执行
./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
会报RK_MPI_SYS_GetMediaBuffer Mode函数 this operation is not allowed!的错误
在执行命令之前也关掉默认开启的IPC应用了,其他的demo程序可以执行,只有这个demo会报错




[RKMEDIA][VENC][Info]:MPP Encoder: MPPConfig: cfg init sucess!
[RKMEDIA][VENC][Info]:MPP Encoder[JPEG]: config for JPEG...
[RKMEDIA][VENC][Info]:MPP Encoder: dcf use default value:0
[RKMEDIA][VENC][Info]:MPP Encoder: mpf_cnt use default value:0
[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[JPEG]: rotaion = 0
[RKMEDIA][VENC][Info]:MPP Encoder[JPEG]: Set output block mode.
[RKMEDIA][VENC][Info]:MPP Encoder[JPEG]: Set input block mode.
mpp[508]: mpp_enc: MPP_ENC_SET_RC_CFG bps 0 [0 : 0] fps [30:30] gop 0
mpp[508]: jpege_api_v2: jpege_proc_jpeg_cfg qf_min out of range, default set 1
mpp[508]: jpege_api_v2: jpege_proc_jpeg_cfg qf_max out of range, default set 99
[RKMEDIA][VENC][Info]:MPP Encoder[JPEG]: w x h(1920[1920] x 1080[1080]), qfactor:50
[RKMEDIA][SYS][Info]:RK_MPI_VENC_CreateChn: Enable VENC[1], Type:7 End...
[RKMEDIA][SYS][Info]:RK_MPI_SYS_Bind: Bind Mode[VI]:Chn[1] to Mode[VENC]:Chn[1]...
rtsp video
video codec not support.
create rknn_list success
x_rate is 2.400000, y_rate is 1.920000
[RKMEDIA][SYS][Error]:RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn[0] in status[1], this operation is not allowed!
[RKMEDIA][SYS][Error]:RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn[0] in status[1], this operation is not allowed!
#Start GetMediaBuffer thread, arg:(nil)
[RKMEDIA][SYS][Error]:RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn[0] in status[1], this operation is not allowed!
[RKMEDIA][SYS][Error]:RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn[0] in status[1], this operation is not allowed!
Loading model ...
[RKMEDIA][SYS][Error]:RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn[0] in status[1], this operation is n[ot allowed!
[RKMEDIA][SYS][Error]:RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn  [0] in status[1], this opera1ion is not allowed!
[RKMEDIA][SYS][Error]:RK_MPI_SYS1_GetMediaBuffer Mode[VI]:Chn8.[0] in status[1], this opera8tion is not allowed!
[RKMEDIA][SYS][I06547]nfo]:Camera 0 stream 13 is started rki
[RKMEDIA][SYS][Error]:RK_MPsI_SYS_GetMediaBuffer Mode[VIp]:Chn[0] in status[1], this  operation is not allowed!
rk[RKMEDIA][SYS][Error]:RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn[0] in status[1], this opersation is not allowed!
[RKMEpDIA][SYS][Error]:RK_MPI_SYS_-GetMediaBuffer Mode[VI]:Chn[v0] in status[1], this operatiion is not allowed!
[RKMEDIrA][SYS][Error]:RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn[0] i0n status[1], this operation :is not allowed!


log.txt

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

回复

使用道具 举报

13

积分

0

威望

0

贡献

技术小白

积分
13
发表于 2023-9-14 15:10:00        只看该作者  沙发
RK_MPI_SYS_Bind: Bind Mode[VI]:Chn[1] to Mode[VENC]:Chn[1]

RK_MPI_SYS_GetMediaBuffer Mode[VI]:Chn[0] in status[1], this operation is not allowed
看这个打印log信息,应该是demo代码里面VI的Chn写错了,使能和绑定写的是1,获取数据是0。把代码改一些应该就可以跑通了
回复

使用道具 举报

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

本版积分规则

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