iphone Programming Glossary: sourcepixelbufferattributes
Merge Two Video files in iPhone Application http://stackoverflow.com/questions/10071029/merge-two-video-files-in-iphone-application adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes nil NSParameterAssert writerInput NSParameterAssert videoWriter canAddInput writerInput videoWriter addInput writerInput..
Creating 16:9 Video Rather than 4:3 - AVAsset Writer - iPhone http://stackoverflow.com/questions/10358086/creating-169-video-rather-than-43-avasset-writer-iphone AVAssetWriterInput assetWriterInputWithMediaType AVMediaTypeVideo outputSettings videoSettings NSDictionary sourcePixelBufferAttributesDictionary NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32ARGB kCVPixelBufferPixelFormatTypeKey.. adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary NSParameterAssert writerInput NSParameterAssert videoWriter canAddInput writerInput.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary NSParameterAssert writerInput NSParameterAssert videoWriter canAddInput writerInput if videoWriter canAddInput..
Writing video + generated audio to AVAssetWriterInput, audio stuttering http://stackoverflow.com/questions/12187124/writing-video-generated-audio-to-avassetwriterinput-audio-stuttering avAdaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes bufferAttributes retain videoWriter addInput videoWriterInput pb Added audio input. sample_position_ 0 AudioChannelLayout..
Convert UIImage to CMSampleBufferRef http://stackoverflow.com/questions/16475737/convert-uiimage-to-cmsamplebufferref pixelBufferAdapter AVAssetWriterInputPixelBufferAdaptor alloc initWithAssetWriterInput assetWriterInput sourcePixelBufferAttributes inputSettingsDict You can then append CVPixelBuffers to your adaptor pixelBufferAdapter appendPixelBuffer completePixelBuffer..
ASSETWriterInput for making Video from UIImages on Iphone Issues http://stackoverflow.com/questions/3983882/assetwriterinput-for-making-video-from-uiimages-on-iphone-issues avAdaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes NULL avAdaptor appendPixelBufferixelBuffer withPresentationTime CMTimeMake 1 10 2 Making the Create sample buffer. CMSampleBufferRef.. adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes nil NSParameterAssert writerInput NSParameterAssert videoWriter canAddInput writerInput videoWriter addInput writerInput..
Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time? http://stackoverflow.com/questions/4944083/can-use-avcapturevideodataoutput-and-avcapturemoviefileoutput-at-the-same-time pixelBufferAdaptor AVAssetWriterInputPixelBufferAdaptor alloc initWithAssetWriterInput assetWriterInput sourcePixelBufferAttributes NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32BGRA kCVPixelBufferPixelFormatTypeKey..
AVAssetWritter does not work with audio http://stackoverflow.com/questions/5200077/avassetwritter-does-not-work-with-audio av_adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput writer_input sourcePixelBufferAttributes NULL retain video_writer addInput writer_input video_writer addInput audio_writer_input video_writer startWriting video_writer..
AVFoundation + AssetWriter: Generate Movie With Images and Audio http://stackoverflow.com/questions/5640657/avfoundation-assetwriter-generate-movie-with-images-and-audio AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes nil NSParameterAssert videoWriterInput NSParameterAssert videoWriter canAddInput videoWriterInput videoWriterInput.expectsMediaDataInRealTime..
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 AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes nil AVAssetTrack audioTrack asset.tracks objectAtIndex 0 AVAssetReaderOutput readerOutput AVAssetReaderTrackOutput assetReaderTrackOutputWithTrack.. AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes nil NSParameterAssert videoWriterInput NSParameterAssert videoWriter canAddInput videoWriterInput videoWriterInput.expectsMediaDataInRealTime..
AVAssetWriter Woes http://stackoverflow.com/questions/6189535/avassetwriter-woes adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes nil retain CVPixelBufferPoolCreate kCFAllocatorSystemDefault NULL CFDictionaryRef bufferAttributes pixelBufferPool Create.. AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput _videoWriterInput sourcePixelBufferAttributes bufferAttributes Then remove that call to CVPixelBufferPoolCreate there's already a pixel buffer pool created in the adaptor..
How to keep iphone ios xmpp connection alive while in the background? http://stackoverflow.com/questions/8261135/how-to-keep-iphone-ios-xmpp-connection-alive-while-in-the-background
AVCaptureSession only got video buffer http://stackoverflow.com/questions/9257052/avcapturesession-only-got-video-buffer addInput videoWriterInput videoWriter addInput audioWriterInput The code of starting the capture NSDictionary sourcePixelBufferAttributesDictionary NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32ARGB NSNumber numberWithInt.. AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary retain NSLog @ Adaptor init finished. Going to start capture Session... We start the.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary retain NSLog @ Adaptor init finished. Going to start capture Session... We start the capture self.captureSession..
Faster alternative to glReadPixels in iPhone OpenGL ES 2.0 http://stackoverflow.com/questions/9550297/faster-alternative-to-glreadpixels-in-iphone-opengl-es-2-0 input and configuring a pixel buffer input. The following code is used to set up the pixel buffer input NSDictionary sourcePixelBufferAttributesDictionary NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32BGRA kCVPixelBufferPixelFormatTypeKey.. AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput assetWriterVideoInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary Once I have that I configure the FBO that I'll be rendering my video frames to using.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput assetWriterVideoInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary Once I have that I configure the FBO that I'll be rendering my video frames to using the following code if GPUImageOpenGLESContext..
Record the drawing as a m4v video file - OpenGL http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl I use a color swizzling shader to line up glReadPixels' normal RGBA output with the movie input's BGRA. NSDictionary sourcePixelBufferAttributesDictionary NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kCVPixelFormatType_32BGRA kCVPixelBufferPixelFormatTypeKey.. AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput assetWriterVideoInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary assetWriter addInput assetWriterVideoInput and begin recording with the following.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput assetWriterVideoInput sourcePixelBufferAttributes sourcePixelBufferAttributesDictionary assetWriter addInput assetWriterVideoInput and begin recording with the following startTime NSDate date assetWriter..
|