¡@

Home 

2014/10/15 ¤U¤È 10:03:44

iphone Programming Glossary: appendpixelbuffer

IOSurfaces - Artefacts in video and unable to grab video surfaces

http://stackoverflow.com/questions/14135215/iosurfaces-artefacts-in-video-and-unable-to-grab-video-surfaces

IOSurfaceGetBytesPerRow destSurf NULL NULL NULL sampleBuffer CMTime frameTime CMTimeMake frameCount int32_t 5 adaptor appendPixelBuffer sampleBuffer withPresentationTime frameTime CFRelease sampleBuffer CFRelease destSurf frameCount P.S The last 4 5 lines..

ASSETWriterInput for making Video from UIImages on Iphone Issues

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

assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes NULL avAdaptor appendPixelBufferixelBuffer withPresentationTime CMTimeMake 1 10 2 Making the Create sample buffer. CMSampleBufferRef sampleBuffer NULL result.. kCMTimeZero Write samples CVPixelBufferRef buffer Utils pixelBufferFromCGImage image.CGImage size size adaptor appendPixelBuffer buffer withPresentationTime kCMTimeZero adaptor appendPixelBuffer buffer withPresentationTime CMTimeMake duration 1 2 Finish.. image.CGImage size size adaptor appendPixelBuffer buffer withPresentationTime kCMTimeZero adaptor appendPixelBuffer buffer withPresentationTime CMTimeMake duration 1 2 Finish the session writerInput markAsFinished videoWriter endSessionAtSourceTime..

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

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

but it's just an example static int64_t frameNumber 0 if assetWriterInput.readyForMoreMediaData pixelBufferAdaptor appendPixelBuffer imageBuffer withPresentationTime CMTimeMake frameNumber 25 frameNumber ... and to stop ensuring the output file is finished..

AVAssetWritter does not work with audio

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

pt CMSampleBufferGetPresentationTimeStamp sampleBuffer flipBuffer sampleBuffer pixelBuffer if bufferWriter adaptor appendPixelBuffer pixelBuffer withPresentationTime pt self delegateMessage @ Video Writing Error withType ERROR @catch NSException e..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

http://stackoverflow.com/questions/5640657/avfoundation-assetwriter-generate-movie-with-images-and-audio

appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t kRecordingFPS append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime if buffer CVBufferRelease buffer NSThread sleepForTimeInterval 0.05 else printf..

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

int32_t 10 CVPixelBufferPoolCreatePixelBuffer kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef bufferPool adaptor.pixelBufferPool NSParameterAssert bufferPool.. printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t 10 append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef bufferPool adaptor.pixelBufferPool NSParameterAssert bufferPool.. printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t 10 append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef bufferPool adaptor.pixelBufferPool NSParameterAssert bufferPool..

AVAssetWriter Woes

http://stackoverflow.com/questions/6189535/avassetwriter-woes

That also works in the simulator but on the device everything works fine until I try to append the pixel buffer with appendPixelBuffer which fails every time. I've found very minimal info on this on the web. I've based my code on the examples I've found but.. above CMTime presentTime CMTimeAdd lastTime frameTime buffer self pixelBufferFromCGImage image BOOL success adaptor appendPixelBuffer buffer withPresentationTime presentTime if success NSLog @ Failed to appendPixelBuffer CVPixelBufferRelease buffer presentTime.. image BOOL success adaptor appendPixelBuffer buffer withPresentationTime presentTime if success NSLog @ Failed to appendPixelBuffer CVPixelBufferRelease buffer presentTime CMTimeAdd lastTime CMTimeMake 5 1000 lastTime presentTime else NSLog @ error writerInput..

iOS video streaming and storing on device afterwards

http://stackoverflow.com/questions/6290251/ios-video-streaming-and-storing-on-device-afterwards

and as soon as you receive data you should be able to append the data to the to the pixel buffer adaptor using appendPixelBuffer withPresentationTime not sure it will work for you but with some fiddling you should be able to adapt your input to match..

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

currentTime CMTimeMakeWithSeconds NSDate date timeIntervalSinceDate startTime 120 if assetWriterPixelBufferInput appendPixelBuffer pixel_buffer withPresentationTime currentTime NSLog @ Problem appending pixel buffer at time lld currentTime.value else..

Record the drawing as a m4v video file - OpenGL

http://stackoverflow.com/questions/9661259/record-the-drawing-as-a-m4v-video-file-opengl

currentTime CMTimeMakeWithSeconds NSDate date timeIntervalSinceDate startTime 120 if assetWriterPixelBufferInput appendPixelBuffer pixel_buffer withPresentationTime currentTime NSLog @ Problem appending pixel buffer at time lld currentTime.value else..