Autocreate directory
This commit is contained in:
1 parent
e67109ea88
commit
84e2e65563
4 files changed
+4005
-13
No files matched your search
+3995
-6
File diff suppressed because it is too large.
Load diff
Binary file not shown.
+1
-1
@@ -71,7 +71,7 @@ struct AppConfig {
|
||||
int live_stream_quality = 75;
|
||||
int live_stream_every_n = 2;
|
||||
|
||||
std::string rtsp_ffmpeg_options = "rtsp_transport;tcp|fflags;nobuffer|flags;low_delay";
|
||||
std::string rtsp_ffmpeg_options = "rtsp_transport;tcp|fflags;nobuffer|flags;low_delay|analyzeduration;1000000|probesize;32768";
|
||||
|
||||
int cross_flash_frames = 12;
|
||||
int popup_lifetime = 20;
|
||||
|
||||
+9
-6
@@ -140,6 +140,15 @@ int main(int argc, char* argv[]) {
|
||||
<< " match_thresh=" << g_config.track_match_thresh_1
|
||||
<< " buffer=" << g_config.track_buffer_1
|
||||
<< " min_hits=" << g_config.track_min_hits_1 << std::endl;
|
||||
std::cout << "SHM_DIR: " << g_config.shm_dir << std::endl;
|
||||
|
||||
std::filesystem::create_directories(g_config.output_dir);
|
||||
std::filesystem::create_directories(g_config.shm_dir);
|
||||
{
|
||||
std::filesystem::path live_p(g_config.live_stream_frame_path);
|
||||
if (live_p.has_parent_path())
|
||||
std::filesystem::create_directories(live_p.parent_path());
|
||||
}
|
||||
|
||||
{
|
||||
std::string reset_file = g_config.shm_dir + "/.reset";
|
||||
@@ -152,12 +161,6 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
if (g_config.live_stream_enabled) {
|
||||
std::filesystem::path live_p(g_config.live_stream_frame_path);
|
||||
if (live_p.has_parent_path())
|
||||
std::filesystem::create_directories(live_p.parent_path());
|
||||
}
|
||||
|
||||
int class_ayam = g_config.ayam_class_id;
|
||||
int class_talenan = g_config.talenan_class_id;
|
||||
|
||||
|
||||
Reference in new issue
Block a user