A Java library for parsing media information using the MediaInfo library.
This library provides a simple interface to extract metadata from media files.
implementation group: 'io.github.oppahansi', name: 'MediaInfo4J', version: '0.2.1'<dependency>
<groupId>io.github.oppahansi</groupId>
<artifactId>MediaInfo4J</artifactId>
<version>0.2.1</version>
</dependency>MediaInfoParser parser = new MediaInfoParser()
MediaInfo mediaInfo = parser.parseFile(filePath);
// Print all sections and their fields
mediaInfo.print();or
MediaInfo mediaInfo = MediaInfo.fromFile(filePath);
// Print all sections and their fields
mediaInfo.print();MediaInfoParser parser = new MediaInfoParser()
MediaInfo mediaInfo = parser.parseData(dataString);
// Print all sections and their fields
mediaInfo.print();or
MediaInfo mediaInfo = MediaInfo.fromData(dataString);
// Print all sections and their fields
mediaInfo.print();- Parsing of media information from files using the MediaInfo native library.
- Extraction of metadata such as format, duration, codec, chapters, and more from media files.
- Simple Java API to access sections and fields of parsed media info.
- Support for reading media info from both file paths and raw data strings.
- Better parsing, than in vlcj-info:
-
- Support for Chapter fields and values
- More methods for checking the validity for files:
-
- CRC32
-
- Adler32
-
- MD5
-
- SHA1
-
- SHA256
-
- SHA512
- New Menu fields for better chapter parsing:
-
ChapterCount(Total number of chapters)
-
ChapterName x(ChapterName 1 -> : en:Time for Ignition...)
-
ChapterTimestamp x(ChapterTimestamp 1 -> 00:00:00.000...)
This project was inspired by and partially derived from the vlcj-info library.
And therefore code is being made public and released under the same license.