iphone Programming Glossary: cmsamplebufferref
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 here self has to implement the callback void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer..
how to convert a CVImageBufferRef to UIImage http://stackoverflow.com/questions/3152259/how-to-convert-a-cvimagebufferref-to-uiimage to a UIImage that i can then view in my app. void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer..
ASSETWriterInput for making Video from UIImages on Iphone Issues http://stackoverflow.com/questions/3983882/assetwriterinput-for-making-video-from-uiimages-on-iphone-issues NULL avAdaptor appendPixelBufferixelBuffer withPresentationTime CMTimeMake 1 10 2 Making the Create sample buffer. CMSampleBufferRef sampleBuffer NULL result CMSampleBufferCreateForImageBuffer kCFAllocatorDef ault pixelBuffer true NULL NULL videoInfo timing..
Reading samples via AVAssetReader http://stackoverflow.com/questions/4049207/reading-samples-via-avassetreader asset_reader addOutput asset_reader_output Kick off the asset reader asset_reader startReading Read off the samples CMSampleBufferRef buffer while asset_reader status AVAssetReaderStatusReading buffer asset_reader_output copyNextSampleBuffer share improve..
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 stopped And finally the CaptureOutput code void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection if CMSampleBufferDataIsReady sampleBuffer NSLog @ sample buffer.. output file gets corrupted and it cannot be reproduced else self newAudioSample sampleBuffer void newVideoSample CMSampleBufferRef sampleBuffer if _isRecording if _videoWriter.status AVAssetWriterStatusWriting NSLog @ Warning writer status is d _videoWriter.status.. if _videoWriterInput appendSampleBuffer sampleBuffer NSLog @ Unable to write to video input void newAudioSample CMSampleBufferRef sampleBuffer if _isRecording if _videoWriter.status AVAssetWriterStatusWriting NSLog @ Warning writer status is d _videoWriter.status..
Extract iPod Library raw PCM samples and play with sound effects http://stackoverflow.com/questions/4796643/extract-ipod-library-raw-pcm-samples-and-play-with-sound-effects all. The code below is as far as I have gotten with this. I am at a point now where I do not know what to do with the CMSampleBufferRef's in my while loop because I do not know which framework to use in order to playback the audio and apply such effects. Any.. NSLog @ Incompatible Asser Reader Output return assetReader addOutput assetReaderOutput assetReader startReading CMSampleBufferRef nextBuffer while nextBuffer assetReaderOutput copyNextSampleBuffer What Do I Do Here assetReader release assetReaderOutput.. AVAssetReaderTrackOutput trackOutput AVAssetReaderTrackOutput reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef trackOutput copyNextSampleBuffer if sampleBufferRef CMBlockBufferRef blockBufferRef CMSampleBufferGetDataBuffer..
Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time? http://stackoverflow.com/questions/4944083/can-use-avcapturevideodataoutput-and-avcapturemoviefileoutput-at-the-same-time captureSession startRunning ... elsewhere ... void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer..
Drawing waveform with AVAssetReader http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader many ways I can cut it I can make some precessing with this but... I really don't understand what I gonna do with this CMSampleBufferRef to get data for drawing waveform I need info about peak values how I can get it this maybe another way AVAssetTrack songTrack.. AVAssetReaderTrackOutput trackOutput AVAssetReaderTrackOutput reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef trackOutput copyNextSampleBuffer if sampleBufferRef what I gonna do with this Please help me iphone objective.. AVAssetReaderTrackOutput trackOutput AVAssetReaderTrackOutput reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef trackOutput copyNextSampleBuffer if sampleBufferRef CMBlockBufferRef blockBufferRef CMSampleBufferGetDataBuffer..
Uploading live streaming video from iPhone [duplicate] http://stackoverflow.com/questions/5062266/uploading-live-streaming-video-from-iphone here self has to implement the callback void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef imageBuffer CMSampleBufferGetImageBuffer sampleBuffer..
Turning an iPhone or iPod into a wireless webcam http://stackoverflow.com/questions/5258696/turning-an-iphone-or-ipod-into-a-wireless-webcam provided good documentation and examples API link . Make sure you check out their example in the end as you will get a CMSampleBufferRef data object back. For the second and third part you should check out the CFNetwork framework and specially CFFTPStream for..
Make movie file with picture Array and song file, using AVAsset http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset Writer ready d audioWriterInput.readyForMoreMediaData while audioWriterInput.readyForMoreMediaData NSLog @ Ready CMSampleBufferRef nextBuffer readerOutput copyNextSampleBuffer if nextBuffer NSLog @ NextBuffer audioWriterInput appendSampleBuffer nextBuffer..
iOS CVImageBuffer distorted from AVCaptureSessionDataOutput with AVCaptureSessionPresetPhoto http://stackoverflow.com/questions/6540710/ios-cvimagebuffer-distorted-from-avcapturesessiondataoutput-with-avcapturesessio called with each new frame as a CVImageBuffer void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVImageBufferRef pixelBuffer CMSampleBufferGetImageBuffer sampleBuffer..
iPhone Watermark on recorded Video. http://stackoverflow.com/questions/7205820/iphone-watermark-on-recorded-video code. But the examples there won't work on their own so see the first link. AVCaptureDataOutput will return images as CMSampleBufferRef s. Convert them to CGImageRef s using this code CGImageRef imageFromSampleBuffer CMSampleBufferRef sampleBuffer Create a.. return images as 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..
Having trouble creating UIImage from CIImage in iOS5 http://stackoverflow.com/questions/7788438/having-trouble-creating-uiimage-from-ciimage-in-ios5 buffer delegate I have the following code void captureOutput AVCaptureOutput captureOutput didOutputSampleBuffer CMSampleBufferRef sampleBuffer fromConnection AVCaptureConnection connection CVPixelBufferRef pb CMSampleBufferGetImageBuffer sampleBuffer..
|