TSDuck v3.40-4033
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::MuxerArgs Class Reference

Transport stream multiplexer command-line options. More...

#include <tsMuxerArgs.h>

Collaboration diagram for ts::MuxerArgs:

Public Member Functions

 MuxerArgs ()=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 appName {}
 Application name, for help messages.
 
cn::microseconds cadence = DEFAULT_CADENCE
 Internal polling cadence in microseconds.
 
BitRate catBitRate = DEFAULT_PSI_BITRATE
 Bitrate of output CAT.
 
DuckContext::SavedArgs duckArgs {}
 Default TSDuck context options for all plugins. Each plugin can override them in its context.
 
TableScope eitScope = TableScope::ACTUAL
 Type of EIT to filter.
 
bool ignoreConflicts = false
 Ignore PID or service conflicts (inconsistent stream).
 
size_t inBufferPackets = DEFAULT_BUFFERED_PACKETS
 Input buffer size in packets.
 
bool inputOnce = false
 Terminate when all input plugins complete, do not restart plugins.
 
cn::milliseconds inputRestartDelay = DEFAULT_RESTART_DELAY
 When an input start fails, retry after that delay.
 
PluginOptionsVector inputs {}
 Input plugins descriptions.
 
bool lossyInput = false
 If true, allow to lose input packet when the buffer is full.
 
size_t lossyReclaim = DEFAULT_LOSSY_INPUT_PACKETS
 When lossyInput is true and the input buffer is full, number of older packets to drop.
 
size_t maxInputPackets = DEFAULT_MAX_INPUT_PACKETS
 Maximum input packets to read at a time.
 
size_t maxOutputPackets = DEFAULT_MAX_OUTPUT_PACKETS
 Maximum output packets to send at a time.
 
BitRate nitBitRate = DEFAULT_PSI_BITRATE
 Bitrate of output NIT.
 
TableScope nitScope = TableScope::ACTUAL
 Type of NIT to filter.
 
size_t outBufferPackets = DEFAULT_BUFFERED_PACKETS
 Output buffer size in packets (default: N x inBufferPackets).
 
PluginOptions output {}
 Output plugin description.
 
BitRate outputBitRate = 0
 Target output bitrate.
 
uint16_t outputNetwId = 0
 Output original network id.
 
bool outputOnce = false
 Terminate when the output plugin fails, do not restart.
 
cn::milliseconds outputRestartDelay = DEFAULT_RESTART_DELAY
 When the output start fails, retry after that delay.
 
uint16_t outputTSId = 0
 Output transport stream id.
 
BitRate patBitRate = DEFAULT_PSI_BITRATE
 Bitrate of output PAT.
 
BitRate sdtBitRate = DEFAULT_PSI_BITRATE
 Bitrate of output SDT.
 
TableScope sdtScope = TableScope::ACTUAL
 Type of SDT to filter.
 
size_t timeInputIndex = NPOS
 Index of input plugin from which the TDT/TOT PID is used. By default, use the first found.
 

Static Public Attributes

static constexpr size_t DEFAULT_BUFFERED_PACKETS = 512
 Default input size buffer in packets.
 
static constexpr cn::microseconds DEFAULT_CADENCE = cn::milliseconds(10)
 Default cadence.
 
static constexpr size_t DEFAULT_LOSSY_INPUT_PACKETS = 16
 Default number of oldest input packets to drop with lossy input.
 
static constexpr size_t DEFAULT_MAX_INPUT_PACKETS = 128
 Default maximum input packets to read at a time.
 
static constexpr size_t DEFAULT_MAX_OUTPUT_PACKETS = 128
 Default maximum input packets to send at a time.
 
static constexpr BitRate::int_t DEFAULT_PSI_BITRATE = 15000
 Default bitrate for global PSI/SI PID's.
 
static constexpr cn::milliseconds DEFAULT_RESTART_DELAY = cn::seconds(2)
 Default input and output restart delay.
 
static constexpr size_t MIN_BUFFERED_PACKETS = 16
 Minimum input size buffer in packets.
 
static constexpr size_t MIN_INPUT_PACKETS = 1
 Minimum input packets to read at a time.
 
static constexpr size_t MIN_OUTPUT_PACKETS = 1
 Minimum input packets to send at a time.
 
static constexpr BitRate::int_t MIN_PSI_BITRATE = 100
 Minimum bitrate for global PSI/SI PID's.
 

Detailed Description

Transport stream multiplexer command-line options.

Member Function Documentation

◆ defineArgs()

void ts::MuxerArgs::defineArgs ( Args args)

Add command line option definitions in an Args.

Parameters
[in,out]argsCommand line arguments to update.

◆ loadArgs()

bool ts::MuxerArgs::loadArgs ( DuckContext duck,
Args args 
)

Load arguments from command line.

Args error indicator is set in case of incorrect arguments.

Parameters
[in,out]duckTSDuck execution context.
[in,out]argsCommand line arguments.
Returns
True on success, false on error in argument line.

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