How to use custom video resolution when use AVFoundation and AVCaptureVideoDataOutput on mac
- 阅读更多 关于 How to use custom video resolution when use AVFoundation and AVCaptureVideoDataOutput on mac
问题 I need to process each frame of captured video frame, although AVCaptureDevice.formats provided so many different dimension of frame sizes, it seems AVCaptureSession only support those frame sizes defined in presets. I've also tried to set AVCaptureDevice.activeFormat before AVCaptureInputDevice or after, no matter what setting I set, if I set AVCaptureSessionPresetHigh in AVCaptureSession , it always give me a frame of 1280x720. Similar , If i set AVCaptureSessionPreset 640x480, then I can