File Exchange

image thumbnail

gif2avi

version 2.0.0 (4.63 KB) by Adam Danz
Converts GIF images to AVI (or MP4) video files.

34 Downloads

Updated 28 May 2020

View Version History

View License

gif2avi(file) converts a gif file to an avi video and saves it to the current directory.

gif2avi(file, destination) specifies where the avi file should be saved and its file name.
gif2avi(file, '.mp4') converts to mp4 file.

gif2avi(file, [ ], 'nLoops', n) records the gif loop n-times.

Set the profile (output file type), FrameRate, Colormap, and Quality in VideoWriter by using name-value parameter inputs.

aviFile = gif2avi(__) returns the full path to the avi file.

[~, vidObj] = gif2avi(__) returns the VideoWriter object.

When complete, a message is printed to the command window indicating the location of the output file.
Special thanks to Walter Roberson for feedback that improved this submission.

Cite As

Adam Danz (2020). gif2avi (https://www.mathworks.com/matlabcentral/fileexchange/76198-gif2avi), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Isaac Donis

Anjan Goswami

This function works perfectly for my conversion.

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!