diff --git a/components/rgbd-sources/src/streamer.cpp b/components/rgbd-sources/src/streamer.cpp index b466d6b2098321ea370a7587d91156f7e7b4ba95..4a9e5400c4cad815c92f8ce6fd6304df9f66112e 100644 --- a/components/rgbd-sources/src/streamer.cpp +++ b/components/rgbd-sources/src/streamer.cpp @@ -429,6 +429,7 @@ void Streamer::_process(ftl::rgbd::FrameSet &fs) { if (enc2) enc2->reset(); } + if (fs.timestamp % (10*ftl::timer::getInterval()) == 0) enc1->reset(); enc1->encode(fs.frames[j].get<cv::Mat>(Channel::Colour), src->hq_bitrate, [this,src,hasChan2](const ftl::codecs::Packet &blk){ _transmitPacket(src, blk, 0, hasChan2, true); });