Use ffmpeg.c in my Android Application [duplicate]
I am building a video processing solution for use on Android phones. I have built FFmpeg for Android and have gotten a video to play using OpenGL. My next problem is being able to clip the files and save them to disk. I know that using FFmpeg from the command line this is easy. Do you guys think it would be possible for me to take the main() method in开发者_开发知识库 ffmpeg.c and change that into a function call and just pass the arguments to it, other than running it as a C program from the command line? I think this would require my app to be opensource but thats not a problem. Ok well any help or alternate ideas would be much appreciated! Thanks!
Have you tried looking at the NDK at all to link the methods to your android app?
http://developer.android.com/sdk/ndk/index.html
精彩评论