Sorry Nana,
I was away a couple of days so could not get to this.
I have attached a simple demo of capturing with MergAV on Mac OSX.
When I ran your code I got an error related to the quality setting. It may be that you are using a preset that is supported on iOS that is not supported on MacOSX.
Here are the lists of presets supported on the two OS's as best I can determine. I have included the links where I found these.
iOS Capture session presets
https://developer.apple.com/library/pre ... ut_Presets
AVCaptureSessionPresetPhoto;
AVCaptureSessionPresetHigh;
AVCaptureSessionPresetMedium;
AVCaptureSessionPresetLow;
AVCaptureSessionPreset352x288;
AVCaptureSessionPreset640x480;
AVCaptureSessionPreset1280x720;
AVCaptureSessionPreset1920x1080;
AVCaptureSessionPresetiFrame960x540;
AVCaptureSessionPresetiFrame1280x720;
Mac OS X Capture session presets
https://developer.apple.com/library/mac ... pture.html
AVCaptureSessionPresetHigh
AVCaptureSessionPresetMedium
AVCaptureSessionPresetLow
AVCaptureSessionPreset640x480
AVCaptureSessionPreset1280x720
If you are worried about video file size I would use Medium. That is what I used in this stack.
Also it is better to set the camera settings before you call mergAVCamCreate.
So in this stack when you click the 'Open Cam' button it will go to card 2 and create the camera.
When you click record it records a movie called 'output.mov' to the Movie folder. When you click the 'Close Cam' button it goes back to card 1 and sets the file name of the player on the card to the newly created movie.
Hope this gets you started with mergAV on the Mac.
Martin Koob