Convert MP4 to Y4M

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

Raw frames in a Y4M file.Uncompressed video with no sound, and the file is very large.

  1. What you get

    One Y4M file holding uncompressed YUV 4:2:0 frames in a YUV4MPEG2 file. Y4M is a small header followed by raw frames, the exchange format of codec testing.

    The sound is left out. The Y4M has video only.

  2. Why the file is so large

    An MP4 usually holds H.264 video with AAC audio, both compressed. Y4M stores every frame raw, so the file is very large. To go back to a compressed file, use Y4M to MP4.

  3. Options that shape the video

    Set Max width (px) or Max height (px) to shrink a video that is larger than the value. The shape is kept, and a video that is already smaller is not enlarged.

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

    Set Frame rate (fps) to change the frames per second. Set Rotate to turn the result by 90, 180 or 270 degrees clockwise. Set Speed to play faster or slower, where 2 is twice as fast and 0.5 is half as fast.

  4. If it fails

    A file that cannot be parsed stops with input_corrupted.

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

MP4 Video

The most compatible video container, usually H.264 video with AAC audio.

Extensions
.mp4 .m4v .f4v
MIME type
video/mp4
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 MP4 to Y4M conversion through the API, for your app or your agent.

terminal
$ cv convert clip.mp4 clip.y4m
$ cv convert clip.mp4 clip.y4m

Questions.What people ask about MP4 to Y4M.

01OF 04

No. The Y4M has video only, with no sound.

The frames are stored uncompressed. Setting Max width (px) or Max height (px) shrinks the frames.

Yes. Set Start at (s) and Stop at (s) to pick the part you want. Stop at counts from the start of the original.

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

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