image thumbnail

YUV4MPEG reader

version (1.91 KB) by Endre Oma
Reads a .y4m file (YUV4MPEG) and returns a MATLAB movie


Updated 30 Apr 2015

View License

Reads a .y4m file and creates a MATLAB movie (a struct array with the fields cdata and colourmap).
Will read the reference uncompressed video files used for comparing video codecs, eg. those on

mov = yuv4mpeg2mov('SomeFile.y4m);
[mov, videoInfo] = yuv4mpeg2mov('SomeFile.y4m');
videoInfo is a struct containting information regarding size, number of frames, fps, colour sampling.

Cite As

Endre Oma (2022). YUV4MPEG reader (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: YUV-File to Matlab-Movie

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!