def _get_framerate(self):
    self._check_camera_open()
    port_num = (self.CAMERA_VIDEO_PORT if self._encoders else self.CAMERA_PREVIEW_PORT)
    return mo.PiCameraFraction(self._camera.outputs[port_num].framerate)
def _get_framerate(self):
    self._check_camera_open()
    port_num = (self.CAMERA_VIDEO_PORT if self._encoders else self.CAMERA_PREVIEW_PORT)
    return mo.PiCameraFraction(self._camera.outputs[port_num].framerate)