A pure OCaml library to read metadata from various formats. For now, are supported:
Basic usage is
let () =
let metadata = Metadata.parse_file "test.mp3" in
List.iter (fun (k,v) -> Printf.printf "- %s: %s\n" k v) metadataIn the above example, the function Metadata.parse_file takes a file name as argument and returns an association list describing its metadata. It consists of pairs of strings being the name of the metadata and its value.
The preferred way is via opam:
opam install metadata