-the ffmpeg auto refresh logic is working, just need to shorten
 the frequency by setting recloop's heartbeat to default.

-added hls flag "omit_endlist" so the auto refresh doesn't cut off
 the stream at the web browser end.
This commit is contained in:
Zii 2023-06-14 20:57:18 -04:00
parent 71fc5b0bc2
commit 4300651a52
2 changed files with 4 additions and 5 deletions

View File

@ -107,9 +107,8 @@ bool Loop::exec()
RecLoop::RecLoop(shared_t *sharedRes, QThread *thr, QObject *parent) : Loop(sharedRes, thr, parent) RecLoop::RecLoop(shared_t *sharedRes, QThread *thr, QObject *parent) : Loop(sharedRes, thr, parent)
{ {
recProc = 0; recProc = 0;
imgProc = 0; imgProc = 0;
heartBeat = 1800;
} }
void RecLoop::init() void RecLoop::init()
@ -139,7 +138,7 @@ void RecLoop::updateCmd()
recArgs << "-f" << "hls"; recArgs << "-f" << "hls";
recArgs << "-hls_time" << "2"; recArgs << "-hls_time" << "2";
recArgs << "-hls_list_size" << "1000"; recArgs << "-hls_list_size" << "1000";
recArgs << "-hls_flags" << "append_list"; recArgs << "-hls_flags" << "append_list+omit_endlist";
recArgs << "-rtsp_transport" << "tcp"; recArgs << "-rtsp_transport" << "tcp";
recArgs << "-stimeout" << "3000"; recArgs << "-stimeout" << "3000";
recArgs << "-t" << QString::number(heartBeat); recArgs << "-t" << QString::number(heartBeat);

View File

@ -29,7 +29,7 @@
using namespace std; using namespace std;
#define APP_VER "3.0.t18" #define APP_VER "3.0.t19"
#define APP_NAME "Motion Watch" #define APP_NAME "Motion Watch"
#define APP_BIN "mow" #define APP_BIN "mow"
#define REC_LOG_NAME "rec_log_lines.html" #define REC_LOG_NAME "rec_log_lines.html"