Take the 2-minute tour ×  I have the following
AVAssetWriterInputPixelBufferAdaptor:  NSMutableDictionary
*attributes = [[NSMutableDictionary alloc] init]; [attributes
setObject:[NSNumber numberWithUnsignedInt:kCVPixelFormatType_420
YpCbCr8BiPlanarVideoRange]
forKey:(NSString*)kCVPixelBufferPixelFormatTypeKey]; [attributes
setObject:[NSNumber numberWithUnsignedInt:frameSize.width]
forKey:(NSString*)kCVPixelBufferWidthKey]; [attributes
setObject:[NSNumber numberWithUnsignedInt:frameSize.height]
forKey:(NSString*)kCVPixelBufferHeightKey];  adaptor =
[AVAssetWriterInputPixelBufferAdaptor assetWriterInputPixelBuffe
rAdaptorWithAssetWriterInput:writerInput
sourcePixelBufferAttributes:attributes];  And I am trying to
append a pixel buffer created from 2 planes (video format type
kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange) using the
following:  //Pixel buffer CVPixelBufferRef buffer = NULL;
/*Pixel options*/ NSDictionary *options = [NSDictionary
dictionaryWithObjectsAndKeys:                        [NSNumber
nu