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; }