def _get_framerate_range(self):
    self._check_camera_open()
    port_num = (self.CAMERA_VIDEO_PORT if self._encoders else self.CAMERA_PREVIEW_PORT)
    mp = self._camera.outputs[port_num].params[mmal.MMAL_PARAMETER_FPS_RANGE]
    return mo.PiFramerateRange(mo.to_fraction(mp.fps_low), mo.to_fraction(mp.fps_high))
def _get_framerate_range(self):
    self._check_camera_open()
    port_num = (self.CAMERA_VIDEO_PORT if self._encoders else self.CAMERA_PREVIEW_PORT)
    mp = self._camera.outputs[port_num].params[mmal.MMAL_PARAMETER_FPS_RANGE]
    return mo.PiFramerateRange(mo.to_fraction(mp.fps_low), mo.to_fraction(mp.fps_high))