¡@

Home 

2014/10/15 ¤U¤È 10:13:38

iphone Programming Glossary: samplebuffer

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

has to implement the callback void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize.. sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize imageBuffer also in the 'mediaSpecific' dict of the sampleBuffer NSLog @ frame.. sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize imageBuffer also in the 'mediaSpecific' dict of the sampleBuffer NSLog @ frame captured at .fx .f imageSize.width imageSize.height EDIT UPDATE Several people have asked how to do this without..

how to convert a CVImageBufferRef to UIImage

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

i can then view in my app. void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock.. sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer Lock the image buffer CVPixelBufferLockBaseAddress imageBuffer 0 Get information about the image uint8_t baseAddress uint8_t..

How do I export UIImage array as a movie?

http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie

the writer input data from a CVPixelBuffer that ™s quite easy to create from a CGImage. writerInput appendSampleBuffer sampleBuffer 4 Finish the session writerInput markAsFinished videoWriter endSessionAtSourceTime ¦] videoWriter finishWriting You ™ll still..

ASSETWriterInput for making Video from UIImages on Iphone Issues

http://stackoverflow.com/questions/3983882/assetwriterinput-for-making-video-from-uiimages-on-iphone-issues

appendPixelBufferixelBuffer withPresentationTime CMTimeMake 1 10 2 Making the Create sample buffer. CMSampleBufferRef sampleBuffer NULL result CMSampleBufferCreateForImageBuffer kCFAllocatorDef ault pixelBuffer true NULL NULL videoInfo timing sampleBuffer.. NULL result CMSampleBufferCreateForImageBuffer kCFAllocatorDef ault pixelBuffer true NULL NULL videoInfo timing sampleBuffer Ship out the frame. NSParameterAssert CMSampleBufferDataIsReady sample Buffer NSParameterAssert writerInput isReadyForMoreMediaData.. sample Buffer NSParameterAssert writerInput isReadyForMoreMediaData BOOL success writerInput appendSampleBuffer sampleBuffer iphone image video avfoundation share improve this question I found that for some reason I needed to append the buffer..

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.. sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer a very dense way to keep track of the time at which this frame occurs relative to the output stream but it's just an example..

Uploading live streaming video from iPhone [duplicate]

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

has to implement the callback void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize.. sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize imageBuffer also in the 'mediaSpecific' dict of the sampleBuffer NSLog @ frame.. sampleBuffer CGSize imageSize CVImageBufferGetEncodedSize imageBuffer also in the 'mediaSpecific' dict of the sampleBuffer NSLog @ frame captured at .fx .f imageSize.width imageSize.height EDIT UPDATE Several people have asked how to do this without..

Problem setting exif data for an image

http://stackoverflow.com/questions/5125323/problem-setting-exif-data-for-an-image

in iOS 4.1. I successfully retrieve the exif metadata using the following CFDictionaryRef metadataDict CMGetAttachment sampleBuffer kCGImagePropertyExifDictionary NULL Reading it out it appears valid. Saving an image out works but there is never any exif..

iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto

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

new frame as a CVImageBuffer void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef pixelBuffer CMSampleBufferGetImageBuffer sampleBuffer self.delegate.. sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef pixelBuffer CMSampleBufferGetImageBuffer sampleBuffer self.delegate processNewCameraFrame pixelBuffer 6 Then the delegate processes draws them void processNewCameraFrame CVImageBufferRef..

iPhone Watermark on recorded Video.

http://stackoverflow.com/questions/7205820/iphone-watermark-on-recorded-video

CMSampleBufferRef s. Convert them to CGImageRef s using this code CGImageRef imageFromSampleBuffer CMSampleBufferRef sampleBuffer Create a CGImageRef from sample buffer data CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CVPixelBufferLockBaseAddress.. sampleBuffer Create a CGImageRef from sample buffer data CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer CVPixelBufferLockBaseAddress imageBuffer 0 Lock the image buffer uint8_t baseAddress uint8_t CVPixelBufferGetBaseAddressOfPlane..

Having trouble creating UIImage from CIImage in iOS5

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

I have the following code void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVPixelBufferRef pb CMSampleBufferGetImageBuffer sampleBuffer CIImage ciImage.. sampleBuffer fromConnection AVCaptureConnection connection CVPixelBufferRef pb CMSampleBufferGetImageBuffer sampleBuffer CIImage ciImage CIImage imageWithCVPixelBuffer pb self.imageView.image UIImage imageWithCIImage ciImage I am able to use..