diff options
author | Devaev Maxim <[email protected]> | 2021-02-06 19:27:00 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-02-06 19:27:00 +0300 |
commit | 63aa4a07a72276eb065196ce1900a046f76ff3e0 (patch) | |
tree | 36ee78a679c14335db7017c865e975d33762f7aa /kvmd/validators | |
parent | c36d931ee37d0486dd77370e8bd36aa7f7193d0d (diff) |
refactored streamer params, added h264 gop
Diffstat (limited to 'kvmd/validators')
-rw-r--r-- | kvmd/validators/kvm.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py index e8f14f6a..a2701060 100644 --- a/kvmd/validators/kvm.py +++ b/kvmd/validators/kvm.py @@ -78,3 +78,7 @@ def valid_stream_resolution(arg: Any) -> str: def valid_stream_h264_bitrate(arg: Any) -> int: return int(valid_number(arg, min=100, max=16000, name="stream H264 bitrate")) + + +def valid_stream_h264_gop(arg: Any) -> int: + return int(valid_number(arg, min=0, max=60, name="stream H264 GOP")) |