Transport stream file output with command-line arguments.
More...
#include <tsTSFileOutputArgs.h>
|
static constexpr cn::milliseconds | DEFAULT_RETRY_INTERVAL = cn::milliseconds(2000) |
| Default retry interval in milliseconds.
|
|
Transport stream file output with command-line arguments.
◆ TSFileOutputArgs()
ts::TSFileOutputArgs::TSFileOutputArgs |
( |
bool |
allow_stdout | ) |
|
Default constructor.
- Parameters
-
[in] | allow_stdout | If true, the file name is optional and standard output is used by default. |
◆ defineArgs()
void ts::TSFileOutputArgs::defineArgs |
( |
Args & |
args | ) |
|
Add command line option definitions in an Args.
- Parameters
-
[in,out] | args | Command line arguments to update. |
◆ loadArgs()
Load arguments from command line.
Args error indicator is set in case of incorrect arguments.
- Parameters
-
[in,out] | duck | TSDuck execution context. |
[in,out] | args | Command line arguments. |
- Returns
- True on success, false on error in argument line.
◆ open()
Open the output file.
All parameters where loaded from the command line by loadArgs().
- Parameters
-
[in,out] | report | Where to report errors. |
[in] | abort | An optional abort interface to detect abort requests. |
- Returns
- True on success, false on error.
◆ close()
bool ts::TSFileOutputArgs::close |
( |
Report & |
report | ) |
|
Close the output file.
- Parameters
-
[in,out] | report | Where to report errors. |
- Returns
- True on success, false on error.
◆ write()
Write packets.
- Parameters
-
[in] | buffer | Address of packets to write. |
[in] | pkt_data | Array of metadata for packets. A packet and its metadata have the same index in their respective arrays. |
[in] | packet_count | Number of packets to send from buffer. |
[in,out] | report | Where to report errors. |
[in] | abort | An optional abort interface to detect abort requests. |
- Returns
- True on success, false on error.
The documentation for this class was generated from the following file: