def id():
"""Return a short id alphanumeric, lower-case string."""
-
+s
def name():
- """Return the analyze name, such as "Mean Level", "Max level",
+ """Return the analyzer name, such as "Mean Level", "Max level",
"Total length, etc..
"""
def mime_type():
"""Return the mime type corresponding to this encode format"""
+ def set_cache_dir(path):
+ """Set the directory where cached files should be stored. Does nothing
+ if the encoder doesn't support caching.
+
+ The driver shouldn't assume that this method will always get called. A
+ temporary directory should be used if that's not the case.
+ """
+
def process(source, metadata, options=None):
"""Perform the encoding process and stream the result as a generator.
def description(self):
return """
Free Lossless Audio Codec (FLAC) is a file format for lossless audio
- data compression. During compression, FLAC does not lose quality from
- the audio stream, as lossy compression formats such as MP3, AAC, and
- Vorbis do. Josh Coalson is the primary author of FLAC.
- (source Wikipedia)
+ data compression.
"""
def get_file_info(self):
return """
MPEG-1 Audio Layer 3, more commonly referred to as MP3, is a patented
digital audio encoding format using a form of lossy data compression.
- It is a common audio format for consumer audio storage, as well as a
- de facto standard of digital audio compression for the transfer and
- playback of music on digital audio players. MP3 is an audio-specific
- format that was designed by the Moving Picture Experts Group as part
- of its MPEG-1 standard. (source Wikipedia)
"""
def get_file_info(self):