Using FFmpeg with Android-NDK

前端 未结 2 976
你的背包
你的背包 2020-11-28 19:48

I want to use FFmpeg with Android-NDK and I am very basic in this section, I need some help and I research about this topic before on the net, but

相关标签:
2条回答
  • 2020-11-28 20:25

    From your question it is hard to tell what exactly you want/need... so here some general information:

    • Using FFmpeg with Android
    • Good starting point for FFmpeg on Android based on ndkr5
    • Another good starting point for building FFmpeg for Android
    • Helpful information to build FFmpeg for android see here, here and here
    • Make sure that you use Windows paths instead of /cydrive... when doing ffmpeg/android/cygwin/windows dev

    If you need further help please explain exactly what you want to achieve and what is not working...

    UPDATE - as per comments:

    To use ffmpeg via command line on Android you need to copy ffmpeg into your application's files directory and chmod 755 it using getRuntime.exec() then you can run ffmpeg with the following line for example:

    Process p = Runtime.getRuntime().exec("/data/data/yourpackagename/files/ffmpeg -i infile.mp4 outfile.mp4")
    
    0 讨论(0)
  • 2020-11-28 20:29

    I made a tutorial on how to build ffmpeg and x264 for android: http://db.tt/TjMqIF3u

    You can also download the zip file containing the files you need to make an application on android and also an executable of lastest ffmpeg to run on android.

    EDIT: This is really old code and old compilation process. You can find a more up to date process on FFMPEG docs

    0 讨论(0)
提交回复
热议问题