def set_fps(self, fps):
    'Request the given compression level for the video stream.\n\n        :param fps: The desired frames per second.\n        :type fps: int\n        :raises: :py:exc:`ValueError` if the given FPS is outside the allowed range.\n        '
    if (fps != self._fps):
        self._fps = self.sanitize_fps(fps)
        self.video_params_changed = True
        if hasattr(self, '_video_publisher_frequency_diagnostic'):
            self._video_publisher_frequency_diagnostic.freq_bound['min'] = self._fps
            self._video_publisher_frequency_diagnostic.freq_bound['max'] = self._fps
Request the given compression level for the video stream.

:param fps: The desired frames per second.
:type fps: int
:raises: :py:exc:`ValueError` if the given FPS is outside the allowed range.
def set_fps(self, fps):
    'Request the given compression level for the video stream.\n\n        :param fps: The desired frames per second.\n        :type fps: int\n        :raises: :py:exc:`ValueError` if the given FPS is outside the allowed range.\n        '
    if (fps != self._fps):
        self._fps = self.sanitize_fps(fps)
        self.video_params_changed = True
        if hasattr(self, '_video_publisher_frequency_diagnostic'):
            self._video_publisher_frequency_diagnostic.freq_bound['min'] = self._fps
            self._video_publisher_frequency_diagnostic.freq_bound['max'] = self._fps