YUV4MPEG reader

Reads a .y4m file (YUV4MPEG) and returns a MATLAB movie

You are now following this Submission

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 https://media.xiph.org/video/derf/

Examples:
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 (2026). YUV4MPEG reader (https://www.mathworks.com/matlabcentral/fileexchange/50690-yuv4mpeg-reader), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: YUV-File to Matlab-Movie

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Description

1.1.0.0

Description

1.0.0.0