![]() |
TSDuck
v3.35-3218
MPEG Transport Stream Toolkit
|
Transport stream processor options and their command line options. More...
Public Member Functions | |
TSProcessorArgs () | |
Constructor. | |
void | applyDefaults (bool realtime) |
Apply default values to options which were not specified on the command line. More... | |
void | defineArgs (Args &args) |
Add command line option definitions in an Args. More... | |
bool | loadArgs (DuckContext &duck, Args &args) |
Load arguments from command line. More... | |
Public Attributes | |
UString | app_name |
Application name, for help messages. | |
MilliSecond | bitrate_adj |
Bitrate adjust interval. | |
IPv4Address | control_local |
Local interface on which to listen for control commands. | |
uint16_t | control_port |
TCP server port for control commands. | |
bool | control_reuse |
Set the 'reuse port' socket option on the control TCP server port. | |
IPv4AddressVector | control_sources |
Remote IP addresses which are allowed to send control commands. | |
MilliSecond | control_timeout |
Reception timeout in milliseconds for control commands. | |
DuckContext::SavedArgs | duck_args |
Default TSDuck context options for all plugins. Each plugin can override them in its context. | |
MilliSecond | final_wait |
Time to wait after last input packet. Zero means infinite, negative means none. | |
BitRate | fixed_bitrate |
Fixed input bitrate (user-specified). | |
bool | ignore_jt |
Ignore "joint termination" options in plugins. | |
PacketCounter | init_bitrate_adj |
As long as input bitrate is unknown, reevaluate periodically. | |
size_t | init_input_pkt |
Initial number of input packets to read before starting the processing (zero means default). | |
PluginOptions | input |
Input plugin description. | |
size_t | instuff_inpkt |
Add input stuffing: add instuff_nullpkt null packets every instuff_inpkt input packets. | |
size_t | instuff_nullpkt |
Add input stuffing: add instuff_nullpkt null packets every instuff_inpkt input packets. | |
size_t | instuff_start |
Add input stuffing: add instuff_start null packets before actual input. | |
size_t | instuff_stop |
Add input stuffing: add instuff_end null packets after end of actual input. | |
bool | log_plugin_index |
Log plugin index with plugin name. | |
size_t | max_flush_pkt |
Max processed packets before flush. | |
size_t | max_input_pkt |
Max packets per input operation. | |
size_t | max_output_pkt |
Max packets per outsput operation. | |
PluginOptions | output |
Output plugin description. | |
PluginOptionsVector | plugins |
Packet processor plugins descriptions. | |
Tristate | realtime |
Use real-time options. | |
MilliSecond | receive_timeout |
Timeout on input operations. | |
size_t | ts_buffer_size |
Size in bytes of the global TS packet buffer. | |
Static Public Attributes | |
static constexpr size_t | DEFAULT_BUFFER_SIZE = 16 * 1000000 |
Default size in bytes of global TS buffer. | |
static constexpr size_t | MIN_BUFFER_SIZE = 18800 |
Minimum size in bytes of global TS buffer. | |
Transport stream processor options and their command line options.
void ts::TSProcessorArgs::defineArgs | ( | Args & | args | ) |
Add command line option definitions in an Args.
[in,out] | args | Command line arguments to update. |
bool ts::TSProcessorArgs::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. |
void ts::TSProcessorArgs::applyDefaults | ( | bool | realtime | ) |
Apply default values to options which were not specified on the command line.
[in] | realtime | If true, apply real-time defaults. If false, apply offline defaults. |