fix(linux): add frame processing latency and logging improvements (#2502)

This commit is contained in:
Gilles Schintgen authored and GitHub committed 2024-05-12 18:55:43 -04:00
1 parent 659a426b03
commit 0a595dc7d2
5 files changed
+14 -2

No files matched your search

+4
View File
@@ -1294,6 +1294,10 @@ namespace video {
return ret;
}
if (av_packet->flags & AV_PKT_FLAG_KEY) {
BOOST_LOG(debug) << "Frame "sv << frame_nr << ": IDR Keyframe (AV_FRAME_FLAG_KEY)"sv;
}
if ((frame->flags & AV_FRAME_FLAG_KEY) && !(av_packet->flags & AV_PKT_FLAG_KEY)) {
BOOST_LOG(error) << "Encoder did not produce IDR frame when requested!"sv;
}