¡@

Home 

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

iphone Programming Glossary: avmutablevideocomposition

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

6 You may need to adjust this for proper display parentLayer addSublayer titleLayer ONLY IF WE ADDED TEXT AVMutableVideoComposition videoComp AVMutableVideoComposition videoComposition videoComp.renderSize videoSize videoComp.frameDuration CMTimeMake 1.. this for proper display parentLayer addSublayer titleLayer ONLY IF WE ADDED TEXT AVMutableVideoComposition videoComp AVMutableVideoComposition videoComposition videoComp.renderSize videoSize videoComp.frameDuration CMTimeMake 1 30 videoComp.animationTool AVVideoCompositionCoreAnimationTool.. videoCompositionCoreAnimationToolWithPostProcessingAsVideoLayer videoLayer inLayer parentLayer AVMutableVideoCompositionInstruction instruction AVMutableVideoCompositionInstruction videoCompositionInstruction instruction.timeRange CMTimeRangeMake..

Recording custom overlay on iPhone

http://stackoverflow.com/questions/2443564/recording-custom-overlay-on-iphone

possible on the iPhone the capability can be found in the AVFoundation framework. The classes of interest to you are AVMutableVideoComposition and AVVideoCompositionCoreAnimationTool. Using the AVMutableVideoComposition's animationTool property you can use a AVVideoCompositionCoreAnimationTool.. The classes of interest to you are AVMutableVideoComposition and AVVideoCompositionCoreAnimationTool. Using the AVMutableVideoComposition's animationTool property you can use a AVVideoCompositionCoreAnimationTool to add a Core Animation layer on top of your..

how to control orientation of video assembled with AVMutableComposition

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

touch video html5 avfoundation share improve this question Setup a video composition that will handle rotate scale AVMutableVideoComposition videoComposition AVMutableVideoComposition videoComposition retain videoComposition.renderSize CGSizeMake 320 240 videoComposition.frameDuration.. this question Setup a video composition that will handle rotate scale AVMutableVideoComposition videoComposition AVMutableVideoComposition videoComposition retain videoComposition.renderSize CGSizeMake 320 240 videoComposition.frameDuration CMTimeMake 1 30 AVMutableVideoCompositionInstruction.. videoComposition retain videoComposition.renderSize CGSizeMake 320 240 videoComposition.frameDuration CMTimeMake 1 30 AVMutableVideoCompositionInstruction instruction AVMutableVideoCompositionInstruction videoCompositionInstruction instruction.timeRange CMTimeRangeMake..

CoreAnimation, AVFoundation and ability to make Video export

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

layer videoLayer.frame CGRectMake 0 0 1024 768 wrapLayer addSublayer animationLayer wrapLayer addSublayer videoLayer AVMutableVideoComposition videoComposition AVMutableVideoComposition videoComposition AVMutableVideoCompositionInstruction videoCompositionInstruction.. 768 wrapLayer addSublayer animationLayer wrapLayer addSublayer videoLayer AVMutableVideoComposition videoComposition AVMutableVideoComposition videoComposition AVMutableVideoCompositionInstruction videoCompositionInstruction AVMutableVideoCompositionInstruction videoCompositionInstruction.. wrapLayer addSublayer videoLayer AVMutableVideoComposition videoComposition AVMutableVideoComposition videoComposition AVMutableVideoCompositionInstruction videoCompositionInstruction AVMutableVideoCompositionInstruction videoCompositionInstruction videoCompositionInstruction.timeRange..

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.. composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVMutableVideoComposition videoComposition AVMutableVideoComposition videoComposition videoComposition.frameDuration CMTimeMake 1 30 videoComposition.renderScale.. AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVMutableVideoComposition videoComposition AVMutableVideoComposition videoComposition videoComposition.frameDuration CMTimeMake 1 30 videoComposition.renderScale 1.0 AVMutableVideoCompositionInstruction..