How to apply video filtering in android?

I am working on app like instagram where i have to apply filters on already created video and stored it in SDCard. I have searched a lot but at the end of day i find one library named FFMPEG but didn't get any help. I am newbie in video filtering. and I have setup NDK but don't know how to use this library.Is there any other way of applying filters on video and create a new video?

在这里输入图像描述


Well, if you have a problem with configuring FFmpeg with Android FFmpeg wiki and this popular question has a good explanation on it. Apart from that to apply colour effects to a video you need to know the properties of a video that need to be changed.

Here you can find some of the filters that can be used with there property values. You can use those values with FFmpeg. When converting those css values to FFmpeg context you can use a comprehensive documentation provided by W3 for css. Further you can play around and create fancy filters with FFmpeg. I faced the same kind of issue and here I have explained the solution for some of it. Applying this kind of change to a video needs a re-encoding and therefore this process will take significant time compared to applying same effect to an image. So bare it.

FFmpeg comprise of several different filters to manipulate colour levels and its related properties like brightness, saturation, etc. You can find those different filters on FFmpeg doc. Always try to follow-up the documentation as most of the time they provide solutions for our problems.

Hope this helps!

链接地址: http://www.djcxy.com/p/25630.html

上一篇: 运行时大小的数组和指针

下一篇: 如何在Android中应用视频过滤?