TSDuck Version 3.29-2562 (TSDuck - The MPEG Transport Stream Toolkit)
tsduck.TSProcessor Class Reference

A wrapper class for C++ TSProcessor. More...

Inheritance diagram for tsduck.TSProcessor:
Collaboration diagram for tsduck.TSProcessor:

Public Member Functions

def __init__ (self, report)
 Constructor. More...
 
def abort (self)
 Abort the TSProcessor. More...
 
def delete (self)
 Explicitly free the underlying C++ object. More...
 
def registerEventHandler (self, handler, event_code)
 Register an event handler by event code. More...
 
def registerInputEventHandler (self, handler)
 Register an event handler for all events from the input plugin. More...
 
def registerOutputEventHandler (self, handler)
 Register an event handler for all events from the output plugin. More...
 
def start (self)
 Start the TS processor. More...
 
def waitForTermination (self)
 Suspend the calling thread until TS processing is completed. More...
 

Public Attributes

 add_input_stuffing
 Option --add-input-stuffing nullpkt/inpkt (two values).
 
 add_start_stuffing
 Option --add-start-stuffing.
 
 add_stop_stuffing
 Option --add-stop-stuffing.
 
 app_name
 Application name, for help messages.
 
 bitrate
 Option --bitrate.
 
 bitrate_adjust_interval
 Option --bitrate-adjust-interval (in milliseconds).
 
 buffer_size
 Option --buffer-size-mb (in bytes here).
 
 ignore_joint_termination
 Option --ignore-joint-termination.
 
 initial_input_packets
 Option --initial-input-packets (zero means default).
 
 input
 Input plugin name and arguments (list of strings).
 
 log_plugin_index
 Option --log-plugin-index.
 
 max_flushed_packets
 Option --max-flushed-packets (zero means default).
 
 max_input_packets
 Option --max-input-packets (zero means default).
 
 max_output_packets
 Option --max-output-packets (zero means unlimited).
 
 output
 Output plugin name and arguments (list of strings).
 
 plugins
 Packet processor plugins names and arguments (list of lists of strings).
 
 receive_timeout
 Option --receive-timeout.
 

Detailed Description

A wrapper class for C++ TSProcessor.

Constructor & Destructor Documentation

◆ __init__()

def tsduck.TSProcessor.__init__ (   self,
  report 
)

Constructor.

Parameters
reportThe tsduck.Report object to use.

Member Function Documentation

◆ delete()

def tsduck.TSProcessor.delete (   self)

Explicitly free the underlying C++ object.

After this call, the object becomes unusable. Most usages are unpredictable but most likely will do nothing.

Returns
None.

Reimplemented from tsduck.NativeObject.

◆ start()

def tsduck.TSProcessor.start (   self)

Start the TS processor.

All properties shall have been set before calling this method.

Returns
None.

◆ abort()

def tsduck.TSProcessor.abort (   self)

Abort the TSProcessor.

Returns
None.

◆ waitForTermination()

def tsduck.TSProcessor.waitForTermination (   self)

Suspend the calling thread until TS processing is completed.

Returns
None.

◆ registerEventHandler()

def tsduck.PluginEventHandlerRegistry.registerEventHandler (   self,
  handler,
  event_code 
)
inherited

Register an event handler by event code.

Parameters
handlerAn instance of AbstractPluginEventHandler.
event_codeThe code of the events to handle.
Returns
None.

◆ registerInputEventHandler()

def tsduck.PluginEventHandlerRegistry.registerInputEventHandler (   self,
  handler 
)
inherited

Register an event handler for all events from the input plugin.

Parameters
handlerAn instance of AbstractPluginEventHandler.
Returns
None.

◆ registerOutputEventHandler()

def tsduck.PluginEventHandlerRegistry.registerOutputEventHandler (   self,
  handler 
)
inherited

Register an event handler for all events from the output plugin.

Parameters
handlerAn instance of AbstractPluginEventHandler.
Returns
None.

The documentation for this class was generated from the following file: