Convert Y4M to JPG

Turn Y4M videos into JPEG. The first frame, or the one frame_at seconds in, as one high quality JPEG 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 your video as a JPG.The first frame, or one you pick, at the stream's own size.

  1. What you get

    One JPG file made from a single frame of the Y4M video. By default it is the first frame. The picture is saved at high quality and at the same width and height as the video stream.

    JPG is lossy, so the picture is not a pixel-exact copy of the frame. It has no transparency.

  2. Choosing the frame

    Set Frame at (s) to the second of the video you want the picture taken from. It accepts values from 0 to 86400. When you leave it out, the first frame is used.

  3. Changing the size

    By default the size matches the video. Set Width (px) or Height (px) to give an exact size, and the other side 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.

  4. When it stops

    A file that cannot be parsed stops the conversion with input_corrupted. For other Y4M conversions, see every Y4M conversion.

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

JPEG

Lossy photo compression that every device and browser opens. Small files, no transparency.

Extensions
.jpg .jpeg .jfif .jpe
MIME type
image/jpeg
Kind
Images

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

terminal
$ cv convert clip.y4m clip.jpg
$ cv convert clip.y4m clip.jpg

Questions.What people ask about Y4M to JPG.

01OF 04

The first frame, unless you set Frame at (s). Then it is the frame at that second.

Yes, unless you set a size. The width and height match the stream until you use Width (px), Height (px), Max width (px) or Max height (px).

No. The conversion gives one file with one picture.

The file could not be parsed. The conversion stops with input_corrupted when that happens.

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