¡@

Home 

2014/10/15 ¤U¤È 10:15:59

iphone Programming Glossary: withpresentationtime

Merge Two Video files in iPhone Application

http://stackoverflow.com/questions/10071029/merge-two-video-files-in-iphone-application

1.jpeg CGImage CVPixelBufferPoolCreatePixelBuffer NULL adaptor.pixelBufferPool buffer adaptor appendPixelBuffer buffer withPresentationTime kCMTimeZero for int i 0 i 2 i if writerInput isReadyForMoreMediaData NSLog @ inside for loop d i for int pframetime 1 pframetime.. while writerInput isReadyForMoreMediaData NSThread sleepForTimeInterval 0.05 adaptor appendPixelBuffer buffer withPresentationTime presentTime i if buffer CVBufferRelease buffer NSThread sleepForTimeInterval 0.1 writerInput markAsFinished videoWriter..

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

theImage size size if buffer if adaptor.assetWriterInput.readyForMoreMediaData if adaptor appendPixelBuffer buffer withPresentationTime CMTimeMake frame 20 NSLog @ FAIL else NSLog @ Success d frame CFRelease buffer writerInput markAsFinished videoWriter..

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

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 of code are the most relevant if you..

ASSETWriterInput for making Video from UIImages on Iphone Issues

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

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

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

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

int64_t frameNumber 0 if assetWriterInput.readyForMoreMediaData pixelBufferAdaptor appendPixelBuffer imageBuffer withPresentationTime CMTimeMake frameNumber 25 frameNumber ... and to stop ensuring the output file is finished properly ... captureSession stopRunning..

AVAssetWritter does not work with audio

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

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

AVFoundation + AssetWriter: Generate Movie With Images and Audio

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

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 adaptor not ready d d n..

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

kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef bufferPool adaptor.pixelBufferPool NSParameterAssert bufferPool NULL NSThread sleepForTimeInterval.. 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 NULL NSThread sleepForTimeInterval.. 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 NULL NSThread sleepForTimeInterval..

AVAssetWriter Woes

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

CMTimeAdd lastTime frameTime buffer self pixelBufferFromCGImage image BOOL success adaptor appendPixelBuffer buffer withPresentationTime presentTime if success NSLog @ Failed to appendPixelBuffer CVPixelBufferRelease buffer presentTime CMTimeAdd lastTime CMTimeMake.. pixelBuffer 0 CMTime frameTime CMTimeMake frameCount int32_t 30 BOOL res adaptor appendPixelBuffer pixelBuffer withPresentationTime frameTime CVPixelBufferRelease pixelBuffer CFRelease sampleBuffer I think that should do it I've had a similar error at..

iOS video streaming and storing on device afterwards

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

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 this method. There..

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

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

Record the drawing as a m4v video file - OpenGL

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

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