¡@

Home 

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

iphone Programming Glossary: adaptor

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

AVAssetReader assetReaderWithAsset asset error error retain AVAssetWriterInputPixelBufferAdaptor adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput.. objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j CMTime frameTime.. frameTime CMTimeMake frameCount int32_t 10 CVPixelBufferPoolCreatePixelBuffer kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef..

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

fileURL options nil retain AVAssetReader audioReader AVAssetReader assetReaderWithAsset asset error error retain AVAssetWriterInputPixelBufferAdaptor adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes nil AVAssetTrack.. 0 for int i 0 i 20 i buffer self pixelBufferFromCGImage m_PictArray objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t 10 CVPixelBufferPoolCreatePixelBuffer.. printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t 10 CVPixelBufferPoolCreatePixelBuffer kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef bufferPool adaptor.pixelBufferPool NSParameterAssert..

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

destSurf 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.. such an issue before as well. I suppose there can be 2 reasons for this i. The PixelBuffer that is passed to the adaptor is getting modified or released before the processing encoding writing is complete. This can be due to asynchronous calls...

ASSETWriterInput for making Video from UIImages on Iphone Issues

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

AVMediaTypeVideo outputSettings videoSettings retain AVAssetWriterInputPixelBufferAdaptor adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes.. kCMTimeZero Write samples CVPixelBufferRef buffer Utils pixelBufferFromCGImage image.CGImage size size adaptor appendPixelBuffer buffer withPresentationTime kCMTimeZero adaptor appendPixelBuffer buffer withPresentationTime CMTimeMake.. Utils pixelBufferFromCGImage image.CGImage size size adaptor appendPixelBuffer buffer withPresentationTime kCMTimeZero adaptor appendPixelBuffer buffer withPresentationTime CMTimeMake duration 1 2 Finish the session writerInput markAsFinished videoWriter..

Can use AVCaptureVideoDataOutput and AVCaptureMovieFileOutput at the same time?

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

audio. I end up getting CMSampleBuffers from the capture session and then pushing them into the pixel buffer adaptor. EDIT so my code looks more or less like with the bits you're having no problems with skimmed over and ignoring issues of..

AVAssetWritter does not work with audio

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

temp_url self @selector video didFinishSavingWithError contextInfo nil start_time release temp_url release av_adaptor release microphone lockForConfiguration nil session beginConfiguration session removeInput microphone_input session removeOutput.. dataWithBytes acl length sizeof acl AVChannelLayoutKey nil retain audio_writer_input.expectsMediaDataInRealTime YES av_adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput writer_input sourcePixelBufferAttributes.. CMTime pt CMSampleBufferGetPresentationTimeStamp sampleBuffer flipBuffer sampleBuffer pixelBuffer if bufferWriter adaptor appendPixelBuffer pixelBuffer withPresentationTime pt self delegateMessage @ Video Writing Error withType ERROR @catch..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

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

AVMediaTypeVideo outputSettings videoSettings retain AVAssetWriterInputPixelBufferAdaptor adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes.. buffer self pixelBufferFromCGImage img CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount.. printf 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..

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

audioReader AVAssetReader assetReaderWithAsset asset error error retain AVAssetWriterInputPixelBufferAdaptor adaptor AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes.. m_PictArray objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount.. j CMTime frameTime CMTimeMake frameCount int32_t 10 CVPixelBufferPoolCreatePixelBuffer kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef..

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..

How To implement a sqlite database in phonegap

http://stackoverflow.com/questions/6647474/how-to-implement-a-sqlite-database-in-phonegap

src webkit sqlite.js charset utf 8 script Open local DB connection var lawnchair new Lawnchair table 'mytable' adaptor 'webkit' function Lawnchair setup Getting some data out of the lawnchair database lawnchair.get 'my_data_key' function obj..