Enforce 10 FPS encoding frame rate floor to improve static image quality (#754)
This commit is contained in:
parent
43d47c6f3c
commit
696a11942c
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue