def set_compression(self, compression):
    'Request the given compression level for the video stream.\n\n        :param compression: Compression of the image (0 - no compression, 100 - max compression).\n        :type compression: int\n        :raises: :py:exc:`ValueError` if the given compression level is outside the allowed range.\n        '
    if (compression != self._compression):
        self._compression = self.sanitize_compression(compression)
        self.video_params_changed = True
Request the given compression level for the video stream.

:param compression: Compression of the image (0 - no compression, 100 - max compression).
:type compression: int
:raises: :py:exc:`ValueError` if the given compression level is outside the allowed range.
def set_compression(self, compression):
    'Request the given compression level for the video stream.\n\n        :param compression: Compression of the image (0 - no compression, 100 - max compression).\n        :type compression: int\n        :raises: :py:exc:`ValueError` if the given compression level is outside the allowed range.\n        '
    if (compression != self._compression):
        self._compression = self.sanitize_compression(compression)
        self.video_params_changed = True