Firefly开源社区

打印 上一主题 下一主题

[技术讨论] 关于MPP解码的问题

48

积分

0

威望

0

贡献

技术小白

积分
48

关于MPP解码的问题

发表于 2022-6-9 10:33:26      浏览:6289 | 回复:3        打印      只看该作者   [复制链接] 楼主
从官方拉取的MPP源代码编译mpi_dec_test解码不报错,只是说只解码了一帧,内存为0M。


回复

使用道具 举报

13

积分

0

威望

0

贡献

技术小白

积分
13
发表于 2022-8-29 11:05:42        只看该作者  沙发
mp4的文件是有封装的没法直接解码,可以直接使用h264格式的文件试一下。
回复

使用道具 举报

71

积分

0

威望

0

贡献

技术小白

积分
71
发表于 2022-12-26 19:27:46        只看该作者  板凳
执行命令:sudo ./mpi_dec_test -t 7 -i ~/h265h264/test4min.h264 -n 20
有报错 ,麻烦帮忙看一下

Dec 26 10:23:57 firefly mpp[3726593]: mpp_opt: setup:real node 18:22 info 11:11
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_utils: input file /home/firefly/h265h264/test4min.h264 size 3032275
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_utils: cmd parse result:
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_utils: input  file name: /home/firefly/h265h264/test4min.h264
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_utils: output file name:
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_utils: width      :    0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_utils: height     :    0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_utils: type       :    7
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_utils: max frames :   20
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: mpi_dec_test start
Dec 26 10:23:57 firefly mpp[3726593]: mpp_info: mpp version: 0be50d7f author: daijh         2022-04-14 Merge branch 'rk3588/rockchip' into rk3588/firefly
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 mpi_dec_test decoder test start w 0 h 0 type 7
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode_get_frame get info changed found
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decoder require buffer w:h [160:128] stride [160:128] buf_size 40960
Dec 26 10:23:57 firefly kernel: [869163.320130] mpp_dma_import_fd:198: dma_buf_get fd 1 failed(-22)
Dec 26 10:23:57 firefly kernel: [869163.320170] rk_vcodec: mpp_task_attach_fd:1696: can't import dma-buf 1
Dec 26 10:23:57 firefly kernel: [869163.320185] rk_vcodec: mpp_translate_reg_address:1752: reg[128]: 0x00000001 fd 1 failed
Dec 26 10:23:57 firefly kernel: [869163.320197] rk_vcodec: mpp_task_dump_mem_region:1926: --- dump mem region ---
Dec 26 10:23:57 firefly kernel: [869163.320213] mpp_rkvdec2 fdc38100.rkvdec-core: no memory region mapped
Dec 26 10:23:57 firefly kernel: [869163.320225] rk_vcodec: mpp_process_task_default:602: alloc_task failed.
Dec 26 10:23:57 firefly kernel: [869163.320379] rk_vcodec: mpp_wait_result_default:841: session 3726593:92 pending list is empty!
Dec 26 10:23:57 firefly kernel: [869163.320396] rk_vcodec: mpp_msgs_wait:1548: session 92 wait result ret -5
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 0 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 1 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 2 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 3 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 4 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 5 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 6 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 7 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 8 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 9 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 10 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 11 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 12 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 13 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 14 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 15 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 16 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 17 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 18 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: 0x5585264860 decode get frame 19 err 1 discard 0
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: decode 20 frames time 8 ms delay   2 ms fps 2258.61
Dec 26 10:23:57 firefly mpp[3726593]: mpi_dec_test: test success max memory 0.23 MB
Dec 26 10:30:34 firefly systemd[1]: Started Run anacron jobs.
Dec 26 10:30:34 firefly anacron[3730032]: Anacron 2.3 started on 2022-12-26
Dec 26 10:30:34 firefly anacron[3730032]: Normal exit (0 jobs run)
Dec 26 10:30:34 firefly systemd[1]: anacron.service: Succeeded.
回复

使用道具 举报

96

积分

0

威望

0

贡献

技术小白

积分
96
发表于 2023-1-12 17:23:26        只看该作者  地板
遇到了同样的问题,请问大佬们这么解决
回复

使用道具 举报

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

本版积分规则

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