MPEG audio stream information and tags.
Bases: mutagen.id3.ID3FileType
MP3(filething)
An MPEG audio (usually MPEG-1 Layer 3) file.
Parameters: | (filething) (filething) – |
---|
Bases: mutagen.StreamInfo
MPEGInfo()
MPEG 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:
float
audio length, in seconds
int
number of audio channels
int
audio bitrate, in bits per second
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.
a string containing a guess about the settings used for encoding. The format is undefined and depends on the encoder.
float or None
replaygain track gain (89db) or None
float or None
replaygain track peak or None
float or None
replaygain album gain (89db) or None
Useless attributes:
float
MPEG version (1, 2, 2.5)
int
1, 2, or 3
int
One of STEREO, JOINTSTEREO, DUALCHANNEL, or MONO (0-3)
bool
whether or not the file is “protected”
bool
if true, the file may not be valid MPEG audio
Probably a CBR file, but not sure
Constant Bitrate
Variable Bitrate
Average Bitrate (a variant of VBR)
Bases: mutagen.mp3.MP3
EasyMP3(filething)
Like MP3, but uses EasyID3 for tags.
Parameters: | (filething) (filething) – |
---|