TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsduck.TSProcessor Class Reference

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

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

Public Member Functions

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

Public Attributes

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

Protected Member Functions

 _getNative (self)
 Get the native object.
 _setNative (self, obj)
 Set the native object.

Detailed Description

A wrapper class for C++ TSProcessor.

Constructor & Destructor Documentation

◆ __init__()

tsduck.TSProcessor.__init__ ( self,
report )

Constructor.

Parameters
reportThe tsduck.Report object to use.

Member Function Documentation

◆ delete()

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()

tsduck.TSProcessor.start ( self)

Start the TS processor.

All properties shall have been set before calling this method.

Returns
None.

◆ abort()

tsduck.TSProcessor.abort ( self)

Abort the TSProcessor.

Returns
None.

◆ waitForTermination()

tsduck.TSProcessor.waitForTermination ( self)

Suspend the calling thread until TS processing is completed.

Returns
None.

◆ registerEventHandler()

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()

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()

tsduck.PluginEventHandlerRegistry.registerOutputEventHandler ( self,
handler )
inherited

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

Parameters
handlerAn instance of AbstractPluginEventHandler.
Returns
None.

◆ _setNative()

tsduck.NativeObject._setNative ( self,
obj )
protectedinherited

Set the native object.

This is typically done by subclass constructors.

Parameters
objAddress of the C++ native object to store.

◆ _getNative()

tsduck.NativeObject._getNative ( self)
protectedinherited

Get the native object.

This is typically used by subclasses.

Returns
Address of the C++ native object.

The documentation for this class was generated from the following file:
  • tsduck.py