Convert H264 to Y4M

Turn H264 videos into YUV4MPEG. Uncompressed YUV 4:2:0 frames in a YUV4MPEG2 file, without sound; the file is very large.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

Raw video frames in a Y4M file.The H264 stream becomes uncompressed frames with no sound. The file is very large.

  1. What you get

    One Y4M file that holds uncompressed YUV 4:2:0 frames in a YUV4MPEG2 file. Y4M is raw video with a small header, the exchange format of codec testing.

    The input is an H.264 elementary stream with no container, as encoders and cameras write it. Sound is not carried over, so the result has video only.

  2. Size and file weight

    Uncompressed frames take far more space than H.264 does, so the Y4M file is very large. Set Max width or Max height to shrink the picture. Both keep its shape, and a picture that is already smaller is never enlarged.

    Lower Frame rate to cut the number of frames. Fewer frames make a smaller file and choppier motion.

  3. Other options

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

    Rotate turns the result clockwise by 90, 180 or 270 degrees. Speed plays the video faster or slower, where 2 is twice as fast and 0.5 half as fast.

  4. When it stops

    If the stream cannot be parsed, the conversion stops with input_corrupted. To go the other way, use Y4M to H264.

H264 and Y4M.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.

    16 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.

    16 to 20000
  3. 03 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270
  4. 04 · speed

    Speed

    Plays faster or slower. 2 is twice as fast and 0.5 half as fast. Voices keep their pitch.

    0.25 to 4
  5. 05 · 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
  6. 06 · trim_start

    Start at (s)

    Cuts this many seconds from the beginning. Decimals such as 1.5 work.

    0 to 86400
  7. 07 · 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 120

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

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

terminal
$ cv convert clip.h264 clip.y4m
$ cv convert clip.h264 clip.y4m

Questions.What people ask about H264 to Y4M.

01OF 04

Y4M stores raw uncompressed frames. Set Max width, Max height or Frame rate to reduce the size.

No. The output holds video frames only, without sound.

Yes. Set Start at and Stop at to pick the seconds you want. Stop at counts from the start of the original.

The file could not be parsed, so the conversion stops with input_corrupted.

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