gif2avi

バージョン 2.0.0 (4.63 KB) 作成者: Adam Danz
Converts GIF images to AVI (or MP4) video files.
ダウンロード: 721
更新 2020/5/28

ライセンスの表示

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.

引用

Adam Danz (2024). gif2avi (https://www.mathworks.com/matlabcentral/fileexchange/76198-gif2avi), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2020a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
2.0.0

VideoWriter inputs are now passed as name-val pairs. nLoops option to control number of GIF loops. MP4 now supported. Improved input validation. Only partially compatible with earlier versions of gif2avi().

1.1.0

Frame rate input added (fps) and VideoWriter object output added (vwo).

1.0.2

Corrected error caused by duplicate periods in the file extension. Added an assertion to check that destination directory exists.

1.0.1

Small changes to documentation, added profile input and outFile output.

1.0.0