Add encoding frame rate limit

This commit is contained in:
Yukino Song
2025-02-03 03:26:03 +08:00
parent 525d42afc5
commit 8b0053437a
6 changed files with 19 additions and 0 deletions

View File

@@ -417,6 +417,7 @@ namespace config {
video_t video {
false, // headless_mode
true, // limit_framerate
28, // qp
0, // hevc_mode
@@ -1089,6 +1090,7 @@ namespace config {
}
bool_f(vars, "headless_mode", video.headless_mode);
bool_f(vars, "limit_framerate", video.limit_framerate);
int_f(vars, "qp", video.qp);
int_between_f(vars, "hevc_mode", video.hevc_mode, { 0, 3 });
int_between_f(vars, "av1_mode", video.av1_mode, { 0, 3 });

View File

@@ -16,6 +16,7 @@
namespace config {
struct video_t {
bool headless_mode;
bool limit_framerate;
// ffmpeg params
int qp; // higher == more compression and less quality