MetadataSourceRead metadata from various file formats.
Functions for handling charset conversion.
Generate metadata parsers given functions for converting charsets.
include sig ... endRaised when the metadata is not valid.
Metadata are represented as association lists (name, value).
Bigarray representation of (large) tags.
type parser_handler = {label : string;length : int;read : unit -> string;read_ba : (unit -> bigarray) option;skip : unit -> unit;}When used, a custom parser can override the default parsing mechanism. It is passed the metadata label (without normalization), the expected length of the data, a regular read function an an optional bigarray read function. The custom parser can call any of the read function to get the corresponding tag's value. After doing so, the tag is ignored by the regular parsing process.
Currently only supported for: ID3v2, MP4 and metadata_block_picture in FLAC metadata.
A custom parser, see parser_handler.
val recode :
?source:[ `ISO_8859_1 | `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] ->
?target:[ `UTF_16 | `UTF_16BE | `UTF_16LE | `UTF_8 ] ->
string ->
stringConvert the charset encoding of a string.
Return the first application which does not raise invalid.
Parse the metadata from a file.
Parse the metadata from a string containing the contents of a file.