Is there a codec to read/write lossless Motion JPEG 2000 (Archival) videos outside of MATLAB?

9 views (last 30 days)
Hello all,
I am working with infrared thermography video sequences. Because saving those files as a raw binary bit stream is quite big, I was looking for a lossless video format, which is able to handle 16 bit grayscale images and still has a good compression ratio. I found that lossless Motion JPEG 2000, which is natively supported by MATLAB, is an ideal candidate. Working with .mj2 files directly in MATLAB works great, however reading and writing them outside of MATLAB seems to be quite a challenge.
Following this blog post, I tried to play the video with ffplay. Unfortunately this only works for lossy Motion JPEG 2000 videos. I tried a couple alternative approaches, none with success.
Does anybody know how to read/write lossless Motion JPEG 2000 videos outside of MATLAB or which codec MATLAB utilizes for this purpose? Any help is much appreciated.
Thanks,
Josh

Accepted Answer

Sanjana Ramakrishnan
Sanjana Ramakrishnan on 19 Jun 2017
MATLAB uses a third party library called Kakadu for doing any Motion JPEG-2000 encoding and decoding. The vendors website is http://kakadusoftware.com/. This library is not open source and you will need to contact the vendor directly to find out how to obtain them.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!