Toybrick

标题: mpp测试程序出错 [打印本页]

作者: xxyyzz    时间: 2023-6-25 14:45
标题: mpp测试程序出错
在RK3588,ubuntu20.04系统上,同步了仓库https://github.com/rockchip-linux/mpp

编译后安装mpp到系统里,然后执行如下命令测试程序解码一个mp4的文件。
mpi_dec_test -t 7 -i 1.mp4 -n 10

输出如下:
mpi_dec_test -t 7 -i 1.mp4 -n 10
mpp[86645]: mpi_dec_test: cmd parse result:
mpp[86645]: mpi_dec_test: input  file name: 1.mp4
mpp[86645]: mpi_dec_test: output file name:
mpp[86645]: mpi_dec_test: config file name:
mpp[86645]: mpi_dec_test: width      :    0
mpp[86645]: mpi_dec_test: height     :    0
mpp[86645]: mpi_dec_test: type       : 7
mpp[86645]: mpi_dec_test: debug flag : 0
mpp[86645]: mpi_dec_test: max frames : 10
mpp[86645]: mpi_dec_test: mpi_dec_test start
mpp[86645]: mpi_dec_test: input file size 13683820
mpp[86645]: mpp_info: mpp version: 3c5dc7fe author: sayon.chen    2020-11-23 [h265d_syntax]: Fix h265 syntax fill sps rps issue
mpp[86645]: mpi_dec_test: 0x558d130520 mpi_dec_test decoder test start w 0 h 0 type 7
mpp[86645]: mpp_rt: NOT found ion allocator
mpp[86645]: mpp_rt: NOT found drm allocator
mpp[86645]: mpp_log: can not found match soc name: rockchip,rk3588-firefly-itx-3588j rockchip,rk3588
mpp[86645]: mpp_serivce: open mpp_service to check cmd capability failed
mpp[86645]: hal_h264d_api: hal_h264d_init can not found H.264 decoder hardware on platform 0
mpp[86645]: mpp_hal: mpp_hal_init hal h264d_rkdec init failed ret -2
mpp[86645]: mpp_hal: mpp_hal_init could not found coding type 7
mpp[86645]: mpp_dec: mpp_dec_init could not init hal
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp_time: mpp_clock_put invalid clock (nil)
mpp[86645]: mpp: error found on mpp initialization
mpp[86645]: mpi_dec_test: 0x558d130520 mpp_init failed
mpp[86645]: mpi_dec_test: test failed ret -1


看到这行日志
hal_h264d_api: hal_h264d_init can not found H.264 decoder hardware on platform 0
似乎没有找到H264的解码器,请问这可能是什么原因,是不是有什么驱动没有转?


作者: jefferyzhang    时间: 2023-6-25 16:55
硬解码器只能解码裸数据,不能解析封装格式,请把mp4里的264或者265脱包出来再用mpp解码
作者: xxyyzz    时间: 2023-6-25 19:23
jefferyzhang 发表于 2023-6-25 16:55
硬解码器只能解码裸数据,不能解析封装格式,请把mp4里的264或者265脱包出来再用mpp解码 ...

那用个h264的文件应该可以吧?

我试了下h264的文件,还是同样的错误。
作者: keqi    时间: 2023-6-28 10:10
直接用deb包或者apt安装试一下, 我也曾经用源码编译过。




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