在Android中将GIF转换为视频 [英] Convert GIF to Video in Android
本文介绍了在Android中将GIF转换为视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将GIF文件转换为视频文件,我进行了搜索,但找不到任何库.有人知道怎么做吗?
I want to convert GIF file to video file, I searched for it but couldn't find any library for it. Does any one know how to do it ?
推荐答案
有一个库 android- ffmpeg
简而言之,FfmpegController中有一个名为convertImageToMP4 (Clip mediaIn, int duration, String outPath, ShellCallback sc)
的方法.我认为它应该做,随您想要.
In short, there is method in FfmpegController called convertImageToMP4 (Clip mediaIn, int duration, String outPath, ShellCallback sc)
. I think it should do, what you want.
另外,请参见此答案有关更多详细信息.
Also, please, see this answer for more details.
这篇关于在Android中将GIF转换为视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文