Package flumotion :: Package component :: Module feedcomponent :: Class ParseLaunchComponent
[hide private]

Class ParseLaunchComponent

source code

             object --+            
                      |            
common.common.InitMixin --+        
                          |        
extern.log.log.Loggable --+        
                          |        
    component.BaseComponent --+    
                              |    
 feedcomponent010.FeedComponent --+
                                  |
                                 ParseLaunchComponent
Known Subclasses:

A component using gst-launch syntax

Nested Classes [hide private]

Inherited from component.BaseComponent: componentMediumClass

Instance Methods [hide private]
 
init(self)
A subclass should do as little as possible in its init method.
source code
gst.Pipeline
create_pipeline(self)
Subclasses have to implement this method.
source code
 
set_pipeline(self, pipeline)
Subclasses can override me.
source code
 
get_pipeline_string(self, properties)
Method that must be implemented by subclasses to produce the gstparse string for the component's pipeline.
source code
 
configure_pipeline(self, pipeline, properties)
Method that can be implemented by subclasses if they wish to interact with the pipeline after it has been created and set on the component.
source code
 
add_default_eater_feeder(self, pipeline) source code
 
parse_tmpl(self, pipeline, templatizers)
Expand the given pipeline string representation by substituting blocks between '@' with a filled-in template.
source code
 
parse_pipeline(self, pipeline) source code
 
get_eater_template(self, eaterAlias) source code
 
get_feeder_template(self, feederName) source code
 
get_queue_string(self, eaterAlias)
Return a parse-launch string to join the fdsrc eater element and the depayer, for example '!' or '! queue !'.
source code

Inherited from feedcomponent010.FeedComponent: addEffect, attachPadMonitorToFeeder, bus_message_received_cb, cleanup, connect_feeders, do_pipeline_playing, do_setup, do_stop, eatFromFD, feedToFD, get_element, get_element_property, get_master_clock, get_pipeline, install_eater_continuity_watch, install_eater_event_probes, make_message_for_gstreamer_error, provide_master_clock, reconnectEater, set_element_property, set_master_clock, setup_completed, stop_pipeline, try_start_pipeline, unblock_eater

Inherited from component.BaseComponent: __init__, addMessage, adminCallRemote, check_properties, do_check, fixRenamedProperties, getMood, getName, getWorkerName, setMedium, setMood, setShutdownHook, setWorkerName, setup, stop, waitForHappy

Inherited from component.BaseComponent (private): _pollCPU, _pollMemory

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

Inherited from extern.log.log.Loggable: __providedBy__, debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure, writeMarker

Class Variables [hide private]
  DELIMITER = '@'
  checkTimestamp = False
whether to check continuity of timestamps for eaters
  checkOffset = False
whether to check continuity of offsets for eaters
  FDSRC_TMPL = 'fdsrc name=%(name)s'
  DEPAY_TMPL = 'gdpdepay name=%(name)s-depay'
  FEEDER_TMPL = 'gdppay name=%(name)s-pay ! multifdsink sync=fal...
  EATER_TMPL = None

Inherited from feedcomponent010.FeedComponent: FEEDER_STATS_UPDATE_FREQUENCY, logCategory

Inherited from extern.log.log.Loggable: __implemented__, __provides__

Instance Variables [hide private]

Inherited from component.BaseComponent: medium, name, uiState

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

init(self)

source code 

A subclass should do as little as possible in its init method. In particular, it should not try to access resources.

Failures during init are marshalled back to the manager through the worker's remote_create method, since there is no component state proxied to the manager yet at the time of init.

Overrides: component.BaseComponent.init
(inherited documentation)

create_pipeline(self)

source code 

Subclasses have to implement this method.

Returns: gst.Pipeline
Overrides: feedcomponent010.FeedComponent.create_pipeline
(inherited documentation)

set_pipeline(self, pipeline)

source code 

Subclasses can override me. They should chain up first.

Overrides: feedcomponent010.FeedComponent.set_pipeline
(inherited documentation)

get_pipeline_string(self, properties)

source code 

Method that must be implemented by subclasses to produce the gstparse string for the component's pipeline. Subclasses should not chain up; this method raises a NotImplemented error.

Returns: a new pipeline string representation.

configure_pipeline(self, pipeline, properties)

source code 

Method that can be implemented by subclasses if they wish to interact with the pipeline after it has been created and set on the component.

This could include attaching signals and bus handlers.

parse_tmpl(self, pipeline, templatizers)

source code 

Expand the given pipeline string representation by substituting blocks between '@' with a filled-in template.

Parameters:
  • pipeline - a pipeline string representation with variables
  • templatizers - A dict of prefix => procedure. Template blocks in the pipeline will be replaced with the result of calling the procedure with what is left of the template after taking off the prefix.
Returns:
a new pipeline string representation.

get_queue_string(self, eaterAlias)

source code 

Return a parse-launch string to join the fdsrc eater element and the depayer, for example '!' or '! queue !'. The string may have no format strings.


Class Variable Details [hide private]

FEEDER_TMPL

Value:
'gdppay name=%(name)s-pay ! multifdsink sync=false name=%(name)s buffe\
rs-max=500 buffers-soft-max=450 recover-policy=1'