![]() The initial goal was to find out how to add animated images to the video so my first thought was to divide the video into frames and add a particular animation moment to each of them. Note: minSdkVersion should be 16 or higher!įor initialization before using please use the following piece of code: FFmpeg ffmpeg = FFmpeg.getInstance(context) įfmpeg.loadBinary(new LoadBinaryResponseHandler() void onStart() void onFailure() void onSuccess() void onFinish() ![]() To add this library just add this code to your Gradle file: compile 'com.writingminds:FFmpegAndroid:0.3.2’ In case you do not have much experience with NDK or you have not worked with it at all you can use FFmpeg-android-java library which allows using FFmpeg without having to work with NDK. Another advantage of FFmpeg framework is that it is supported for many processor architectures and in this way we can use it with NDK almost on all Android devices. I tried each library and settled upon FFmpeg because it allows lots of basic video operations including even frame breakdown and in this way really stands out from JCodec and Java Mp4Parser, which are slower and have poorer functionality. Tha final list of the candidates looked like this: They were several libraries allowing some video manipulations but I did not know much about their functionality at that point. After lots of googling and reviewing possible options and existing similar apps and examples, I found only a few tools which seemed reasonable at that point. There was no simple solution and I had to solve the task and besides do it quickly. But in some time after starting the development, I realized Android OS did not (and does not) have instruments for that kind of manipulations. I was really excited when it turned out my new Android project was related to the video processing because the task was very interesting and I thought I knew some possible solutions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |