def height_to_resolution(height):
    """Convert height to resolution."""
    if not height:
        return ''
    if height >= 4320:
        return '8K'
    if height >= 2160:
        return '4K'
    if height >= 1080:
        return '1080p'
    if height >= 720:
        return '720p'
    return f'{height}p'