def get_video_parts(video_path):
    """Given a full path to a video, return its parts."""
    video_path = video_path.replace('\\','/') # Adapt for win
    parts = video_path.split('/')
    filename = parts[3]
    filename_no_ext = filename.split('.')[0]
    classname = parts[2]
    train_or_test = parts[1]

    return train_or_test, classname, filename_no_ext, filename