¡@

Home 

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

iphone Programming Glossary: avmutablecompositiontrack

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

to assign a transform to the video track of the exported session. Create 2 mutable tracks in your AVComposition object AVMutableCompositionTrack videoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVMutableCompositionTrack.. videoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVMutableCompositionTrack audioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid Add your..

Merge Two Video files in iPhone Application

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

video_inputFileUrl3 options nil CMTimeRange video_timeRange1 CMTimeRangeMake kCMTimeZero videoAsset1.duration AVMutableCompositionTrack a_compositionVideoTrack1 mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid..

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

NSURL fileURLWithPath filePath options nil AVMutableComposition mixComposition AVMutableComposition composition AVMutableCompositionTrack compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid..

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

toComposition AVMutableComposition composition AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil AVMutableCompositionTrack track composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack..

How to use scaleTimeRange in an AVMutableComposition?

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

AVURLAsset alloc initWithURL videoURL options nil AVMutableComposition mixComposition AVMutableComposition composition AVMutableCompositionTrack compositionCommentaryTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid.. ofTrack audioAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime kCMTimeZero error nil AVMutableCompositionTrack compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid..

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

AVURLAsset alloc initWithURL videoUrl options nil AVMutableComposition mixComposition AVMutableComposition composition AVMutableCompositionTrack compositionCommentaryTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid.. ofTrack audioAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime kCMTimeZero error nil AVMutableCompositionTrack compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid..

how to control orientation of video assembled with AVMutableComposition

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

taking straightforward approach as follows AVURLAsset to get hold of the different videos then shoving these into an AVMutableCompositionTrack and then putting this into an AVMutableComposition which I'm exporting to file with AVAssetExportSession My problem is that..

How to append two audio files?

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

filePath1 options nil AVURLAsset audioAsset2 AVURLAsset alloc initWithURL NSURL fileURLWithPath filePath2 options nil AVMutableCompositionTrack audioTrack1 composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid..

AVAudioRecorder / AVAudioPlayer - append recording to file

http://stackoverflow.com/questions/4649918/avaudiorecorder-avaudioplayer-append-recording-to-file

cocoa touch avaudioplayer avaudiorecorder share improve this question You can append two audio files by creating a AVMutableCompositionTrack after adding the two files and exporting the composition using exportAsynchronouslyWithCompletionHandler method of AVAssetExportSession..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

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

filePath options nil AVAssetTrack videoAssetTrack videoAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 AVMutableCompositionTrack compositionVideoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid.. pathString options nil AVAssetTrack audioAssetTrack urlAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 AVMutableCompositionTrack compositionAudioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid..

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

initWithURL video_inputFileUrl options nil CMTimeRange video_timeRange CMTimeRangeMake kCMTimeZero videoAsset.duration AVMutableCompositionTrack a_compositionVideoTrack mixComposition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid.. initWithURL audio_inputFileUrl options nil CMTimeRange audio_timeRange CMTimeRangeMake kCMTimeZero audioAsset.duration AVMutableCompositionTrack b_compositionAudioTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid..

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

using AVMutableComposition using the code below AVMutableComposition composition AVMutableComposition composition AVMutableCompositionTrack compositionVideoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid.. composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVMutableCompositionTrack compositionAudioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid.. video avfoundation share improve this question AVMutableComposition composition AVMutableComposition composition AVMutableCompositionTrack compositionVideoTrack composition addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid..

Combining two .caf files on iPhone

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

toComposition AVMutableComposition composition AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil AVMutableCompositionTrack track composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack..