rfactor(va-hls, va-record, va-inference): rename param logging-level to log-level

This commit is contained in:
amazing-hash 2024-05-07 15:40:10 +04:00
parent 902a9dcbfb
commit a988364443
5 changed files with 13 additions and 13 deletions

View File

@ -23,7 +23,7 @@
```
- уровень логирования приложения (debug, info, warning, error), по умолчанию info
```bash
--logging-level
--log-level
```
Пример файла со списком видео источников:
@ -62,7 +62,7 @@
```
- уровень логирования приложения (debug, info, warning, error), по умолчанию info
```bash
--logging-level
--log-level
```
Пример запроса HLS с помощью ffplay, время в UTC
@ -101,7 +101,7 @@ ffplay http://localhost:8888/camera-1/index.m3u8
```
- уровень логирования приложения (debug, info, warning, error), по умолчанию info
```bash
--logging-level
--log-level
```
В репозитории на данный момент присутствиет пример для инференса на YOLO V5

View File

@ -52,8 +52,8 @@ int main(int argc, char *argv[]) {
"prefix of the path for saving video files, default '/tmp/va'");
desc.add_options()("port", opt::value<uint16_t>()->default_value(8888),
"listening port of the server, default 8888");
desc.add_options()("logging-level", opt::value<std::string>()->default_value("info"),
"logging level (debug, info, warning, error), default 'info'");
desc.add_options()("log-level", opt::value<std::string>()->default_value("info"),
"log level (debug, info, warning, error), default 'info'");
desc.add_options()("help,h", "help");
opt::variables_map vm;
opt::store(opt::parse_command_line(argc, argv, desc), vm);
@ -62,7 +62,7 @@ int main(int argc, char *argv[]) {
std::cout << desc << "\n";
return EXIT_FAILURE;
}
init_logging(vm["logging-level"].as<std::string>());
init_logging(vm["log-level"].as<std::string>());
va::Settings::instance().prefix_archvie_path(vm["prefix-archive-path"].as<std::string>());
va::Settings::instance().port(vm["port"].as<uint16_t>());
} catch (std::exception &ex) {

View File

@ -52,8 +52,8 @@ int main(int argc, char *argv[]) {
"inference server port, default 3030");
desc.add_options()("num-threads", opt::value<size_t>()->default_value(1),
"number of parallel threads, default 1");
desc.add_options()("logging-level", opt::value<std::string>()->default_value("info"),
"logging level (debug, info, warning, error), default 'info'");
desc.add_options()("log-level", opt::value<std::string>()->default_value("info"),
"log level (debug, info, warning, error), default 'info'");
desc.add_options()("help,h", "help");
opt::variables_map vm;
opt::store(opt::parse_command_line(argc, argv, desc), vm);
@ -62,7 +62,7 @@ int main(int argc, char *argv[]) {
std::cout << desc << "\n";
return EXIT_FAILURE;
}
init_logging(vm["logging-level"].as<std::string>());
init_logging(vm["log-level"].as<std::string>());
va::Settings::instance().prefix_archvie_path(vm["prefix-archive-path"].as<std::string>());
va::Settings::instance().inference_server_address(vm["inference-server-address"].as<std::string>());
va::Settings::instance().inference_server_port(vm["inference-server-port"].as<int16_t>());

View File

@ -53,8 +53,8 @@ int main(int argc, char *argv[]) {
"prefix of the path for saving video files, default '/tmp/va'");
desc.add_options()("duration-file", opt::value<int64_t>()->default_value(10),
"duration file seconds, default 10 secs");
desc.add_options()("logging-level", opt::value<std::string>()->default_value("info"),
"logging level (debug, info, warning, error), default 'info'");
desc.add_options()("log-level", opt::value<std::string>()->default_value("info"),
"log level (debug, info, warning, error), default 'info'");
desc.add_options()("source-file", opt::value<std::string>()->default_value("sources.json"),
"path to source file, default sources.json in current directory");
desc.add_options()("help,h", "help");
@ -65,7 +65,7 @@ int main(int argc, char *argv[]) {
std::cout << desc << "\n";
return EXIT_FAILURE;
}
init_logging(vm["logging-level"].as<std::string>());
init_logging(vm["log-level"].as<std::string>());
app.prefix_archvie_path(vm["prefix-archive-path"].as<std::string>());
app.source_file(vm["source-file"].as<std::string>());
app.duration_file(vm["duration-file"].as<int64_t>());

View File

@ -4,6 +4,6 @@
#define PROJECT_NAME "va"
#define VERSION_MAJOR "0"
#define VERSION_MINOR "4"
#define VERSION_PATCH "0"
#define VERSION_PATCH "1"
#endif