Toybrick

楼主: jefferyzhang

RK3399Pro入门教程(6)硬件编解码器MPP库的使用

 

wtmelen

注册会员

积分
77
楼主
发表于 2022-9-3 12:03:01 | 显示全部楼层
本帖最后由 wtmelen 于 2022-9-4 11:34 编辑

已解决
楼主好,我在使用mpp解码时遇到了如下问题:就是判断不了mpp正常运行了没有,还是代码哪里出错了。我debug了一下,发现frame是空的但是返回的ret是成功。
1.在执行mpi_dec_test时,日志会有这样的信息Sep 03 03:43:50 debian10.toybrick kernel: rk_vcodec: vpu_service_ioctl:2140: error: unknown vpu service ioctl cmd 40086c01与手册上的不同,但是最后会显示test success。这对程序的正常执行会不会有影响。
2.我对mpi_dec_test基础上加将读取的帧转换成jpg保存起来(copy的github上的FFMPEG代码),发现保存的图片是空的。3.在ffmpeg_rtsp_mpp-master执行后读取的yuv文件也是花屏(yuvplayer)

日志:
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_utils: input  file name: /home/toybrick/01data/bigbuckbunny_480x272.h265
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_utils: output file name:
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_utils: width      :    0
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_utils: height     :    0
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_utils: type       : 16777220
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_utils: max frames :   20
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: mpi_dec_test start
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpp_info: mpp version: unknown mpp version for missing VCS info
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: 0x557b2be3e0 mpi_dec_test decoder test start w 0 h 0 type 16777220
Sep 03 09:47:00 debian10.toybrick kernel: rk_vcodec: vpu_service_ioctl:2140: error: unknown vpu service ioctl cmd 40086c01
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: 0x557b2be3e0 decode_get_frame get info changed found
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: 0x557b2be3e0 decoder require buffer w:h [480:272] stride [768:272] buf_size 376012
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: 0x557b2be3e0 decode get frame 0
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: 0x557b2be3e0 decode get frame 1
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: 0x557b2be3e0 decode get frame 2。。。。。。
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: 0x557b2be3e0 decode get frame 18
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: 0x557b2be3e0 decode get frame 19
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: decode 20 frames time 14 ms delay   4 ms fps 1413.33
Sep 03 09:47:00 debian10.toybrick mpp[27680]: mpi_dec_test: test success max memory 2.87 MB
Sep 03 09:47:00 debian10.toybrick sudo[27675]: pam_unix(sudo:session): session closed for user root




回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表