def get_sesssion_recording_segment_time(session_info_filename):
    """
    Finds the duration of video segments for perpetual recording during this session. This info is in the _SESSION_INFO
        file, as well as the _SESSION_CONFIG file. Pulled from INFO file for convenience in this case.
    :param session_info_filename:  path to session info filename
    :return: number of minutes for video segments
    """
    with open(session_info_filename, 'r') as f:
        for line in f:
            if line.startswith("Recording segment duration: "):
                rst = float(line.strip("Recording segment duration: "))
                break
        else:
            raise ValueError("Couldn't find line with recording duration.")
    return rst