Raw YUV video
Y4M codec for Windows
Open raw .y4m and .yuv video files on Windows for encoder testing and video work.
.y4m.yuv
Does Windows play .y4m on its own?
Needs a codecWindows cannot open Y4M or raw YUV files on its own. A raw video splitter lets DirectShow players show them.
Last checked on Windows 11 and 10
Often inside a Y4M file
- YUV 4:2:0
- YUV 4:2:2
- YUV 4:4:4
What you need to play .y4m files
A player opens the file, decodes what is inside, then adds subtitles and sends the sound out. These free DirectShow filters do each step.
Opens the file
MPC Raw Video Splitter v1.9.3.31Source filter for raw and uncompressed video stream files.Decodes the tracks
MPC Video Decoder v1.9.3.31Hardware-accelerated video decoder for H.264, H.265, MPEG-2, MPEG-4 and VC-1. DXVA2 GPU acceleration for smooth high-resolution playback.Subtitles, sound and extras
Nothing extra needed.
X Codec Pack 3.4 installs all of these in one go - set up for .y4m and every other format.Get X Codec Pack
What is a Y4M file?
Y4M and YUV files hold uncompressed video frames, with no codec at all. Encoder developers and video testers use them as clean source material.
A Y4M file has a short header with the size and frame rate. A plain .yuv file has none, so the player has to be told the size.
The files are very large - one minute of 1080p video takes several gigabytes.
Y4M questions
Why is my .yuv file so big?
Raw video is not compressed. Every frame is stored in full, which takes hundreds of times more space than H.264.
How do I turn a Y4M file into an MP4?
Encode it with a video encoder such as x264 or X HEVC Encoder. The result is a normal, small video file.