I need to add video filter in my android app like Instagram. I searched alot but did not find much stuff. Is there any library for this like aviary sdk for image editing ?
The shortest way to do this would be using OpenCV library for Java (importing it to Android project could be trcky) - it enables you to easaly extract each frame to different types of Image objects on which you can apply your filter (not sure if OpenCV contains tools for doing this) and then composing a new Video with modified frames.
Have in mind that this might be highly both CPU and battery consuming and I am not quite sure how would this work on various hardware configurations.
The other - longer - solution is to dig in to Android NDK and try to use ffmpeg. All in all it might decrease CPU load.
Also the new Android L release will provide some basic filters for Camera (not sure if this includes videos) https://www.youtube.com/watch?v=Xtp3tH27OFs so you could wait for some Compat library
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With