diff options
author | Devaev Maxim <[email protected]> | 2021-01-28 08:12:04 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-01-28 08:12:04 +0300 |
commit | 83184952f6f8d834481cd06aee42474c74bb304c (patch) | |
tree | a2b7b0e2edf852d806c274c3557b6ea2b89a1e2a /kvmd/apps/__init__.py | |
parent | 83f9406fa0c8e5ba2ceb384a2e3c7c6ed5557296 (diff) |
h264_bitrate streamer param
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index a8543a83..b835088e 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -90,6 +90,7 @@ from ..validators.hid import valid_hid_mouse_move from ..validators.kvm import valid_stream_quality from ..validators.kvm import valid_stream_fps from ..validators.kvm import valid_stream_resolution +from ..validators.kvm import valid_stream_h264_bitrate from ..validators.ugpio import valid_ugpio_driver from ..validators.ugpio import valid_ugpio_channel @@ -359,6 +360,10 @@ def _get_config_scheme() -> Dict: "resolution": Option("", type=(lambda arg: (valid_stream_resolution(arg) if arg else ""))), "available_resolutions": Option([], type=functools.partial(valid_string_list, subval=valid_stream_resolution)), + "h264_bitrate": Option(0, type=(lambda arg: (valid_stream_h264_bitrate(arg) if arg else 0))), + "h264_min_bitrate": Option(100, type=valid_stream_h264_bitrate), + "h264_max_bitrate": Option(16000, type=valid_stream_h264_bitrate), + "host": Option("localhost", type=valid_ip_or_host), "port": Option(0, type=valid_port), "unix": Option("", type=valid_abs_path, only_if="!port", unpack_as="unix_path"), |