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