Firefly开源社区

标题: 关于MPP解码的问题 [打印本页]

作者: jiexijihe945    时间: 2022-6-9 10:33
标题: 关于MPP解码的问题
从官方拉取的MPP源代码编译mpi_dec_test解码不报错,只是说只解码了一帧,内存为0M。



作者: zhouli_0819    时间: 2022-8-29 11:05
mp4的文件是有封装的没法直接解码,可以直接使用h264格式的文件试一下。
作者: waitingwind    时间: 2022-12-26 19:27
执行命令: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.
作者: 见愁    时间: 2023-1-12 17:23
遇到了同样的问题,请问大佬们这么解决




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1