Convert H264 to PNG

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

One still frame from a raw H.264 stream.The result is one PNG at the stream's own size.

  1. What you get

    A single PNG taken from the first frame of the stream. Set Frame at (s) to take the frame at a chosen second instead.

    The picture has the same width and height as the video. PNG is lossless, so the image is stored without further loss.

  2. Reaching a late frame

    A raw H.264 stream has no index. To reach a frame late in the stream, everything before it has to be decoded first. Frame at (s) accepts values from 0 to 86400.

  3. Setting the size

    Set Width (px) or Height (px) for an exact size. If you give only one, the other follows the aspect ratio. If you give 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 within the limit stay as they are, so nothing is enlarged. For more on resizing, see resize PNG.

  4. When it stops

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

H264 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 · 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 · 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 H264 to PNG conversion through the API, for your app or your agent.

terminal
$ cv convert clip.h264 clip.png
$ cv convert clip.h264 clip.png

Questions.What people ask about H264 to PNG.

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 option. Without one, the PNG has the stream's own width and height.

No. The conversion produces one file with one frame.

The stream has no index. Reaching a late frame means decoding everything before it.