let screenInput = AVCaptureScreenInput(displayID: displayId)
var croppingBox = NSOffsetRect(box, -screen.frame.origin.x, -screen.frame.origin.y)
if croppingBox.width.truncatingRemainder(dividingBy: 2) != 0 {
croppingBox.size.width -= 1
}
screenInput?.cropRect = croppingBox.insetBy(dx: 1, dy: 1)
let screenInput = AVCaptureScreenInput(displayID: displayId)
var croppingBox = NSOffsetRect(box, -screen.frame.origin.x, -screen.frame.origin.y)
if croppingBox.width.truncatingRemainder(dividingBy: 2) != 0 {
croppingBox.size.width -= 1
}
screenInput?.cropRect = croppingBox.insetBy(dx: 1, dy: 1)