Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement Video filter on android like instagram [closed]

Tags:

android

video

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 ?

like image 852
DJtiwari Avatar asked Sep 30 '22 00:09

DJtiwari


1 Answers

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

like image 156
aldorain Avatar answered Nov 01 '22 10:11

aldorain