permission is denied using Android Q ffmpeg": error=13, Permission denied

后端 未结 5 2335
逝去的感伤
逝去的感伤 2020-12-28 15:24

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         


        
5条回答
  •  悲&欢浪女
    2020-12-28 15:51

    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'
        }
    }
    

提交回复
热议问题