-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

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

View File

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