Convert H264 to GIF

Turn H264 videos into GIF. A looping GIF at 10 frames per second and at most 480 pixels wide unless asked otherwise, with one 256-color palette for the whole clip.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A looping GIF from a raw H.264 stream.The clip plays at 10 frames per second and is at most 480 pixels wide.

  1. What you get

    One GIF that loops. By default it runs at 10 frames per second and is no wider than 480 pixels. Both can be changed with the options.

    The whole clip uses one 256-color palette. GIF allows 256 colors per frame, and the palette is shared across the clip.

  2. Size and speed options

    Set Max width (px) or Max height (px) to shrink the picture while keeping its shape. Anything already smaller stays as it is, so nothing is enlarged. Max width (px) is 480 unless you change it.

    Set Frame rate (fps) to change how many frames each second holds. Fewer frames make a smaller file and choppier motion. 24 to 30 looks natural, and 10 to 15 is common for animated pictures.

  3. Cutting the clip

    Set Start at (s) to cut seconds from the beginning. Decimals such as 1.5 work. Set Stop at (s) to end at a given second of the original.

    Stop at (s) counts from the start of the original, not from where trimming starts, so it must be later than Start at (s).

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

  1. 01 · max_height

    Max height (px)

    Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.

    1 to 20000
  2. 02 · max_width

    Max width (px)

    Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.

    1 to 20000 default 480
  3. 03 · trim_end

    Stop at (s)

    Stops at this second of the original. It counts from the start of the original, not from where trimming starts, so it must be later than Start at.

    0 to 86400
  4. 04 · trim_start

    Start at (s)

    Cuts this many seconds from the beginning. Decimals such as 1.5 work.

    0 to 86400
  5. 05 · 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 50 default 10

The formats

From · H264

Raw H.264 Stream

An H.264 elementary stream with no container, as encoders and cameras write it.

Extensions
.h264 .264
MIME type
video/h264
Kind
Video
To · GIF

GIF

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

Extensions
.gif
MIME type
image/gif
Kind
Images

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

terminal
$ cv convert clip.h264 clip.gif
$ cv convert clip.h264 clip.gif

Questions.What people ask about H264 to GIF.

01OF 04

Yes. The GIF loops.

At most 480 pixels unless you set Max width (px) to something else. A video narrower than the limit stays as it is.

Yes. Set Start at (s) and Stop at (s) to pick the part you want.

The file could not be parsed, so the conversion stops with input_corrupted.

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