![]() |
TSDuck v3.43-4480
MPEG Transport Stream Toolkit
|
Transport stream input switcher command-line options. More...
#include <tsInputSwitcherArgs.h>

Public Member Functions | |
| InputSwitcherArgs ()=default | |
| Constructor. | |
| void | defineArgs (Args &args) |
| Add command line option definitions in an Args. | |
| void | enforceDefaults () |
| Enforce default or minimum values. | |
| bool | loadArgs (DuckContext &duck, Args &args) |
| Load arguments from command line. | |
Public Attributes | |
| UString | app_name {} |
| Application name, for help messages. | |
| size_t | buffered_packets = 0 |
| Input buffer size in packets. | |
| size_t | cycle_count = 1 |
| Number of input cycles to execute (0 = infinite). | |
| bool | delayed_switch = false |
| Delayed switch between input plugins. | |
| UString | event_command {} |
| External shell command to run on an event. | |
| IPAddress | event_local_address {} |
| Outgoing local interface for UDP event description. | |
| int | event_ttl = 0 |
| Time-to-live socket option for event UDP. | |
| IPSocketAddress | event_udp {} |
| Remote UDP socket address for event description. | |
| UString | event_user_data {} |
| User-defined data string in event messages. | |
| bool | fast_switch = false |
| Fast switch between input plugins. | |
| size_t | first_input = 0 |
| Index of first input plugin. | |
| PluginOptionsVector | inputs {} |
| Input plugins descriptions. | |
| size_t | max_input_packets = 0 |
| Maximum input packets to read at a time. | |
| size_t | max_output_packets = 0 |
| Maximum output packets to send at a time. | |
| PluginOptions | output {} |
| Output plugin description. | |
| size_t | primary_input = NPOS |
| Index of primary input plugin, NPOS if there is none. | |
| cn::milliseconds | receive_timeout {} |
| Receive timeout before switch (0=none). | |
| RestArgs | remote_control {u"remote control", u"remote"} |
| Options for remote control (UDP or TCP/TLS). | |
| size_t | sock_buffer_size = 0 |
| Socket buffer size. | |
| bool | terminate = false |
| Terminate when one input plugin completes. | |
Transport stream input switcher command-line options.
| void ts::InputSwitcherArgs::defineArgs | ( | Args & | args | ) |
Add command line option definitions in an Args.
| [in,out] | args | Command line arguments to update. |
| bool ts::InputSwitcherArgs::loadArgs | ( | DuckContext & | duck, |
| Args & | args | ||
| ) |
Load arguments from command line.
Args error indicator is set in case of incorrect arguments.
| [in,out] | duck | TSDuck execution context. |
| [in,out] | args | Command line arguments. |