¡@

Home 

2014/10/15 ¤U¤È 10:04:29

iphone Programming Glossary: avmutablevideocompositionlayerinstruction

How can I add overlay text on a video, then re-encode it?

http://stackoverflow.com/questions/10190333/how-can-i-add-overlay-text-on-a-video-then-re-encode-it

mixComposition duration AVAssetTrack videoTrack mixComposition tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 AVMutableVideoCompositionLayerInstruction layerInstruction AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack videoTrack instruction.layerInstructions.. tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 AVMutableVideoCompositionLayerInstruction layerInstruction AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack videoTrack instruction.layerInstructions NSArray arrayWithObject layerInstruction..

how to control orientation of video assembled with AVMutableComposition

http://stackoverflow.com/questions/4175060/how-to-control-orientation-of-video-assembled-with-avmutablecomposition

videoCompositionInstruction instruction.timeRange CMTimeRangeMake kCMTimeZero CMTimeMakeWithSeconds 60 30 AVMutableVideoCompositionLayerInstruction rotator AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack asset tracksWithMediaType.. CMTimeRangeMake kCMTimeZero CMTimeMakeWithSeconds 60 30 AVMutableVideoCompositionLayerInstruction rotator AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack asset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 CGAffineTransform..

CoreAnimation, AVFoundation and ability to make Video export

http://stackoverflow.com/questions/5031721/coreanimation-avfoundation-and-ability-to-make-video-export

CMTimeRangeMake kCMTimeZero CMTimeMake imagesFilePath count albumSettings transitionTime intValue 25 25 AVMutableVideoCompositionLayerInstruction layerInstruction AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstruction videoCompositionInstruction.layerInstructions.. count albumSettings transitionTime intValue 25 25 AVMutableVideoCompositionLayerInstruction layerInstruction AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstruction videoCompositionInstruction.layerInstructions NSArray arrayWithObject layerInstruction..

How to combine video clips with different orientation using AVFoundation

http://stackoverflow.com/questions/6575128/how-to-combine-video-clips-with-different-orientation-using-avfoundation

same orientation e.g. the orientation of the first clip while composing them. From what I read from the XCode document AVMutableVideoCompositionLayerInstruction seems can be used to transform AVAsset but I am not sure how to create and apply several different layer instruction to.. 1.0 AVMutableVideoCompositionInstruction instruction AVMutableVideoCompositionInstruction videoCompositionInstruction AVMutableVideoCompositionLayerInstruction layerInstruction AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack compositionVideoTrack.. videoCompositionInstruction AVMutableVideoCompositionLayerInstruction layerInstruction AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack compositionVideoTrack Get only paths the user selected NSMutableArray array..