Video Recoding Buffer management

Implemented methods to supervise encoding in FrameGrabber, avoid running out of buffer, and give user a selection of buffer sizes for recording.
This commit is contained in:
Bruno
2021-08-08 23:58:35 +02:00
parent ddd9bb4e99
commit 5a18dbaf37
9 changed files with 161 additions and 91 deletions

View File

@@ -102,6 +102,7 @@ void Settings::Save()
RecordNode->SetAttribute("profile", application.record.profile);
RecordNode->SetAttribute("timeout", application.record.timeout);
RecordNode->SetAttribute("delay", application.record.delay);
RecordNode->SetAttribute("buffering_mode", application.record.buffering_mode);
pRoot->InsertEndChild(RecordNode);
// Transition
@@ -314,6 +315,7 @@ void Settings::Load()
recordnode->QueryIntAttribute("profile", &application.record.profile);
recordnode->QueryUnsignedAttribute("timeout", &application.record.timeout);
recordnode->QueryIntAttribute("delay", &application.record.delay);
recordnode->QueryIntAttribute("buffering_mode", &application.record.buffering_mode);
const char *path_ = recordnode->Attribute("path");
if (path_)