@staticmethod
def sanitize_fps(fps):
    'Make sure the given value can be used as FPS of the video stream.\n\n        :param fps: The desired frames per second.\n        :type fps: int\n        :return: The given FPS converted to an int.\n        :rtype: int\n        :raises: :py:exc:`ValueError` if the given FPS is outside the allowed range.\n        '
    fps = int(fps)
    if (not (1 <= fps <= 30)):
        raise ValueError(('%s is not a valid value for FPS.' % str(fps)))
    return fps
Make sure the given value can be used as FPS of the video stream.

:param fps: The desired frames per second.
:type fps: int
:return: The given FPS converted to an int.
:rtype: int
:raises: :py:exc:`ValueError` if the given FPS is outside the allowed range.
@staticmethod
def sanitize_fps(fps):
    'Make sure the given value can be used as FPS of the video stream.\n\n        :param fps: The desired frames per second.\n        :type fps: int\n        :return: The given FPS converted to an int.\n        :rtype: int\n        :raises: :py:exc:`ValueError` if the given FPS is outside the allowed range.\n        '
    fps = int(fps)
    if (not (1 <= fps <= 30)):
        raise ValueError(('%s is not a valid value for FPS.' % str(fps)))
    return fps