From f7626652e405b2a492dd3b49ff95140b4d1f144b Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 14 Mar 2017 01:35:39 +0100 Subject: [PATCH] ATV Modulator: hideous hack to split bandwidth between webcams so multi webcam is supported more or less (tested with 2) --- plugins/channeltx/modatv/atvmod.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/channeltx/modatv/atvmod.cpp b/plugins/channeltx/modatv/atvmod.cpp index 92c5109c9..3bcfa9984 100644 --- a/plugins/channeltx/modatv/atvmod.cpp +++ b/plugins/channeltx/modatv/atvmod.cpp @@ -317,7 +317,8 @@ void ATVMod::pullVideo(Real& sample) time(&end); double seconds = difftime (end, start); - camera.m_videoFPS = (nbFrames / seconds) * 0.95; // take a 5% guard + // take a 10% guard and divide bandwidth between all cameras as a hideous hack + camera.m_videoFPS = ((nbFrames / seconds) * 0.9) / m_cameras.size(); camera.m_videoFPSq = camera.m_videoFPS / m_fps; camera.m_videoFPSCount = camera.m_videoFPSq; camera.m_videoPrevFPSCount = 0; @@ -512,6 +513,8 @@ bool ATVMod::handleMessage(const Message& cmd) 0); getOutputMessageQueue()->push(report); } + + return true; } else if (MsgConfigureOverlayText::match(cmd)) {