Open mnarbash opened 7 years ago
I have the same problem!
before you call convert, you should call load function. eg, App onCreate
AndroidAudioConverter.load(this, new ImpLoadCallback());
I guess you didn't add the App to manifest.xml。
just add android:name=".App" in androidmanifest application tag
same problem. java.lang.Exception: FFmpeg not loaded added android:name=".App" to the Manifest but no luck
load是一个异步方法,必须保证convert在load的success回调之后调用才行。否则就会出现上述错误。
转换的时候报这个错误:FFmpeg is not loaded
在Application里边打日志也不走onSuccess,onFailure输出的日志信息为:Failed to loaded FFmpeg lib,需要怎么解决?
AndroidAudioConverter.load(this, new ILoadCallback() {
@Override
public void onSuccess() {
// Great!
Log.e("AndroidAudio", "onSuccess");
}
@Override
public void onFailure(Exception error) {
// FFmpeg is not supported by device
Log.e("AndroidAudio", error.getMessage());
}
});
I seem to have the same problem. Does it matter whether you load with an Activity instead of an Application?
here is my code:
Activity activity = ...
AndroidAudioConverter.load(activity, new ILoadCallBack(){
@Override
public void onSuccess() {
Log.d("AudioWriter", "Success in loading FFMPEG");
}
@Override
public void onFailure() {
Log.d("AudioWriter", "Failed to load FFMPEG");
}
});
It claims to be successful every time but when I try to convert the audio I get this:
java.lang.Exception: FFmpeg not loaded
It turns out that the issue is that loading takes some time for the thread. Calling convert()
immediately won't work because FFMPEG hasn't been loaded yet. However, sleeping for around 1 second (on my device at least) seemed to solve the issue.
Is there any solution for this issue??? I can't load ffmpeg on Android 29
im having the same issue, cannot load FFMpeg, followed the guide, and gets cannot loaded ffmpeg on android 29
For me is working in version 28 and below, but impossible to load in android 29
com.arthenica:mobile-ffmpeg-full works on Android Q, the sintax is similar, you must search or find for a correct execute command string
Any update regarding this as in Android 29+, it does not load and get failure. using android:requestLegacyExternalStorage="true"
already in Manifest file.
Error: FFmpeg is not loaded how to solve it??