Package timeside :: Package encoder :: Module m4a :: Class AacEncoder
[hide private]
[frames] | no frames]

Class AacEncoder

source code

         object --+            
                  |            
component.Component --+        
                      |        
         core.Processor --+    
                          |    
            core.GstEncoder --+
                              |
                             AacEncoder

gstreamer-based AAC encoder

Nested Classes [hide private]

Inherited from core.Processor: __metaclass__

Instance Methods [hide private]
 
__init__(self, output, streaming=False, overwrite=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
setup(self, channels=None, samplerate=None, blocksize=None, totalframes=None)
Allocate internal resources and reset state, so that this processor is ready for a new run.
source code
 
set_metadata(self, metadata)
Set the metadata to be embedded in the encoded output.
source code

Inherited from core.GstEncoder: __del__, process, release, start_pipeline

Inherited from core.GstEncoder (private): _on_message_cb

Inherited from core.Processor: __or__, blocksize, channels, mediainfo, post_process, samplerate, totalframes, uuid

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
id()
Short alphanumeric, lower-case string which uniquely identify this processor, suitable for use as an HTTP/GET argument value, in filenames, etc...
source code
 
description()
Return a string describing what this encode format provides, is good for, etc...
source code
 
format()
Return the encode/encoding format as a short string Example: "MP3", "OGG", "AVI", ...
source code
 
file_extension()
Return the filename extension corresponding to this encode format
source code
 
mime_type()
Return the mime type corresponding to this encode format
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, output, streaming=False, overwrite=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

setup(self, channels=None, samplerate=None, blocksize=None, totalframes=None)

source code 

Allocate internal resources and reset state, so that this processor is ready for a new run.

The channels, samplerate and/or blocksize and/or totalframes arguments may be required by processors which accept input. An error will occur if any of these arguments is passed to an output-only processor such as a decoder.

Decorators:
  • @interfacedoc
Overrides: core.Processor.setup

id()
Static Method

source code 

Short alphanumeric, lower-case string which uniquely identify this processor, suitable for use as an HTTP/GET argument value, in filenames, etc...

Decorators:
  • @interfacedoc

description()
Static Method

source code 

Return a string describing what this encode format provides, is good for, etc... The description is meant to help the end user decide what format is good for him/her

Decorators:
  • @interfacedoc

format()
Static Method

source code 

Return the encode/encoding format as a short string Example: "MP3", "OGG", "AVI", ...

Decorators:
  • @interfacedoc

file_extension()
Static Method

source code 

Return the filename extension corresponding to this encode format

Decorators:
  • @interfacedoc

mime_type()
Static Method

source code 

Return the mime type corresponding to this encode format

Decorators:
  • @interfacedoc

set_metadata(self, metadata)

source code 

Set the metadata to be embedded in the encoded output.

In non-streaming mode, this method updates the metadata directly into the output file, without re-encoding the audio data, provided this file already exists.

It isn't required to call this method, but if called, it must be before process().

Decorators:
  • @interfacedoc