如何在Android中添加不同的视频效果? [英] How to add different video effect in android?
问题描述
我要在android系统添加不同的视频效果。该视频效果就像B和黑白,褐色和灰度。任何人都可以建议我如何将此效果添加到视频?
I want to add different video effect in android. The video effect like B&W, Sepia and Grayscale. Can anyone suggest me how to add this effect to video?
推荐答案
您可以使用 EQ
和 colorchannelmixer
过滤器来实现这一目标。对于例如,您可以使用添加棕褐色效果 colorchannelmixer
是这样的。
You can use eq
and colorchannelmixer
filters to achieve this. For an instance you can add sepia effect using colorchannelmixer
like this.
colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131
使用 EQ
过滤器来调节亮度,对比度等来源的功能。
FFmpeg的 filter_complex
可用于这两个过滤器,如果需要相关联。欲了解更多信息,请阅读文档这的问题。
Use eq
filter to adjust brightness, contrast, etc features of the source.
FFmpeg filter_complex
can be used to associate those two filters if needed. For further information read the documentation and this question.
希望这可以帮助您!
这篇关于如何在Android中添加不同的视频效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!