JMetadataQuery is Java library providing query search for Mediainfo metadata.
Instantiate a search, and call isMatchingFile
method.
i.e.:
AudioCompressionModeSearch audioCompressionModeSearch = new AudioCompressionModeSearch(BinaryCondition.Op.NOT_EQUAL_TO, CompressionMode.LOSSLESS;
boolean result = audioCompressionModeSearch.isFileMatchingCriteria(file);
See Unit tests to see how it works. You can fork and implementing other searches.
Go to my maven repository to get the latest version.
Need the eclipse-external-annotations-m2e-plugin:
p2 update site to install this from: http://www.lastnpe.org/eclipse-external-annotations-m2e-plugin-p2-site/ (The 404 is normal, just because there is no index.html; it will work in Eclipse.)