How to convert a GIF file to a AVI file?
29 views (last 30 days)
Show older comments
I want to convert a GIF file to a video file (AVI or mp4). How can I do that using MATLAB?
4 Comments
Adam Danz
on 26 May 2020
An example of a loop is given in the documentation for the im2frame function.
Accepted Answer
Adam Danz
on 26 May 2020
gif2avi(file) will convert the gif file to avi and will save it to your current directory. See the documentation for that function for additional inputs.
Let me know if you have an problems.
5 Comments
shawn luo
on 14 Mar 2024
but usually the size of my converted avi files (from gif ) are much bigger than that of the original gif file, like 400MB compared to 2MB, is this normal ? I use the 2.0.0 version
More Answers (0)
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!