¡@

Home 

2014/10/15 ¤U¤È 10:05:53

iphone Programming Glossary: cvpixelbufferpoolcreate

AVAssetWriter Woes

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

recommended AVAssetWriterInputPixelBufferAdaptor and then pull pixel buffers from the adaptors pixelBufferPool with CVPixelBufferPoolCreatePixelBuffer. That also works on the simulator but fails on the device because the adaptor's pixel buffer pool is never allocated... buffer pool is never allocated. I get no error messages. Lastly I attempted to create by own pixel buffer pool with CVPixelBufferPoolCreate. That also works in the simulator but on the device everything works fine until I try to append the pixel buffer with appendPixelBuffer.. assetWriterInputPixelBufferAdaptorWithAssetWriterInput writerInput sourcePixelBufferAttributes nil retain CVPixelBufferPoolCreate kCFAllocatorSystemDefault NULL CFDictionaryRef bufferAttributes pixelBufferPool Create buffer pool NSMutableDictionary attributes..