Read and write ASF (Window Media Audio) files.
Bases: mutagen.FileType
ASF(filething)
An ASF file, probably containing WMA or WMV.
Parameters: | (filething) (filething) – |
---|
Parameters: | (filething) (filething) – |
---|---|
Raises : | mutagen.MutagenError – |
Save tag changes back to the loaded file.
Parameters: |
|
---|---|
Raises : |
Parameters: | (filething) (filething) – |
---|---|
Raises : | mutagen.MutagenError – |
Bases: mutagen.StreamInfo
ASFInfo()
ASF stream information.
float
“Length in seconds
int
Sample rate in Hz
int
Bitrate in bps
int
Number of channels
Name of the codec type of the first audio stream or an empty string if unknown. Example: Windows Media Audio 9 Standard
Name and maybe version of the codec used. Example: Windows Media Audio 9.1
Further information on the codec used. Example: 64 kbps, 48 kHz, stereo 2-pass CBR
Returns: text: a stream information text summary
Bases: list, mutagen._util.DictMixin, mutagen.Tags
ASFTags()
Dictionary containing ASF attributes.
A list of values for the key.
This is a copy, so comment[‘title’].append(‘a title’) will not work.
Delete all values associated with the key.
Return true if the key has any values.
Set a key’s value or values.
Setting a value overwrites all old ones. The value may be a list of Unicode or UTF-8 strings, or a single Unicode or UTF-8 string.
Return a sequence of all keys in the comment.
Return a copy of the comment data in a real dict.
Returns a string containing all key, value pairs.
Return type: | text |
---|
Generic attribute.
Language
Stream
The Python value of this attribute (type depends on the class)
Bool attribute.
ASFBoolAttribute(True)
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)
GUID attribute.
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)
WORD attribute.
ASFWordAttribute(42)
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)
DWORD attribute.
ASFDWordAttribute(42)
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)
QWORD attribute.
ASFQWordAttribute(42)
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)
Bool attribute.
ASFBoolAttribute(True)
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)
Byte array attribute.
ASFByteArrayAttribute(b'1234')
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)
Unicode string attribute.
ASFUnicodeAttribute(u'some text')
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)
Unicode string attribute.
ASFUnicodeAttribute(u'some text')
Bases : | ASFBaseAttribute |
---|
x.__hash__() <==> hash(x)