Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rk3588 android上mpp编码花屏严重 #725

Open
patstar123 opened this issue Nov 28, 2024 · 0 comments
Open

rk3588 android上mpp编码花屏严重 #725

patstar123 opened this issue Nov 28, 2024 · 0 comments

Comments

@patstar123
Copy link

背景:我在使用rk3588 android的TIF框架的录制功能,发现rk的tv_input hal功能不完善,尝修改固件源码:rockchip\tv_input\enc\RKMppEncApi.cpp

问题描述:使用mpp编码h264,encode_get_packet后通过MppEncodeServer或者直接fd写到文件,播放h264裸流文件,出现严重花屏,

线索1:用ffplay播放到花屏画面时有如下报错
[h264 @ 000001b35c129380] left block unavailable for requested intra4x4 mode -1
[h264 @ 000001b35c129380] error while decoding MB 0 44

线索2:多次dump,发现出现花屏的frame差不多在第50帧左右,无论是否调整gop大小、码率参数,情况不变
fd3757c2ebb9fa4f8692a04ca8f2949

线索3:如果配置编码器(head mode)在每个idr之前attach sps和pps,大概率会导致idr帧数据被破坏,导致文件不可播放

线索4:切换(slice split mode)单slice和多slice,同样会出现该问题

附件
1)h264流文件
2)mpp配置源码
配置源码和视频文件.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant