Skip to content

Commit

Permalink
Enforce 10 FPS encoding frame rate floor to improve static image qual…
Browse files Browse the repository at this point in the history
…ity (#754)
  • Loading branch information
cgutman authored Jan 11, 2023
1 parent 43d47c6 commit 696a119
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1134,14 +1134,12 @@ void encode_run(
idr_events->pop();
}

// Encode at a minimum of 10 FPS to avoid image quality issues with static content
if(!frame->key_frame || images->peek()) {
if(auto img = images->pop(100ms)) {
session->device->convert(*img);
}
else if(images->running()) {
continue;
}
else {
else if(!images->running()) {
break;
}
}
Expand Down

0 comments on commit 696a119

Please sign in to comment.