package metadata
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=c336d1b0771e774d909943ea3684e62b
sha512=74a950354d3bcec0fd70c5fcdcf195c20890583de25be7e85a8e202d4a81398bf4b6d2f646605df1aa64eca8b30c26205316f677fb1dc9020bb3546fea8b41eb
Description
A pure OCaml library for reading files from various formats.
Added to opam-repository:
README
The metadata library
A pure OCaml library to read metadata from various formats. For now, are supported:
- audio formats: ID3v1 and ID3v2 (for mp3), ogg/vorbis, ogg/opus, flac and wav
- image formats: jpeg and png
- video formats: mp4 and avi
- text formats: pdf
Usage
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.
Installing
The preferred way is via opam:
opam install metadataOther libraries
- ocaml-taglib: for tags from audio files (mp3, ogg, etc.)
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by (2)
-
liquidsoap
>= "2.3.3" - liquidsoap-core
Conflicts
None
Build status
Results of building metadata with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.3.2 (this version) | n/a | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure