关于IOS的视频录制
原文摘自:http://blog.csdn.net/zoutian007/article/details/7472098
昨天写了一段程序关于视频录制的,老是库找不到,提示错误。
首先要加的是AVFoundtion.framework.
接着提示
"_CVPixelBufferGetPixelFormatType", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CVPixelBufferUnlockBaseAddress", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CVPixelBufferGetHeight", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CVPixelBufferGetDataSize", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_kCVPixelBufferHeightKey", referenced from:
-[AVCallController startVideoCapture] in AVCallController.o
"_CVPixelBufferGetBaseAddress", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CVPixelBufferLockBaseAddress", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_kCVPixelBufferWidthKey", referenced from:
-[AVCallController startVideoCapture] in AVCallController.o
"_CVPixelBufferGetWidth", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
把coreVideo.FrameWork加进去!
接下来又是
Undefined symbols for architecture armv7:
"_CMSampleBufferGetImageBuffer", referenced from:
-[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o
"_CMTimeMake", referenced from:
-[AVCallController startVideoCapture] in AVCallController.o
这时候把CoreMedia.FrameWork 加进去