Playing Motion JPEG 2000 (.mj2) lossless videos created by Matlab

Python Matplotlib lossless video creation

You can create lossless videos from image or plot/figure series from Matlab by either:

  1. Save a series of PNGs, then use FFMPEG to create a lossless FFV1 video from the PNGs
  2. Save from Matlab directly as lossless JPEG2000 .jp2 video

MATLAB can create and read lossy and lossless Motion JPEG 2000 videos. Anyone can play back these Matlab-created lossless Motion JPEG 2000 videos with “ffplay” by simply typing in Terminal or Command Prompt:

ffplay movie.mj2

Example of saving lossless MJPEG2000 .mj2 video plots from Matlab

Leave a Comment