¡@

Home 

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

iphone Programming Glossary: cmtimerangemake

Merge Two Video files in iPhone Application

http://stackoverflow.com/questions/10071029/merge-two-video-files-in-iphone-application

range if i 0 CMTime start CMTimeMakeWithSeconds 0.0 600 CMTime duration CMTimeMakeWithSeconds 10.0 600 range CMTimeRangeMake start duration else CMTime start CMTimeMakeWithSeconds 10.0 600 range CMTimeRangeMake start anAsset.duration exportSession.timeRange.. 10.0 600 range CMTimeRangeMake start duration else CMTime start CMTimeMakeWithSeconds 10.0 600 range CMTimeRangeMake start anAsset.duration exportSession.timeRange range exportSession exportAsynchronouslyWithCompletionHandler ^ dispatch_async.. nil AVURLAsset videoAsset3 AVURLAsset alloc initWithURL video_inputFileUrl3 options nil CMTimeRange video_timeRange1 CMTimeRangeMake kCMTimeZero videoAsset1.duration AVMutableCompositionTrack a_compositionVideoTrack1 mixComposition addMutableTrackWithMediaType..

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

clipVideoTrack videoAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 compositionVideoTrack insertTimeRange CMTimeRangeMake kCMTimeZero videoAsset.duration ofTrack clipVideoTrack atTime kCMTimeZero error nil compositionVideoTrack setPreferredTransform.. instruction AVMutableVideoCompositionInstruction videoCompositionInstruction instruction.timeRange CMTimeRangeMake kCMTimeZero mixComposition duration AVAssetTrack videoTrack mixComposition tracksWithMediaType AVMediaTypeVideo objectAtIndex..

How can I overlap audio files and combine for iPhone in Xcode?

http://stackoverflow.com/questions/12628554/how-can-i-overlap-audio-files-and-combine-for-iphone-in-xcode

1 CMTime trackDuration songAsset.duration CMTime longestTime CMTimeMake 848896 44100 19.24 seconds CMTimeRange tRange CMTimeRangeMake startTime trackDuration Set Volume AVMutableAudioMixInputParameters trackMix AVMutableAudioMixInputParameters audioMixInputParametersWithTrack..

How to add audio to video file on iphone SDK

http://stackoverflow.com/questions/3440266/how-to-add-audio-to-video-file-on-iphone-sdk

AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid compositionCommentaryTrack insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset.duration ofTrack audioAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime kCMTimeZero.. AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid compositionVideoTrack insertTimeRange CMTimeRangeMake kCMTimeZero videoAsset.duration ofTrack videoAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 atTime kCMTimeZero..

how to control orientation of video assembled with AVMutableComposition

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

instruction AVMutableVideoCompositionInstruction videoCompositionInstruction instruction.timeRange CMTimeRangeMake kCMTimeZero CMTimeMakeWithSeconds 60 30 AVMutableVideoCompositionLayerInstruction rotator AVMutableVideoCompositionLayerInstruction..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

http://stackoverflow.com/questions/5640657/avfoundation-assetwriter-generate-movie-with-images-and-audio

AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid compositionVideoTrack insertTimeRange CMTimeRangeMake kCMTimeZero videoAsset.duration ofTrack videoAssetTrack atTime kCMTimeZero error error CMTime audioStartTime kCMTimeZero.. AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid compositionAudioTrack insertTimeRange CMTimeRangeMake kCMTimeZero urlAsset.duration ofTrack audioAssetTrack atTime audioStartTime error error audioStartTime CMTimeAdd audioStartTime..

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

AVURLAsset videoAsset AVURLAsset alloc initWithURL video_inputFileUrl options nil CMTimeRange video_timeRange CMTimeRangeMake kCMTimeZero videoAsset.duration AVMutableCompositionTrack a_compositionVideoTrack mixComposition addMutableTrackWithMediaType.. AVURLAsset audioAsset AVURLAsset alloc initWithURL audio_inputFileUrl options nil CMTimeRange audio_timeRange CMTimeRangeMake kCMTimeZero audioAsset.duration AVMutableCompositionTrack b_compositionAudioTrack mixComposition addMutableTrackWithMediaType..

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

0 compositionVideoTrack setPreferredTransform videoTrack.preferredTransform ok compositionVideoTrack insertTimeRange CMTimeRangeMake kCMTimeZero asset duration ofTrack videoTrack atTime startTime error nil ok compositionAudioTrack insertTimeRange CMTimeRangeMake.. kCMTimeZero asset duration ofTrack videoTrack atTime startTime error nil ok compositionAudioTrack insertTimeRange CMTimeRangeMake kCMTimeZero asset duration ofTrack audioTrack atTime startTime error nil startTime CMTimeAdd startTime asset duration export..

How to Show UIPickerView when selecting UITextField

http://stackoverflow.com/questions/7077258/how-to-show-uipickerview-when-selecting-uitextfield

Combining two .caf files on iPhone

http://stackoverflow.com/questions/7656512/combining-two-caf-files-on-iphone

1 CMTime trackDuration songAsset.duration CMTime longestTime CMTimeMake 848896 44100 19.24 seconds CMTimeRange tRange CMTimeRangeMake startTime trackDuration Set Volume AVMutableAudioMixInputParameters trackMix AVMutableAudioMixInputParameters audioMixInputParametersWithTrack..

iOS 5.0 crash when reading data from an AVAssetReaderOutput

http://stackoverflow.com/questions/7812394/ios-5-0-crash-when-reading-data-from-an-avassetreaderoutput

nil autorelease AVAssetReader reader AVAssetReader alloc initWithAsset asset error nil autorelease reader setTimeRange CMTimeRangeMake kCMTimeZero kCMTimePositiveInfinity NSMutableArray myOutputs NSMutableArray alloc init for id track in asset tracks AVAssetReaderTrackOutput..

MOV to Mp4 video conversion iPhone Programmatically

http://stackoverflow.com/questions/8474517/mov-to-mp4-video-conversion-iphone-programmatically

CMTime start CMTimeMakeWithSeconds 1.0 600 CMTime duration CMTimeMakeWithSeconds 3.0 600 CMTimeRange range CMTimeRangeMake start duration exportSession.timeRange range exportSession exportAsynchronouslyWithCompletionHandler ^ switch exportSession..