Metadata.MakeGenerate metadata parsers given functions for converting charsets.
module _ : CharEncoding.Ttype bigarray =
(char, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.tBigarray 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.
type custom_parser = parser_handler -> unitA custom parser, see parser_handler.
module Reader : sig ... endAbstractions for reading from various sources.
module ID3v1 : sig ... endID3v1 metadata.
module ID3v2 : sig ... endID3v2 metadata.
module OGG : sig ... endOGG metadata.
module FLAC : sig ... endFlac metadata.
module JPEG : sig ... endJpeg metadata.
module PNG : sig ... endPNG metadata.
module AVI : sig ... endAVI metadata.
module MP4 : sig ... endMP4 metadata.
module WAV : sig ... endWAV metadata.
module RIFF : sig ... endRIFF metdata.
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.
module ID3 : sig ... endID3v1 and ID3v2 metadata.
Return the first application which does not raise invalid.
module Audio : sig ... endAudio file formats.
module Image : sig ... endImage file formats.
module Video : sig ... endVideo file formats.
module Any : sig ... endAll supported file formats.
include module type of Anyval parse : Reader.t -> (string * string) listGeneric metadata parsing.
val parse_file :
?custom_parser:custom_parser ->
string ->
(string * string) listParse the metadata from a file.
val parse_string :
?custom_parser:custom_parser ->
string ->
(string * string) listParse the metadata from a string containing the contents of a file.