¡@

Home 

2014/10/15 ¤U¤È 10:12:51

iphone Programming Glossary: preferredtrackid

how to export video asset via AVAssetExportSession in portrait mode

http://stackoverflow.com/questions/10034337/how-to-export-video-asset-via-avassetexportsession-in-portrait-mode

AVComposition object AVMutableCompositionTrack videoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVMutableCompositionTrack audioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio.. AVMutableCompositionTrack audioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid Add your medias tracks to your composition's tracks ... BOOL videoResult videoTrack insertTimeRange..

Merge Two Video files in iPhone Application

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

AVMutableCompositionTrack a_compositionVideoTrack1 mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid a_compositionVideoTrack1 insertTimeRange video_timeRange1 ofTrack videoAsset1 tracksWithMediaType..

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

AVMutableCompositionTrack compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack clipVideoTrack videoAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0..

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

assetURL options nil AVMutableCompositionTrack track composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack sourceAudioTrack songAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex..

Merging Audio with Video Objective-C

http://stackoverflow.com/questions/13909400/merging-audio-with-video-objective-c

AVMutableCompositionTrack a_compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid a_compositionVideoTrack insertTimeRange video_timeRange ofTrack videoAsset tracksWithMediaType.. AVMutableCompositionTrack b_compositionAudioTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid b_compositionAudioTrack insertTimeRange audio_timeRange ofTrack audioAsset tracksWithMediaType.. AVMutableCompositionTrack compositionCommentaryTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid compositionCommentaryTrack insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset.duration..

How to use scaleTimeRange in an AVMutableComposition?

http://stackoverflow.com/questions/17450864/how-to-use-scaletimerange-in-an-avmutablecomposition

AVMutableCompositionTrack compositionCommentaryTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid compositionCommentaryTrack insertTimeRange CMTimeRangeMake kCMTimeZero videoAsset.duration.. nil AVMutableCompositionTrack compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid compositionVideoTrack insertTimeRange CMTimeRangeMake kCMTimeZero videoAsset.duration ofTrack..

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

AVMutableCompositionTrack compositionCommentaryTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid compositionCommentaryTrack insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset.duration.. nil AVMutableCompositionTrack compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid compositionVideoTrack insertTimeRange CMTimeRangeMake kCMTimeZero videoAsset.duration ofTrack..

How to append two audio files?

http://stackoverflow.com/questions/4191569/how-to-append-two-audio-files

options nil AVMutableCompositionTrack audioTrack1 composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid audioTrack1 insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset1.duration ofTrack audioAsset1..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

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

0 AVMutableCompositionTrack compositionVideoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid compositionVideoTrack insertTimeRange CMTimeRangeMake kCMTimeZero videoAsset.duration ofTrack.. 0 AVMutableCompositionTrack compositionAudioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid compositionAudioTrack insertTimeRange CMTimeRangeMake kCMTimeZero urlAsset.duration ofTrack..

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

AVMutableCompositionTrack a_compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid a_compositionVideoTrack insertTimeRange video_timeRange ofTrack videoAsset tracksWithMediaType.. AVMutableCompositionTrack b_compositionAudioTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid b_compositionAudioTrack insertTimeRange audio_timeRange ofTrack audioAsset tracksWithMediaType..

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

composition AVMutableCompositionTrack compositionVideoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVMutableCompositionTrack compositionAudioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio.. AVMutableCompositionTrack compositionAudioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid CMTime startTime kCMTimeZero videoClipPaths is a array of paths of the video clips recorded.. composition AVMutableCompositionTrack compositionVideoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVMutableVideoComposition videoComposition AVMutableVideoComposition videoComposition videoComposition.frameDuration..

Combining two .caf files on iPhone

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

assetURL options nil AVMutableCompositionTrack track composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack sourceAudioTrack songAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex..