¡@

Home 

2014/10/15 ¤U¤È 10:06:40

iphone Programming Glossary: didoutputsamplebuffer

iOS: Get pixel-by-pixel data from camera

http://stackoverflow.com/questions/10865100/ios-get-pixel-by-pixel-data-from-camera

you have your capture session configured and you are capturing data from the camera you will set up a captureOutput didOutputSampleBuffer fromConnection delegate method where one of the parameters will be a CMSampleBufferRef. That will have a CVImageBufferRef..

Upload live streaming video from iPhone like Ustream or Qik

http://stackoverflow.com/questions/1960782/upload-live-streaming-video-from-iphone-like-ustream-or-qik

the output device's delegate here self has to implement the callback void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer.. asked how to do this without sending the frames to the server one by one. The answer is complex... Basically in the didOutputSampleBuffer function above you add the samples into an AVAssetWriter . I actually had three asset writers active at a time past present..

how to convert a CVImageBufferRef to UIImage

http://stackoverflow.com/questions/3152259/how-to-convert-a-cvimagebufferref-to-uiimage

to convert a CVImageBufferRef to UIImage I amy trying to capture video from a camera. i have gotten the captureOutput didOutputSampleBuffer callback to trigger and it gives me a sample buffer that i then convert to a CVImageBufferRef. i then attempt to convert.. to convert that image to a UIImage that i can then view in my app. void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer..

UIImage created from CMSampleBufferRef not displayed in UIImageView?

http://stackoverflow.com/questions/3305862/uiimage-created-from-cmsamplebufferref-not-displayed-in-uiimageview

which a AVCaptureVideoDataOutputSampleBufferDelegate has to implement void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection Create a UIImage from the sample buffer data.. Delegate routine that is called when a sample buffer was written void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection ... just an example of how to get an image..

Simultaneous AVCaptureVideoDataOutput and AVCaptureMovieFileOutput

http://stackoverflow.com/questions/3968879/simultaneous-avcapturevideodataoutput-and-avcapturemoviefileoutput

NSArray connections error NSError error NSLog @ end record void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection do stuff with sampleBuffer I should add i am..

This code to write video+audio through AVAssetWriter and AVAssetWriterInputs is not working. Why?

http://stackoverflow.com/questions/4149963/this-code-to-write-videoaudio-through-avassetwriter-and-avassetwriterinputs-is

NSLog @ video recording stopped And finally the CaptureOutput code void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection if CMSampleBufferDataIsReady sampleBuffer ..

Applying Effect to iPhone Camera Preview “Video”

http://stackoverflow.com/questions/4893620/applying-effect-to-iphone-camera-preview-video

of the preview video . First I get the UIImage result of imageFromSampleBuffer on the sample buffer from captureOutput didOutputSampleBuffer fromConnection . Then I scale and rotate it for the screen using a CGGraphicsContext. At this point the frame rate is already.. I am not sure how much it is actually helping. Basically every 8 10 frames a flag is set that signals captureOutput didOutputSampleBuffer fromConnection to return right away rather than process the frame. The flag is reset after a sync operation on the output.. share improve this question To prevent the memory issues simply create an autorelease pool in captureOutput didOutputSampleBuffer fromConnection . This makes sense since imageFromSampleBuffer returns an autoreleased UIImage object. Plus it frees up any..

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

http://stackoverflow.com/questions/4944083/can-use-avcapturevideodataoutput-and-avcapturemoviefileoutput-at-the-same-time

kCMTimeZero captureSession startRunning ... elsewhere ... void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer..

Uploading live streaming video from iPhone [duplicate]

http://stackoverflow.com/questions/5062266/uploading-live-streaming-video-from-iphone

the output device's delegate here self has to implement the callback void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer.. asked how to do this without sending the frames to the server one by one. The answer is complex... Basically in the didOutputSampleBuffer function above you add the samples into an AVAssetWriter . I actually had three asset writers active at a time past present..

AVAssetWritter does not work with audio

http://stackoverflow.com/questions/5200077/avassetwritter-does-not-work-with-audio

the delegate for the audio @implementation AudioOutputBufferDelegate void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection conenction if normal_delegate recording CMSampleBufferSetOutputPresentationTimeStamp..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio

delegate's method is called with each new frame as a CVImageBuffer void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef pixelBuffer CMSampleBufferGetImageBuffer..

Having trouble creating UIImage from CIImage in iOS5

http://stackoverflow.com/questions/7788438/having-trouble-creating-uiimage-from-ciimage-in-ios5

framework. In my sample buffer delegate I have the following code void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVPixelBufferRef pb CMSampleBufferGetImageBuffer..

AVCaptureSession specify resolution and quality of captured images obj-c iphone app

http://stackoverflow.com/questions/9312832/avcapturesession-specify-resolution-and-quality-of-captured-images-obj-c-iphone

Delegate routine that is called when a sample buffer was written void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection NSLog @ captureOutput didOutputSampleBufferFromConnection.. CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection NSLog @ captureOutput didOutputSampleBufferFromConnection Create a UIImage from the sample buffer data self.currentImage self imageFromSampleBuffer sampleBuffer Add..

How can I mute the capture sound in AVFoundation?

http://stackoverflow.com/questions/9557081/how-can-i-mute-the-capture-sound-in-avfoundation

AVCaptureVideoDataOutput captureOutput AVCaptureVideoDataOutput alloc init While a frame is processes in captureOutput didOutputSampleBuffer fromConnection delegate methods no other frames are added in the queue. If you don't want this behaviour set the property.. can change it to your need #pragma mark AVCaptureSession delegate void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection We create an autorelease pool because as we..