Add FFMPEG Configuration

This commit is contained in:
2021-07-28 15:54:41 +02:00
parent 1401fff529
commit e176383ffa
12 changed files with 31 additions and 31 deletions
+9 -9
View File
@@ -66,9 +66,9 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
{
auto recorder = Recorder::DigooRecorder(pHttpClient, settings);
if (StringAlgorithm::iequals("Snapshot", action))
reply.content = recorder.Snapshot(pThreadPool);
reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
else if (StringAlgorithm::iequals("MultiSnapshot", action))
reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
reply.content = recorder.MultiSnapshot(pThreadPool, ffmpeg, numberOfImages);
else if (StringAlgorithm::iequals("Video", action))
reply.content = recorder.Video(pThreadPool, ffmpeg);
}
@@ -76,7 +76,7 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
{
auto recorder = Recorder::FoscamRecorder(pHttpClient, settings);
if (StringAlgorithm::iequals("Snapshot", action))
reply.content = recorder.Snapshot(pThreadPool);
reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
else if (StringAlgorithm::iequals("MultiSnapshot", action))
reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
else if (StringAlgorithm::iequals("Video", action))
@@ -86,9 +86,9 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
{
auto recorder = Recorder::VStarCamRecorder(pHttpClient, settings);
if (StringAlgorithm::iequals("Snapshot", action))
reply.content = recorder.Snapshot(pThreadPool);
reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
else if (StringAlgorithm::iequals("MultiSnapshot", action))
reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
reply.content = recorder.MultiSnapshot(pThreadPool, ffmpeg, numberOfImages);
else if (StringAlgorithm::iequals("Video", action))
reply.content = recorder.Video(pThreadPool, ffmpeg);
}
@@ -96,9 +96,9 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
{
auto recorder = Recorder::WatchBotRecorder(pHttpClient, settings);
if (StringAlgorithm::iequals("Snapshot", action))
reply.content = recorder.Snapshot(pThreadPool);
reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
else if (StringAlgorithm::iequals("MultiSnapshot", action))
reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
reply.content = recorder.MultiSnapshot(pThreadPool, ffmpeg, numberOfImages);
else if (StringAlgorithm::iequals("Video", action))
reply.content = recorder.Video(pThreadPool, ffmpeg);
}
@@ -106,9 +106,9 @@ Http::HttpServer::HttpReply WebAPI::ProcessQuery(ctpl::thread_pool* pThreadPool,
{
auto recorder = Recorder::ZModoRecorder(pHttpClient, settings);
if (StringAlgorithm::iequals("Snapshot", action))
reply.content = recorder.Snapshot(pThreadPool);
reply.content = recorder.Snapshot(pThreadPool, ffmpeg);
else if (StringAlgorithm::iequals("MultiSnapshot", action))
reply.content = recorder.MultiSnapshot(pThreadPool, numberOfImages);
reply.content = recorder.MultiSnapshot(pThreadPool, ffmpeg, numberOfImages);
else if (StringAlgorithm::iequals("Video", action))
reply.content = recorder.Video(pThreadPool, ffmpeg);
}