adrielcafe / AndroidAudioConverter

Convert audio files inside your Android app easily. Supported formats: AAC, MP3, M4A, WMA, WAV and FLAC.
1.33k stars 254 forks source link

Very slow #19

Open Dshmuel opened 6 years ago

Dshmuel commented 6 years ago

Something bad with codecs included. Converting WAV -> AAC of 10sec-file takes 20 sec... Unacceptable. Other solution (using android's MediaCodec & MediaMuxer) do same work in 0.5sec.

ghost commented 6 years ago

How do you convert it with MediaCodec & MediaMuxer?

Dshmuel commented 6 years ago

Using this:

https://github.com/tqnst/MP4ParserMergeAudioVideo/blob/master/Mp4ParserSample-master/src/jp/classmethod/sample/mp4parser/MainActivity.java#L335-L442