Toybrick

标题: 执行mpi_dec_test出异常? [打印本页]

作者: sanwang    时间: 2022-10-29 20:06
标题: 执行mpi_dec_test出异常?
本帖最后由 sanwang 于 2022-10-29 20:25 编辑

直接基于mpp-release进行编译,执行mpi_dec_test进行测试:

desktopclient@linaro-alip:~/workspace/mpp-release/build$ ./test/mpi_dec_test -i ~/workspace/mpp_linux_cpp-master/res/Tennis1080p.h264 -o ./out.yuv -n 10 -t 7
mpp[4423]: mpi_dec_test: cmd parse result:
mpp[4423]: mpi_dec_test: input  file name: /home/desktopclient/workspace/mpp_linux_cpp-master/res/Tennis1080p.h264
mpp[4423]: mpi_dec_test: output file name: ./out.yuv
mpp[4423]: mpi_dec_test: config file name:
mpp[4423]: mpi_dec_test: width      :    0
mpp[4423]: mpi_dec_test: height     :    0
mpp[4423]: mpi_dec_test: type       : 7
mpp[4423]: mpi_dec_test: debug flag : 0
mpp[4423]: mpi_dec_test: max frames : 10
mpp[4423]: mpi_dec_test: mpi_dec_test start
mpp[4423]: mpi_dec_test: input file size 10786528
mpp[4423]: mpp_info: mpp version: unknown mpp version for missing VCS info
mpp[4423]: mpi_dec_test: 0x55c2e3c760 mpi_dec_test decoder test start w 0 h 0 type 7
mpp[4423]: mpp_rt: NOT found ion allocator
mpp[4423]: mpp_rt: found drm allocator
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode_get_frame get info changed found
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decoder require buffer w:h [1920:1080] stride [1920:1088] buf_size 4177920
mpp[4423]: mpp_serivce: mpp_service_cmd_send ioctl MPP_IOC_CFG_V1 failed ret -1 errno 12 Cannot allocate memory
mpp[4423]: hal_h264d_vdpu34x: vdpu34x_h264d_start send cmd failed 12
mpp[4423]: mpp_serivce: mpp_service_cmd_poll ioctl MPP_IOC_CFG_V1 failed ret -1 errno 5 Input/output error
mpp[4423]: hal_h264d_vdpu34x: vdpu34x_h264d_wait poll cmd failed 5
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 0 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 1 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 2 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 3 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 4 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 5 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 6 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 7 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 8 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 decode get frame 9 err 1 discard 0
mpp[4423]: mpi_dec_test: 0x55c2e3c760 reach max frame number 10
mpp[4423]: mpi_dec_test: 0x55c2e3c760 input 518 pkt output 11 frm decode 10 frames
mpp[4423]: mpi_dec_test: test success max memory 15.94 MB


作者: sanwang    时间: 2022-10-29 21:14
已经解决了,需要用chrpath命令把自己编译出来的test命令所引用的mpp库路径改为系统预先安装好的那一个。




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3