Package timeside :: Package encoder :: Module core :: Class GstEncoder
[hide private]
[frames] | no frames]

Class GstEncoder

source code

         object --+        
                  |        
component.Component --+    
                      |    
         core.Processor --+
                          |
                         GstEncoder
Known Subclasses:

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
 
release(self)
Release resources owned by this processor.
source code
 
__del__(self) source code
 
start_pipeline(self, channels, samplerate) source code
 
_on_message_cb(self, bus, message) source code
 
process(self, frames, eod=False)
Process input frames and return a (output_frames, eod) tuple.
source code

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

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

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)

release(self)

source code 

Release resources owned by this processor. The processor cannot be used anymore after calling this method.

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

__del__(self)
(Destructor)

source code 
Overrides: core.Processor.__del__

process(self, frames, eod=False)

source code 

Process input frames and return a (output_frames, eod) tuple. Both input and output frames are 2D numpy arrays, where columns are channels, and containing an undetermined number of frames. eod=True means that the end-of-data has been reached.

Output-only processors (such as decoders) will raise an exception if the frames argument is not None. All processors (even encoders) return data, even if that means returning the input unchanged.

Warning: it is required to call setup() before this method.

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