jiexijihe945 发表于 2022-6-9 10:33:26

关于MPP解码的问题

从官方拉取的MPP源代码编译mpi_dec_test解码不报错,只是说只解码了一帧,内存为0M。


zhouli_0819 发表于 2022-8-29 11:05:42

mp4的文件是有封装的没法直接解码,可以直接使用h264格式的文件试一下。

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

见愁 发表于 2023-1-12 17:23:26

遇到了同样的问题,请问大佬们这么解决
页: [1]
查看完整版本: 关于MPP解码的问题