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

This commit is contained in:
Gilles Schintgen
2024-05-13 00:55:43 +02:00
committed by GitHub
parent 659a426b03
commit 0a595dc7d2
5 changed files with 14 additions and 2 deletions

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;
}