mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
max h264 kbps is 2000
This commit is contained in:
@@ -432,7 +432,7 @@ def _get_config_scheme() -> Dict:
|
||||
"h264_bitrate": {
|
||||
"default": Option(0, type=valid_stream_h264_bitrate, if_empty=0, unpack_as="h264_bitrate"),
|
||||
"min": Option(25, type=valid_stream_h264_bitrate, unpack_as="h264_bitrate_min"),
|
||||
"max": Option(25000, type=valid_stream_h264_bitrate, unpack_as="h264_bitrate_max"),
|
||||
"max": Option(20000, type=valid_stream_h264_bitrate, unpack_as="h264_bitrate_max"),
|
||||
},
|
||||
|
||||
"h264_gop": {
|
||||
|
||||
@@ -77,7 +77,7 @@ def valid_stream_resolution(arg: Any) -> str:
|
||||
|
||||
|
||||
def valid_stream_h264_bitrate(arg: Any) -> int:
|
||||
return int(valid_number(arg, min=25, max=25000, name="stream H264 bitrate"))
|
||||
return int(valid_number(arg, min=25, max=20000, name="stream H264 bitrate"))
|
||||
|
||||
|
||||
def valid_stream_h264_gop(arg: Any) -> int:
|
||||
|
||||
Reference in New Issue
Block a user