GithubHelp home page GithubHelp logo

tainzhi / ffmpeg-jni-example Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 13.0 5.03 MB

使用jni调用ffmpeg,首先将so库编入apk,jni的实现上使用直接传递ffmpeg command的方式,这样只需要安排合适的ffmpeg命令即可完成工作,不用再去研究ffmpeg的函数调用。

Java 0.22% Makefile 0.35% C 97.00% C++ 2.44%

ffmpeg-jni-example's People

Contributors

tainzhi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ffmpeg-jni-example's Issues

为什么会发生此错误?

你好
我的开发环境是AndroidStudio 3.0.1,java是1.8
当我用示例代码运行它时,会发生以下错误。
E / AndroidRuntime:致命例外:主
                  进程:com.muqing.android.ffmpeg_jni_example,PID:16210
                  java.lang.UnsatisfiedLinkError中:dlopen的失败:找不到 “libavutil.so” 从verneed [1] DT_NEEDED列表 “/data/app/com.muqing.android.ffmpeg_jni_example-1/lib/arm/libavcodec.so”
                      在java.lang.Runtime.loadLibrary(Runtime.java:372)
                      在java.lang.System.loadLibrary(System.java:1076)
                      在com.muqing.android.ffmpeg_jni_example.FFmpegNativeHelper。(FFmpegNativeHelper.java:14)
                      在com.muqing.android.ffmpeg_jni_example.MainActivity.onStart(MainActivity.java:39)
                      在android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1265)
                      在android.app.Activity.performStart(Activity.java:6915)
                      在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3216)
                      在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349)
                      在android.app.ActivityThread.access $ 1100(ActivityThread.java:221)
                      在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1794)
                      在android.os.Handler.dispatchMessage(Handler.java:102)
                      在android.os.Looper.loop(Looper.java:158)
                      在android.app.ActivityThread.main(ActivityThread.java:7224)
                      在java.lang.reflect.Method.invoke(Native方法)
                      在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1230)
                      在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
应用终止。

为什么会发生此错误?

java.lang.UnsatisfiedLinkError: dlopen failed: cannot find "libavutil.so" from verneed[1]

05-17 00:09:28.206 21569-21569/com.muqing.android.ffmpeg_jni_example E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.muqing.android.ffmpeg_jni_example, PID: 21569
    java.lang.UnsatisfiedLinkError: dlopen failed: cannot find "libavutil.so" from verneed[1] in DT_NEEDED list for "/data/app/com.muqing.android.ffmpeg_jni_example-1/lib/arm/libavcodec.so"
        at java.lang.Runtime.loadLibrary(Runtime.java:372)
        at java.lang.System.loadLibrary(System.java:1076)
        at com.muqing.android.ffmpeg_jni_example.FFmpegNativeHelper.<clinit>(FFmpegNativeHelper.java:14)
        at com.muqing.android.ffmpeg_jni_example.MainActivity.onStart(MainActivity.java:37)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.