Skip to content

Commit

Permalink
Logging(Linux): log IDR frames at loglevel debug
Browse files Browse the repository at this point in the history
IDR frames seem to be related to the occasional DATA_SHARDS_MAX
warnings observed by some AMD users.
  • Loading branch information
gschintgen authored and ReenigneArcher committed May 12, 2024
1 parent 061ef40 commit 2c11691
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2c11691

Please sign in to comment.