¡@

Home 

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

iphone Programming Glossary: avassettrack

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 addMutableTrackWithMediaType AVMediaTypeVideo preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack clipVideoTrack videoAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 compositionVideoTrack insertTimeRange CMTimeRangeMake.. videoCompositionInstruction instruction.timeRange CMTimeRangeMake kCMTimeZero mixComposition duration AVAssetTrack videoTrack mixComposition tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 AVMutableVideoCompositionLayerInstruction..

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

track composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack sourceAudioTrack songAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 NSError error nil BOOL ok NO CMTime startTime..

Adjusting the volume of a playing AVPlayer

http://stackoverflow.com/questions/3268949/adjusting-the-volume-of-a-playing-avplayer

NSArray audioTracks asset tracksWithMediaType AVMediaTypeAudio NSMutableArray allAudioParams NSMutableArray array for AVAssetTrack track in audioTracks AVMutableAudioMixInputParameters audioInputParams AVMutableAudioMixInputParameters audioMixInputParameters..

Reading samples via AVAssetReader

http://stackoverflow.com/questions/4049207/reading-samples-via-avassetreader

goes here Get the video track s from your asset NSArray video_tracks asset tracksWithMediaType AVMediaTypeVideo AVAssetTrack video_track video_tracks objectAtIndex 0 Set the desired video frame format NSMutableDictionary dictionary NSMutableDictionary..

how to detect (iphone sdk) if a video file was recorded in portrait orientation, or landscape

http://stackoverflow.com/questions/4627940/how-to-detect-iphone-sdk-if-a-video-file-was-recorded-in-portrait-orientation

and our web developer is now able to rotate a variety of vids so they all match and composite them into one video. AVAssetTrack videoTrack avAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 CGSize size videoTrack naturalSize NSLog @ size.width..

Extract iPod Library raw PCM samples and play with sound effects

http://stackoverflow.com/questions/4796643/extract-ipod-library-raw-pcm-samples-and-play-with-sound-effects

AVURLAsset songAsset NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks objectAtIndex 0 AVAssetReaderTrackOutput output AVAssetReaderTrackOutput alloc initWithTrack..

Drawing waveform with AVAssetReader

http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader

to get data for drawing waveform I need info about peak values how I can get it this maybe another way AVAssetTrack songTrack audioUrl.tracks objectAtIndex 0 AVAssetReaderTrackOutput output AVAssetReaderTrackOutput alloc initWithTrack songTrack.. AVURLAsset songAsset NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks objectAtIndex 0 NSDictionary outputSettingsDict NSDictionary alloc initWithObjectsAndKeys NSNumber.. AVURLAsset songAsset NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack songAsset.tracks objectAtIndex 0 NSDictionary outputSettingsDict NSDictionary alloc initWithObjectsAndKeys NSNumber..

How to add userInfo to a UIAlertView?

http://stackoverflow.com/questions/5279884/how-to-add-userinfo-to-a-uialertview

AVFoundation + AssetWriter: Generate Movie With Images and Audio

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

composition AVURLAsset videoAsset AVURLAsset URLAssetWithURL NSURL fileURLWithPath filePath options nil AVAssetTrack videoAssetTrack videoAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 AVMutableCompositionTrack compositionVideoTrack.. objectForKey audioFilePath AVURLAsset urlAsset AVURLAsset URLAssetWithURL NSURL fileURLWithPath pathString options nil AVAssetTrack audioAssetTrack urlAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 AVMutableCompositionTrack compositionAudioTrack..

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

assetWriterInputPixelBufferAdaptorWithAssetWriterInput videoWriterInput sourcePixelBufferAttributes nil AVAssetTrack audioTrack asset.tracks objectAtIndex 0 AVAssetReaderOutput readerOutput AVAssetReaderTrackOutput assetReaderTrackOutputWithTrack..

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

NSURL url NSURL alloc initFileURLWithPath path AVURLAsset asset AVURLAsset URLAssetWithURL url options nil url release AVAssetTrack videoTrack asset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 AVAssetTrack audioTrack asset tracksWithMediaType.. url options nil url release AVAssetTrack videoTrack asset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 AVAssetTrack audioTrack asset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 set the orientation if i 0 compositionVideoTrack.. NSNumber numberWithBool YES forKey AVURLAssetPreferPreciseDurationAndTimingKey NSError error nil BOOL ok NO AVAssetTrack sourceVideoTrack sourceAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 CGSize temp CGSizeApplyAffineTransform..

Application crashed while importing songs from Ipod library in Iphone for iOs 5.0

http://stackoverflow.com/questions/8077725/application-crashed-while-importing-songs-from-ipod-library-in-iphone-for-ios-5

songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset tracksWithMediaType AVMediaTypeAudio AVAssetTrack track tracks objectAtIndex 0 id desc track.formatDescriptions objectAtIndex 0 const AudioStreamBasicDescription audioDesc.. songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset tracksWithMediaType AVMediaTypeAudio AVAssetTrack track tracks objectAtIndex 0 id desc track.formatDescriptions objectAtIndex 0 const AudioStreamBasicDescription audioDesc..

Video Encoding using AVAssetWriter - CRASHES

http://stackoverflow.com/questions/8191840/video-encoding-using-avassetwriter-crashes

videoWriterInput NSError aerror nil AVAssetReader reader AVAssetReader alloc initWithAsset avAsset error aerror AVAssetTrack videoTrack avAsset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 videoWriterInput.transform videoTrack.preferredTransform.. outputSettings nil retain AVAssetReader audioReader AVAssetReader assetReaderWithAsset avAsset error error retain AVAssetTrack audioTrack avAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 AVAssetReaderOutput readerOutput AVAssetReaderTrackOutput..