Convert MKV to Y4M
Turn MKV 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 MKV files on the dialor turn it to pick what to do
Raw video frames from an MKV file.Uncompressed YUV 4:2:0 frames in one Y4M file, without sound.
What you get
A YUV4MPEG2 file that holds the video of your MKV as uncompressed YUV 4:2:0 frames. Y4M is the raw frame format used for codec testing, so the file suits that kind of work.
The file is very large, because the frames are not compressed.
What it leaves behind
Sound. The Y4M file has no audio. An MKV can hold several audio and subtitle tracks, and none of them come across.
Shaping the video
Set Max width or Max height to shrink frames that are larger than the value. Smaller frames stay as they are, so nothing is enlarged. Set Frame rate to change the frames per second, since fewer frames make a smaller file.
Set Start at and Stop at to cut a part of the video. Stop at counts from the start of the original, so it must be later than Start at. Set Rotate to turn the picture by 90, 180 or 270 degrees clockwise, and set Speed to play faster or slower.
When it fails
If the MKV cannot be parsed, the conversion stops with
input_corrupted.
MKV and Y4M.What each format is, and the options this conversion takes.
- 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 - 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 - 03 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270 - 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 - 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 - 06 · trim_start
Start at (s)
Cuts this many seconds from the beginning. Decimals such as 1.5 work.
0 to 86400 - 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
Matroska Video
Matroska, an open container that holds any codec plus multiple audio and subtitle tracks.
- Extensions
- .mkv
- MIME type
- video
/x -matroska - Kind
- Video
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 MKV to Y4M conversion through the API, for your app or your agent.
$ cv convert clip.mkv clip.y4m$ cv convert clip.mkv clip.y4mQuestions.What people ask about MKV to Y4M.
No. The output has video frames only. Audio and subtitle tracks from the MKV are not kept.
Y4M stores uncompressed frames. Set Frame rate lower to use fewer frames, which makes a smaller file.
Yes. Set Start at to cut seconds from the beginning, and set Stop at to end at a second of the original.
Yes. Use Y4M to MKV for the way back.