capturesession set camera out resolution on Mac, but it seems failed

i try to set camera output resolution on Mac, but it seems failed
my code as below
if ([self.captureSession canSetSessionPreset:AVCaptureSessionPreset640x480]){
   [[self captureSession] setSessionPreset:AVCaptureSessionPreset640x480];
}
when i debug, the preset is set successfully.
but the video output is till 1280*720
by the way, same code run on iOS, the preset works well

any updates ?

The solution that worked for me was adding: kCVPixelBufferWidthKey and kCVPixelBufferHeightKey with the resolution to the videoSettings property of AVCaptureVideoDataOutput object.

capturesession set camera out resolution on Mac, but it seems failed
 
 
Q