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

java.lang.Exception: FFmpeg not loaded #36

Open zhouqunhuang opened 4 years ago

zhouqunhuang commented 4 years ago

Why do I have this problem when I transcode?

DeepanJN commented 4 years ago

FFmpeg is not executable, trying to make it executable ... facing the same

yyms3275 commented 4 years ago

Please write as below. You can solve the above problem.

AndroidAudioConverter.load(this, new ILoadCallback() { @Override public void onSuccess() { IConvertCallback callback = new IConvertCallback(){ @Override public void onSuccess(File convertedFile){ // onSuccess } @Override public void onFailure(Exception error){ error.printStackTrace(); } }; AndroidAudioConverter.with(this) .setFile(new File("File Path...")) .setFormat(AudioFormat.MP3) .setCallback(callback) .convert(); } @Override public void onFailure(Exception error){ error.printStackTrace(); } });