¡@

Home 

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

iphone Programming Glossary: avassetexportsession

MPMediaItems raw song data

http://stackoverflow.com/questions/1656124/mpmediaitems-raw-song-data

curItem valueForProperty MPMediaItemPropertyAssetURL AVURLAsset songAsset AVURLAsset URLAssetWithURL url options nil AVAssetExportSession exporter AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough exporter.outputFileType.. AVURLAsset songAsset AVURLAsset URLAssetWithURL url options nil AVAssetExportSession exporter AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough exporter.outputFileType @ public.mpeg 4 NSString..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

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

audioStartTime CMTimeMake int audioInfo objectForKey audioDuration floatValue kRecordingFPS 0.5 kRecordingFPS AVAssetExportSession assetExport AVAssetExportSession alloc initWithAsset composition presetName AVAssetExportPresetMediumQuality assetExport.videoComposition.. int audioInfo objectForKey audioDuration floatValue kRecordingFPS 0.5 kRecordingFPS AVAssetExportSession assetExport AVAssetExportSession alloc initWithAsset composition presetName AVAssetExportPresetMediumQuality assetExport.videoComposition mutableVideoComposition.. outFilePath assetExport exportAsynchronouslyWithCompletionHandler ^ void switch assetExport.status case AVAssetExportSessionStatusCompleted export complete NSLog @ Export Complete break case AVAssetExportSessionStatusFailed NSLog @ Export Failed..

iPhone:Programmatically compressing recorded video to share?

http://stackoverflow.com/questions/5687341/iphoneprogrammatically-compressing-recorded-video-to-share

but the same video taken from camera and came via didFinishPickingMediaWithInfo is not compressed though i used the AVAssetExportSession code below. void imagePickerController UIImagePickerController picker didFinishPickingMediaWithInfo NSDictionary info NSString.. nil AVURLAsset theAsset AVURLAsset URLAssetWithURL NSURL URLWithString videoURL options nil NSArray compatiblePresets AVAssetExportSession exportPresetsCompatibleWithAsset theAsset AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset theAsset.. videoURL options nil NSArray compatiblePresets AVAssetExportSession exportPresetsCompatibleWithAsset theAsset AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset theAsset presetName AVAssetExportPresetLowQuality exportSession..

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

ofTrack audioAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime nextClipStartTime error nil AVAssetExportSession _assetExport AVAssetExportSession alloc initWithAsset mixComposition presetName AVAssetExportPresetHighestQuality _assetExport.outputFileType.. AVMediaTypeAudio objectAtIndex 0 atTime nextClipStartTime error nil AVAssetExportSession _assetExport AVAssetExportSession alloc initWithAsset mixComposition presetName AVAssetExportPresetHighestQuality _assetExport.outputFileType @ com.apple.quicktime..

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

combined video NSString combinedPath path of the combined video NSURL url NSURL alloc initFileURLWithPath combinedPath AVAssetExportSession exporter AVAssetExportSession alloc initWithAsset composition presetName AVAssetExportPreset640x480 autorelease exporter.outputURL.. path of the combined video NSURL url NSURL alloc initFileURLWithPath combinedPath AVAssetExportSession exporter AVAssetExportSession alloc initWithAsset composition presetName AVAssetExportPreset640x480 autorelease exporter.outputURL url url release exporter.outputFileType.. videoComposition.instructions NSArray arrayWithObject instruction this is what I do. I then use an AVAssetExportSession to create the actual file. but I warn you the CGAffineTransforms are sometimes applied late so you'll see a or two of the..

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

valueForProperty MPMediaItemPropertyAssetURL AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil JP AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks.. AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil JP AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset tracksWithMediaType.. NSLog @ n assetURL @ assetURL absoluteString AVURLAsset songAsset AVURLAsset URLAssetWithURL assetURL options nil JP AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks..