I want to get the frames from the RTSP video using ffmpeg. But for android 10 above I am getting error as below.
E/FFmpeg: Exception while trying to run: [L
I experienced the same when I used FFmpeg-Android-Java. It seems that this library is no more supported... So I just shifted to MobileFFmpeg and works like a charm!
The only thing that you have to take care of is adding the followings in your module-level build.gradle if you use gradle plugin 4.0.0 (and above):
android {
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
}
}