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

Slow MP3 decoding #2

Open
reminmax opened this issue Jul 16, 2022 · 1 comment
Open

Slow MP3 decoding #2

reminmax opened this issue Jul 16, 2022 · 1 comment

Comments

@reminmax
Copy link

Hello Yang.
Thanks a lot for the code.

MP3 decoding is very slow (a 300 sec file takes more than 20 seconds to decode). Wav decoding is twice as fast.
Is there any way to speed up this process?

I've found reports that MediaCodec itself is slow, but I'm not sure. The technical messages were about earlier versions of Android.

@stefanJi
Copy link
Owner

stefanJi commented Jun 7, 2023

Recommend use ffmpeg decoding mp3 to wav data, and use this code generates waveform from wav data.

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