Is there a way to set a custom AVCaptureVideoDataOutput for a desired output setting. What Im trying to achieve is below. However the buffer width and height never change .What Im trying to achieve is a custom height and a width for the video pixel output. What am I missing ?
AVCaptureVideoDataOutput.videoSettings = [kCVPixelBufferPixelFormatTypeKey: Int(kCVPixelFormatType_32BGRA),
kCVPixelBufferHeightKey: 300,
kCVPixelBufferWidthKey: 300] as [String : Any]
Thus, I tried with the same objective with the session preset, but they are not capable of setting a custom width and height. If I can get a 300x300 output thats a win