From d9cdd308775a4f0910d9382b700f8770ddb7db35 Mon Sep 17 00:00:00 2001 From: zii Date: Wed, 9 Oct 2024 13:00:35 -0400 Subject: [PATCH] v3.6.t2 -fixed an issue that prevented the name seed value from incrementing --- src/common.h | 2 +- src/record_loop.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common.h b/src/common.h index 62e01f3..d4da041 100644 --- a/src/common.h +++ b/src/common.h @@ -32,7 +32,7 @@ using namespace std; -#define APP_VERSION "3.6.t1" +#define APP_VERSION "3.6.t2" #define APP_NAME "JustMotion" #define APP_TARGET "jmotion" #define DATETIME_FMT "yyyyMMddhhmmss" diff --git a/src/record_loop.cpp b/src/record_loop.cpp index 9624f0a..071fb6a 100644 --- a/src/record_loop.cpp +++ b/src/record_loop.cpp @@ -69,10 +69,12 @@ QString RecordLoop::camCmdFromConf() ret += "-vf fps=" + QString::number(shared->recFps) + ",scale=" + shared->recScale + " "; } + shared->seed += 1; + ret += "-vcodec " + shared->vidCodec + " "; ret += "-acodec " + shared->audCodec + " "; ret += "-reset_timestamps 1 -sc_threshold 0 -g 2 -force_key_frames 'expr:gte(t, n_forced * 2)' -segment_time 2 -f segment "; - ret += shared->buffPath + "/live/" + QString::number(shared->seed++).leftJustified(21, '0') + shared->streamExt; + ret += shared->buffPath + "/live/" + QString::number(shared->seed).leftJustified(21, '0') + shared->streamExt; return ret; }