A small Java library to make it easy to get media information from local files.
This library uses JNA to provide simple Java bindings to the native MediaInfo tool.
Add the following Maven dependency to your own project pom.xml:
<dependency>
<groupId>uk.co.caprica</groupId>
<artifactId>vlcj-info</artifactId>
<version>1.0.0</version>
</dependency>
26/07/2015 First release at Maven Central.
The vlcj-info project page is at github.
Online Javadoc is available:
Usage is trivial:
MediaInfo mediaInfo = MediaInfo.mediaInfo("/home/movies/A-Cool-Movie.mp4");
You can then query the returned media info instance for general information, audio, video and SPU tracks and so on.
The vlcj-info framework is provided under the GPL, version 3 or later.