summaryrefslogtreecommitdiffstats
path: root/src/zmq2edi
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-02-22 16:28:37 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-02-22 16:29:07 +0100
commit220549b9980f1e15c1299084fb06a0df4ab5f2cf (patch)
tree65fec643551902f5b9d68fed22224a487d273d0b /src/zmq2edi
parent26065b4193006401f78a4afdf4e19cbd1db6c593 (diff)
downloaddabmux-220549b9980f1e15c1299084fb06a0df4ab5f2cf.tar.gz
dabmux-220549b9980f1e15c1299084fb06a0df4ab5f2cf.tar.bz2
dabmux-220549b9980f1e15c1299084fb06a0df4ab5f2cf.zip
Update configuration and compilation for new EDI UDP packet interleaver
Diffstat (limited to 'src/zmq2edi')
-rw-r--r--src/zmq2edi/zmq2edi.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zmq2edi/zmq2edi.cpp b/src/zmq2edi/zmq2edi.cpp
index 614723b..bd5a3ae 100644
--- a/src/zmq2edi/zmq2edi.cpp
+++ b/src/zmq2edi/zmq2edi.cpp
@@ -64,7 +64,7 @@ static void usage()
cerr << " -x Drop frames where for which the wait time would be negative, i.e. frames that arrived too late." << endl;
cerr << " -P Disable PFT and send AFPackets." << endl;
cerr << " -f <fec> Set the FEC." << endl;
- cerr << " -i <interleave> Configure the interleaver with given interleave percentage: 0% send all fragments at once, 100% spread over 24ms, >100% spread and interleave. Default 95%\n";
+ cerr << " -i <spread> Configure the UDP packet spread/interleaver with given percentage: 0% send all fragments at once, 100% spread over 24ms, >100% spread and interleave. Default 95%\n";
cerr << " -D Dump the EDI to edi.debug file." << endl;
cerr << " -v Enables verbose mode." << endl;
cerr << " -a <alignement> Set the alignment of the TAG Packet (default 8)." << endl;
@@ -273,13 +273,13 @@ int start(int argc, char **argv)
break;
case 'i':
{
- int interleave_percent = std::stoi(optarg);
- if (interleave_percent != 0) {
- if (interleave_percent < 0) {
- throw std::runtime_error("EDI output: negative interleave value is invalid.");
+ int spread_percent = std::stoi(optarg);
+ if (spread_percent != 0) {
+ if (spread_percent < 0) {
+ throw std::runtime_error("EDI output: negative spread value is invalid.");
}
- edi_conf.fragment_spreading_factor = (double)interleave_percent / 100.0;
+ edi_conf.fragment_spreading_factor = (double)spread_percent / 100.0;
if (edi_conf.fragment_spreading_factor > 30000) {
throw std::runtime_error("EDI output: interleaving set for more than 30 seconds!");
}