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

重打包功能异常 #8

Open
XWS opened this issue Apr 7, 2020 · 3 comments
Open

重打包功能异常 #8

XWS opened this issue Apr 7, 2020 · 3 comments

Comments

@XWS
Copy link

XWS commented Apr 7, 2020

在你的示例项目和我照着你的代码敲的demo中,重打包功能都出现了一个异常
image
一开始我以为是模拟器的问题,可是后面运行到平板上发现也有这个问题。
平板系统版本:6.0.1

@NianyiYang
Copy link

NianyiYang commented Dec 7, 2020

MP4Repack 中的 val buffer = ByteBuffer.allocate(500 * 1024) 改为 val buffer = ByteBuffer.allocate(1024 * 1024)

原因是你使用了一个高码率的源视频,而你设置的缓冲区太小 导致溢出

@XWS

@XWS
Copy link
Author

XWS commented Dec 7, 2020

那是不是应该动态的设置为源视频的码率大小?

@NianyiYang
Copy link

@XWS 理论上是的,但是因为是 demo 所以我没仔细验证。你可以试试看

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