def AVID_VIDEO_FORMAT_FROM_WIDTH_HEIGHT(width, height):
    """Utility function to map a width and height to an Avid Project Format"""
    format_map = {'1080': '1080', '720': '720', '576': 'PAL', '486': 'NTSC'}
    mapped = format_map.get(str(height), 'CUSTOM')
    if mapped == '1080' and width > 1920:
        mapped = 'CUSTOM'
    return mapped
