Convert Y4M to APNG

Turn Y4M videos into APNG. A looping animated PNG at 10 frames per second and at most 480 pixels wide unless asked otherwise, every frame in full color without loss, so the file is often larger than a GIF.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Raw video as a looping animation.Every frame stays in full color, at 10 frames per second and up to 480 pixels wide.

  1. What you get

    One looping APNG made from the video frames. It plays at 10 frames per second and is at most 480 pixels wide unless you change those settings.

    Every frame is kept in full color without loss. APNG also supports alpha, so it is a full-color format for animation.

  2. What changes

    The sound is dropped. APNG holds only the picture.

    The file is often larger than a GIF, because each frame is stored without loss.

    Anything wider than the width limit shrinks and keeps its shape. Anything narrower stays as it is, so nothing is enlarged.

  3. Size, speed and length

    Set Max width or Max height to change the size. Both only shrink, so a small video is never enlarged. Max width is 480 by default.

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

    Set Start at to cut seconds from the beginning, and Set Stop at to end earlier. Stop at counts from the start of the original, so it must be later than Start at.

  4. When it fails

    If the Y4M file cannot be parsed, the conversion stops with input_corrupted.

    You can also browse every Y4M conversion or every APNG conversion.

Y4M and APNG.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 · APNG

Animated PNG

Animated PNG, full-color animation with alpha.

Extensions
.apng
MIME type
image/apng
Kind
Images

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

terminal
$ cv convert clip.y4m clip.apng
$ cv convert clip.y4m clip.apng

Questions.What people ask about Y4M to APNG.

01OF 04

No. The sound is dropped, and the APNG holds only the picture.

Every frame is kept in full color without loss. That makes the file often larger than a GIF.

Yes. Set Start at to cut seconds from the beginning, and set Stop at to end at a given second of the original.

Yes. The APNG loops.

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