Event recordings are not writing out correctly. added more log lines to
help debug.
This commit is contained in:
Maurice ONeal 2023-03-10 19:35:44 -05:00
parent b0dbfa0852
commit ae46834777
3 changed files with 7 additions and 4 deletions

View File

@ -364,6 +364,9 @@ uint64_t genEpoch()
void wrOutm3u8(const pls_t &pls)
{
recLog("live-to-event-src: " + pls.clipPath);
recLog("live-to-event-dst: " + pls.dstPath);
createDirTree(path(pls.dstPath).parent_path().string());
copy_file(pls.clipPath, pls.dstPath);

View File

@ -37,7 +37,7 @@ using namespace std;
using namespace std::filesystem;
using namespace std::chrono;
#define APP_VER "2.0.t2"
#define APP_VER "2.0.t3"
#define APP_NAME "Motion Watch"
#define REC_LOG_NAME "rec_log_lines.html"
#define DET_LOG_NAME "det_log_lines.html"

View File

@ -47,12 +47,12 @@ void eventLoop(shared_t *share)
if (!exists(pls.fileName + ".jpg"))
{
imwrite(string(pls.fileName + "jpg").c_str(), pls.thumbnail);
imwrite(string(pls.fileName + ".jpg").c_str(), pls.thumbnail);
}
}
catch (filesystem_error &ex)
{
recLog("err: could not copy live file: " + pls.clipPath + " reason - " + ex.what(), share);
recLog("err: " + ex.what(), share);
}
share->recList.erase(share->recList.begin());