Convert Y4M to PNG

Turn Y4M videos into PNG. The first frame, or the one frame_at seconds in, as one PNG at the stream's own size.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

One frame from a video, as a PNG.The first frame, or one you pick, at the stream's own size.

  1. What you get

    One PNG file with a single picture taken from the Y4M video. By default it is the first frame. The picture has the same width and height as the video stream.

    PNG is lossless, so the frame is stored as a still image with sharp edges.

  2. Choosing the frame

    Set Frame at (s) to take the picture from a later second of the video. The value runs from 0 to 86400. When you leave it out, the first frame is used.

    Only one frame is written. The rest of the video is not converted.

  3. Changing the size

    Set Width (px) or Height (px) to give an exact size. If you set only one, the other follows the aspect ratio. If you set both, the picture can be stretched.

    Set Max width (px) or Max height (px) to shrink a large frame while keeping its shape. Frames already smaller than the limit stay as they are, so nothing is enlarged. For more on sizing, see resize PNG.

  4. When it fails

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

Y4M and PNG.What each format is, and the options this conversion takes.

  1. 01 · frame_at

    Frame at (s)

    The second of the video the picture is taken from. The first frame is used when it is left out.

    0 to 86400
  2. 02 · height

    Height (px)

    The exact height of the result in pixels. The width follows the aspect ratio unless it is also given, in which case the picture can be stretched.

    1 to 20000
  3. 03 · 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
  4. 04 · 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
  5. 05 · width

    Width (px)

    The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.

    1 to 20000

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

PNG

Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.

Extensions
.png
MIME type
image/png
Kind
Images

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

terminal
$ cv convert clip.y4m clip.png
$ cv convert clip.y4m clip.png

Questions.What people ask about Y4M to PNG.

01OF 04

The first frame, unless you set Frame at (s). Then the picture is taken from that second of the video.

No. The conversion gives one PNG from one frame.

Yes, unless you set a size option. Without one, the PNG has the stream's own width and height.

Max width (px) and Max height (px) never enlarge a picture. Width (px) and Height (px) set an exact size.

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