Skip to content
Snippets Groups Projects
Commit 73ced9fe authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Reset encode every 10 frames

parent 523cb1f3
No related branches found
No related tags found
2 merge requests!127Implements #196 stream capturing,!125Resolves #159 proxy of sources
Pipeline #15243 passed
This commit is part of merge request !125. Comments created here will be created in the context of that merge request.
......@@ -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);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment