Video conversion guides

Convert a transparent GIF to a silent H.264 MP4

·

A transparent GIF needs to play in a video-only slot. Convert one play to silent H.264 video, pick the color behind the artwork and check how the GIF's delays fit the video frame rate.

GIF to MP4

Prepare a 460 ms conversion

Open GIF to MP4 and select Load example. The GIF measures 64 × 40 pixels and stores four frames over 460 ms. It requests three plays in a GIF viewer.

Use Source size, 50 fps and Balanced. The encoding plan should show a 64 × 40 H.264 video with 23 frames and a duration of 460 ms.

ToolMellow four-frame practice GIFFFmpeg video frame-rate filter

Fill the transparent areas with a solid color

Open Background color and choose a warm cream such as #faf0d0. Convert to MP4 and play the result. The cream fills the margins where the GIF has transparent pixels.

H.264 here uses an opaque 4:2:0 picture. The converter extends odd dimensions by one pixel on the affected sides and fills the extra edge with the same background. Check small, saturated artwork for color changes at its edges.

FFmpeg color, scaling and overlay filters

Check one complete play

Download gif-utility-sample.mp4. Open it in a video player and confirm it moves through all four visible source states once, with no audio track. Turn on repeat in the player if you need continuous playback.

At 50 fps each video frame lasts 20 ms. The fixed-rate timeline repeats or skips source frames as needed. The closest whole-frame duration can differ slightly from the GIF's stored duration. A source delay of zero uses 10 ms for scheduling.

FFmpeg video frame-rate filterW3C archive of the GIF89a specification

Common questions

Can I export a smaller video?

Choose a smaller Long edge limit or the Smaller file quality. A long-edge limit never enlarges the source.

Will the output have the GIF’s three plays?

This MP4 holds one 460 ms play. You can repeat it in the receiving player or app.

Sources

Put it into practice.

Related guides