Convert Y4M to GIF

Turn Y4M 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 Y4M files on the dialor turn it to pick what to do

A looping GIF from raw Y4M video.Ten frames per second, up to 480 pixels wide, one palette for the clip.

  1. What you get

    One GIF that loops. It plays at 10 frames per second and is at most 480 pixels wide, unless you set other values.

    The whole clip shares a single 256-color palette. GIF is limited to 256 colors per frame, so colors outside that palette are not kept as they were.

  2. Size and speed

    Max width is 480 by default. Set Max width (px) or Max height (px) to change the limit. Both only shrink: a video that is already smaller keeps its size, and nothing is enlarged. The shape of the picture stays the same.

    Frame rate (fps) is 10 by default and accepts 1 to 50. 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 that many 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 counts from the start of the original, not from where trimming starts, so it must be later than Start at.

  4. When it stops

    A file that cannot be parsed stops the conversion with input_corrupted.

Y4M 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 · Y4M

YUV4MPEG

Raw uncompressed video frames with a small header, the exchange format of codec testing.

Extensions
.y4m
MIME type
video/x-yuv4mpeg
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 Y4M to GIF conversion through the API, for your app or your agent.

terminal
$ cv convert clip.y4m clip.gif
$ cv convert clip.y4m clip.gif

Questions.What people ask about Y4M to GIF.

01OF 04

It is at most 480 pixels wide, and the height follows the shape of the video. A narrower video keeps its width.

Raise Frame rate (fps). 24 to 30 looks natural, but the default is 10. Fewer frames make a smaller file and choppier motion.

Yes. Set Start at (s) and Stop at (s). Stop at counts from the start of the original, so it must be later than Start at.

The Y4M file could not be parsed. The conversion stops with input_corrupted in that case.

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