iphone Programming Glossary: fromconnection
iOS: Get pixel-by-pixel data from camera http://stackoverflow.com/questions/10865100/ios-get-pixel-by-pixel-data-from-camera 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 within it that..
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 callback void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize..
how to convert a CVImageBufferRef to UIImage http://stackoverflow.com/questions/3152259/how-to-convert-a-cvimagebufferref-to-uiimage view in my app. void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the image buffer..
UIImage created from CMSampleBufferRef not displayed in UIImageView? http://stackoverflow.com/questions/3305862/uiimage-created-from-cmsamplebufferref-not-displayed-in-uiimageview has to implement void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection Create a UIImage from the sample buffer data UIImage theImage self imageFromSampleBuffer.. was written void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection ... just an example of how to get an image out of this ... CGImageRef cgImage self imageFromSampleBuffer..
Simultaneous AVCaptureVideoDataOutput and AVCaptureMovieFileOutput http://stackoverflow.com/questions/3968879/simultaneous-avcapturevideodataoutput-and-avcapturemoviefileoutput autorelease void captureOutput AVCaptureFileOutput captureOutput didStartRecordingToOutputFileAtURL NSURL fileURL fromConnections NSArray connections NSLog @ start record video void captureOutput AVCaptureFileOutput captureOutput didFinishRecordingToOutputFileAtURL.. video void captureOutput AVCaptureFileOutput captureOutput didFinishRecordingToOutputFileAtURL NSURL outputFileURL fromConnections NSArray connections error NSError error NSLog @ end record void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer.. @ end record void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection do stuff with sampleBuffer I should add i am getting the error Error Domain NSOSStatusErrorDomain..
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 code void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection if CMSampleBufferDataIsReady sampleBuffer NSLog @ sample buffer is not ready. Skipping sample..
Applying Effect to iPhone Camera Preview “Video” http://stackoverflow.com/questions/4893620/applying-effect-to-iphone-camera-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 under the.. 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 dispatch queue.. 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 autoreleased..
Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time? http://stackoverflow.com/questions/4944083/can-use-avcapturevideodataoutput-and-avcapturemoviefileoutput-at-the-same-time elsewhere ... void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer a very dense way to..
Uploading live streaming video from iPhone [duplicate] http://stackoverflow.com/questions/5062266/uploading-live-streaming-video-from-iphone the callback void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize..
AVAssetWritter does not work with audio http://stackoverflow.com/questions/5200077/avassetwritter-does-not-work-with-audio void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection conenction if normal_delegate recording CMSampleBufferSetOutputPresentationTimeStamp sampleBuffer CMTimeMakeWithSeconds..
iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio a CVImageBuffer void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef pixelBuffer CMSampleBufferGetImageBuffer sampleBuffer self.delegate processNewCameraFrame..
Having trouble creating UIImage from CIImage in iOS5 http://stackoverflow.com/questions/7788438/having-trouble-creating-uiimage-from-ciimage-in-ios5 following code void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVPixelBufferRef pb CMSampleBufferGetImageBuffer sampleBuffer CIImage ciImage CIImage imageWithCVPixelBuffer..
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 was written void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection NSLog @ captureOutput didOutputSampleBufferFromConnection Create a UIImage from the sample..
How can I mute the capture sound in AVFoundation? http://stackoverflow.com/questions/9557081/how-can-i-mute-the-capture-sound-in-avfoundation 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 to NO captureOutput.alwaysDiscardsLateVideoFrames.. delegate void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection We create an autorelease pool because as we are not in the main_queue our code is not executed..
|