Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect lossless JPEG 2000 compression?

I have a motion-JPEG 2000 file that I need to determine if the creator used lossless compression to create it based on the file itself. I do not have the raw video data to compare to, and I do not have the source code of the application used to produce the file.

Based on what I have found, it looks like the best I can do is check the wavelet filter (biorthogonal 3/5) and the quantization step size (1), and assume lossless if those conditions are true.

Any suggestions on how to check for lossless compression are greatly appreciated. My working environment is MATLAB or Java, but any hints for other platforms will be helpful.

like image 248
Arthur Ward Avatar asked Apr 09 '13 19:04

Arthur Ward


1 Answers

You can use ffmpeg for this purpose. Download it from here: https://ffmpeg.org/. After you installed the software and added its source folder to WIN path, you can simply do the following:

ffprobe Test.mj2

The output then shows you many details about the video, including its possible losslessness.

See the following example output

[1]

like image 66
Jan Osch Avatar answered Sep 20 '22 12:09

Jan Osch