Open zhaochengwei opened 4 years ago
root@douding-pack:~/mpp/test# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
root@douding-pack:~/mpp/test# uname -a
Linux douding-pack 4.4.52 #14 SMP PREEMPT Fri Jun 14 17:18:50 CST 2019 aarch64 aarch64 aarch64 GNU/Linux
mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decode_get_frame get frame 47 MPP_FMT_YUV420SP use: 22 ms mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decode_get_frame get frame 48 MPP_FMT_YUV420SP use: 36 ms mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decode_get_frame get frame 49 MPP_FMT_YUV420SP use: 39 ms mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decode_get_frame get frame 50 MPP_FMT_YUV420SP use: 23 ms mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 51 mpp_buffer_group_unused(data.frm_grp)=20 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 52 mpp_buffer_group_unused(data.frm_grp)=21 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 53 mpp_buffer_group_unused(data.frm_grp)=21 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 54 mpp_buffer_group_unused(data.frm_grp)=22 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 55 mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 56
我这也出现很多的这种消息,硬件解码失败,丢失帧
我在其他网站上找到了一个说法:
硬解码是不会给你合并帧的,丢进去硬件一帧要么解的出来,要么就解不出来。 如果送mpp的一帧不完整,你要开SPLITE_MODE,这样mpp软件部分会去合并,但是建议自己合并完完整帧再送mpp。
但是不知道怎么开启splite_mode,
root@douding-pack:~/mpp/test# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial root@douding-pack:~/mpp/test# uname -a Linux douding-pack 4.4.52 #14 SMP PREEMPT Fri Jun 14 17:18:50 CST 2019 aarch64 aarch64 aarch64 GNU/Linux
这个最后的解码报错估计是最后一帧的最后一包不完整导致出错的,没什么问题的。
mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decode_get_frame get frame 47 MPP_FMT_YUV420SP use: 22 ms mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decode_get_frame get frame 48 MPP_FMT_YUV420SP use: 36 ms mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decode_get_frame get frame 49 MPP_FMT_YUV420SP use: 39 ms mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decode_get_frame get frame 50 MPP_FMT_YUV420SP use: 23 ms mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 51 mpp_buffer_group_unused(data.frm_grp)=20 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 52 mpp_buffer_group_unused(data.frm_grp)=21 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 53 mpp_buffer_group_unused(data.frm_grp)=21 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 54 mpp_buffer_group_unused(data.frm_grp)=22 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 55 mpp_buffer_group_unused(data.frm_grp)=23 mpi_dec_test: decoder_get_frame get err info:1 discard:0. mpi_dec_test: decode_get_frame get frame 56
我这也出现很多的这种消息,硬件解码失败,丢失帧
我在其他网站上找到了一个说法:
硬解码是不会给你合并帧的,丢进去硬件一帧要么解的出来,要么就解不出来。 如果送mpp的一帧不完整,你要开SPLITE_MODE,这样mpp软件部分会去合并,但是建议自己合并完完整帧再送mpp。
但是不知道怎么开启splite_mode,
看 mpi_dec_test 里的 need_split 标志
@HermanChen 已经解决了 mpp可以屏蔽 解码错误信息的功能,不注意看文档确实很难发现 最近github国内太难访问了,什么时候也弄一个比较好的国内的镜像呢?
branch:
release
test.264:
https://whale-firmware.oss-cn-shanghai.aliyuncs.com/tmp/test.264
board:
firefly-rk3399
dmesg
result