Convert GIF to MP4

Turn GIF images into MP4. Every frame with its own timing, the hold on the last frame included, as H.264 video at 50 frames per second unless video.fps says otherwise.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop GIF files on the dialor turn it to pick what to do

A GIF as an MP4 video.Each frame keeps its own timing, and the video plays at 50 frames per second.

  1. What you get

    One MP4 file with H.264 video. Every frame of the GIF keeps its own timing, and the hold on the last frame is included, so the pauses in the animation stay where they were.

    The video runs at 50 frames per second unless you set Frame rate (fps) to another value. The range is 1 to 120.

  2. What changes

    GIF can be transparent, but the video cannot. Transparent areas become black.

    The video does not loop by itself. A GIF repeats on its own, and the MP4 plays once and stops unless the player is set to repeat it. To go the other way, use MP4 to GIF.

  3. Speed and frame rate

    Set Speed to play the video faster or slower. A value of 2 is twice as fast and 0.5 is half as fast. The range is 0.25 to 4.

    Fewer frames per second make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures. Set Frame rate (fps) to a value in that range if you want it.

  4. When it fails

    A conversion stops with input_corrupted when the file could not be parsed. The GIF is damaged or is not a readable GIF, so there is nothing to turn into video.

GIF and MP4.What each format is, and the options this conversion takes.

  1. 01 · speed

    Speed

    Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.

    0.25 to 4
  2. 02 · video.fps

    Frame rate (fps)

    Frames per second. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.

    1 to 120 default 50

The formats

From · GIF

GIF

Indexed-color images with simple animation. Limited to 256 colors per frame.

Extensions
.gif
MIME type
image/gif
Kind
Images
To · MP4

MP4 Video

The most compatible video container, usually H.264 video with AAC audio.

Extensions
.mp4 .m4v .f4v
MIME type
video/mp4
Kind
Video

In your code.The same GIF to MP4 conversion through the API, for your app or your agent.

terminal
$ cv convert photo.gif photo.mp4
$ cv convert photo.gif photo.mp4

Questions.What people ask about GIF to MP4.

01OF 04

Yes. Every frame keeps its own timing, and the hold on the last frame is included.

No. The video does not loop by itself. It plays once unless the player is set to repeat it.

They become black, because the video has no transparency.

Set Speed below 1. A value of 0.5 plays at half the speed, and the lowest value is 0.25.

More conversions.Other ways in and out of GIF and MP4.