2013-08-30 33 views
0

在這裏,我正在嘗試錄製視頻和處理輸出緩衝區,我使用avfoundation攝像機來記錄視頻和採集緩衝區委託方法的輸出,並在圖像視圖中顯示輸出。找到但如何從這裏保存視頻的東西可以任何人請幫助我。如何從avfoundation攝像頭獲得視頻輸出

- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;{ 
    UIImage *image = [self imageFromSampleBuffer:sampleBuffer]; 
    UIImage *fImage = [self addText:image text:@"u r text here"];//image will be processed here 
    self.dispFrames.image = fImage; 

    } 

回答

相關問題