tao-fire 发表于 2023-8-27 10:41:38

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

在/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会报错




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


firefly133 发表于 2023-9-14 15:10:00

RK_MPI_SYS_Bind: Bind Mode:Chn to Mode:Chn

RK_MPI_SYS_GetMediaBuffer Mode:Chn in status, this operation is not allowed
看这个打印log信息,应该是demo代码里面VI的Chn写错了,使能和绑定写的是1,获取数据是0。把代码改一些应该就可以跑通了
页: [1]
查看完整版本: 执行./rkmedia_vi_rknn_venc_rtsp_test自带的demo出现下面的错误