Firefly开源社区

标题: 3588J利用SDK自带的mpp中间件编解码h.264h.265格式出现问题 [打印本页]

作者: waitingwind    时间: 2022-12-26 10:20
标题: 3588J利用SDK自带的mpp中间件编解码h.264h.265格式出现问题
本帖最后由 waitingwind 于 2022-12-26 17:07 编辑

所用的ubuntu官方固件。 在开发过程中利用sdk中自带的mpp进行h.264 h.265格式视频的编解码,其中在解码过程中可以输出文件名但是文件为0k无大小,在编码过程中,无法将文件还原,编码出来的文件也没有办法播放,希望有大佬可以解答一下问题。执行命令没有相关dmesg输出。还有就是只要输入参数 -n demo就会卡死  一直保持那个界面。









syslog.zip

815.38 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1


作者: 板蓝根    时间: 2022-12-26 10:54
1. 先尝试直接用系统的 mpi_dec_test 测试
2. log 应该会输出到 /var/log/sysroot ,请截取一下,上传mpp 运行之后的 log
作者: waitingwind    时间: 2022-12-26 11:25
板蓝根 发表于 2022-12-26 10:54
1. 先尝试直接用系统的 mpi_dec_test 测试
2. log 应该会输出到 /var/log/sysroot ,请截取一下,上传mpp  ...

你好!文件已经上传

作者: waitingwind    时间: 2022-12-26 19:36
执行命令: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.
作者: waitingwind    时间: 2022-12-27 10:40
上诉问题已经解决。
作者: lxk584213344    时间: 2022-12-29 16:02
麻烦问下怎么解决的?我也碰到类似的问题,每一帧都报错了




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