MP3
MPEG audio stream information and tags.
- class mutagen.mp3.MP3(filething)
Bases:
ID3FileTypeAn MPEG audio (usually MPEG-1 Layer 3) file.
- Parameters:
filething (filething)
- tags
- Type:
- property mime
A list of mime types (
mutagen.text)
- static score(filename, fileobj, header_data)
Returns a score for how likely the file can be parsed by this type.
- Parameters:
- Returns:
- negative if definitely not a matching type, otherwise a score,
the bigger the more certain that the file can be loaded.
- Return type:
- class mutagen.mp3.MPEGInfo
Bases:
StreamInfoMPEG audio stream information
Parse information about an MPEG audio file. This also reads the Xing VBR header format.
This code was implemented based on the format documentation at http://mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm.
Useful attributes:
- bitrate
audio bitrate, in bits per second. In case
bitrate_modeisBitrateMode.UNKNOWNthe bitrate is guessed based on the first frame.- Type:
- encoder_info
a string containing encoder name and possibly version. In case a lame tag is present this will start with
"LAME ", if unknown it is empty, otherwise the text format is undefined.- Type:
- encoder_settings
a string containing a guess about the settings used for encoding. The format is undefined and depends on the encoder.
- Type:
- bitrate_mode
-
- Type:
Useless attributes: