import re


def get_filename_suffix(path):
    """
    1. file's name; 2. suffix;
    :param path: video's path, e.g. 'xxx/yyy/zzz.avi'
    :return:
        file_name : str = 'zzz'
        suffix : str = 'avi'
    """
    suffix = re.split('\.', path)[-1]
    video_filename = re.split('\/', re.split('\.', path)[0])[-1]
    return video_filename, suffix