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 ?
Asked
Active
Viewed 3,176 times
-2
-
1im convert two img and audio in video, using ffmpeg mb sample help u=) https://github.com/v4ekmarev/MergerLibrary/blob/master/app/src/main/java/com/example/vladlen/mergerlibrary/Merger.java – PeDuCKA Jul 20 '16 at 12:27
1 Answers
1
There is library android-ffmpeg
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.

Community
- 1
- 1

Michael Spitsin
- 2,539
- 2
- 19
- 29
-
I think it's for Image to MP4, i want GIF to MP4(or any other video format) – Akshay Panchal Jul 20 '16 at 12:36
-
This function uses command for ffmpeg converter. Base on it, you can create your own which will be use this command `ffmpeg -f gif -i infile.gif outfile.mp4` – Michael Spitsin Jul 20 '16 at 12:43