iphone Programming Glossary: asset_reader_output
Reading samples via AVAssetReader http://stackoverflow.com/questions/4049207/reading-samples-via-avassetreader than ARGB for instance . Construct the actual track output and add it to the asset reader AVAssetReaderTrackOutput asset_reader_output AVAssetReaderTrackOutput alloc initWithTrack video_track outputSettings dictionary asset_reader addOutput asset_reader_output.. AVAssetReaderTrackOutput alloc initWithTrack video_track outputSettings dictionary asset_reader addOutput asset_reader_output Kick off the asset reader asset_reader startReading Read off the samples CMSampleBufferRef buffer while asset_reader status..
Video Encoding using AVAssetWriter - CRASHES http://stackoverflow.com/questions/8191840/video-encoding-using-avassetwriter-crashes kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange forKey id kCVPixelBufferPixelFormatTypeKey AVAssetReaderTrackOutput asset_reader_output AVAssetReaderTrackOutput alloc initWithTrack videoTrack outputSettings videoOptions reader addOutput asset_reader_output.. AVAssetReaderTrackOutput alloc initWithTrack videoTrack outputSettings videoOptions reader addOutput asset_reader_output audio setup AVAssetWriterInput audioWriterInput AVAssetWriterInput assetWriterInputWithMediaType AVMediaTypeAudio outputSettings.. isReadyForMoreMediaData CMSampleBufferRef sampleBuffer if reader status AVAssetReaderStatusReading sampleBuffer asset_reader_output copyNextSampleBuffer BOOL result videoWriterInput appendSampleBuffer sampleBuffer CFRelease sampleBuffer if result reader..
|