def mmss_to_frames(fps, m, s=0):
    """
    Converts minutes and seconds of video to frames based on fps
    :param fps: frames per second of video
    :param m: minutes
    :param s: seconds
    :return: frame number
    """
    return int((m * 60 + s) / fps)