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

mpp编码同一帧图像 可能会出现花屏 #741

Open
2398tr opened this issue Dec 16, 2024 · 10 comments
Open

mpp编码同一帧图像 可能会出现花屏 #741

2398tr opened this issue Dec 16, 2024 · 10 comments

Comments

@2398tr
Copy link

2398tr commented Dec 16, 2024

编码同一个yuv,大概率会出现如下花屏现象
image

@2398tr
Copy link
Author

2398tr commented Dec 16, 2024

rk3588s

@HermanChen
Copy link
Collaborator

格式配置有问题,输入源 422 / 420 这些配置有问题

@2398tr
Copy link
Author

2398tr commented Dec 16, 2024

输入源是对的,我试过编码同一个yuv(同一块内存),有概率正常,有概率花屏。

@2398tr
Copy link
Author

2398tr commented Dec 16, 2024

确保编码期间木任何其他数据写入

@2398tr
Copy link
Author

2398tr commented Dec 16, 2024

还有概率使用图片查看,有概率打不开文件(固件是编码损坏)

@2398tr
Copy link
Author

2398tr commented Dec 16, 2024

编码h264和h265是正常的

@2398tr
Copy link
Author

2398tr commented Dec 16, 2024

获取是
image
这个pe配置错误,只有这里和h264的不一样,这个我应该赋值?

@2398tr
Copy link
Author

2398tr commented Dec 17, 2024

找到原因了,編碼mjpeg使用dma_fd就會出現花屏,使用memcpy就正常。編碼h264的使用dma_fd也沒出現花屏的現象

@HermanChen
Copy link
Collaborator

dma fd import 进来之后有问题?

@2398tr
Copy link
Author

2398tr commented Dec 17, 2024

我没有去看mpp内部怎么去读的,确实是使用dma fd import之后就会出现问题

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

2 participants