简体   繁体   中英

Using FFmpeg with Android-NDK

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 got no satisfactory solution.

1 - How can I use FFmpeg through Windows OS. (I do not want to use Ubuntu, please do not suggest.)

2 - How can I inset FFmpeg commands via NDK ?

Last notice : I using android-ndk-r7b and Cygwin .

Any suggestion would be appreciated.

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

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")

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM