def METHOD_NAME(self, video_path, basedir, frame_count=60):
    cap = cv2.VideoCapture(video_path)
    fps = round(cap.get(cv2.CAP_PROP_FPS))
    frame_total = round(cap.get(cv2.CAP_PROP_FRAME_COUNT))
    if not os.path.exists(os.path.join(basedir, 'images')):
        logger.info('Need to run ffmpeg')
        image_dir = os.path.join(basedir, 'images')
        os.makedirs(image_dir, exist_ok=True)
        fps = int(frame_count * fps / frame_total)
        cmd = f"ffmpeg -i {video_path} -qscale:v 1 -qmin 1 -vf \"fps={fps}\" {image_dir}/%04d.png"
        os.system(cmd)
        logger.info('split frames done')
    else:
        logger.info('Don\'t need to run ffmpeg')