def square_crop(frame):
    """Take the smallest dimension and make the video a square"""
    x, y, z = frame.shape
    x1, y1 = x//2, y//2
    m1 = min(x1, y1)
    return frame[x1-m1:x1+x1, y1-m1:y1+m1, :]