¡@

Home 

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

iphone Programming Glossary: avurlasset

Getting thumbnail from a video url or data in IPhone SDK

http://stackoverflow.com/questions/1347562/getting-thumbnail-from-a-video-url-or-data-in-iphone-sdk

do the trick you can get the thumbnail at any time in the example its at time 0 void generateImage AVURLAsset asset AVURLAsset alloc initWithURL self.url options nil AVAssetImageGenerator generator AVAssetImageGenerator.. can get the thumbnail at any time in the example its at time 0 void generateImage AVURLAsset asset AVURLAsset alloc initWithURL self.url options nil AVAssetImageGenerator generator AVAssetImageGenerator alloc initWithAsset..

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

mainBundle URLForResource @ Big_Voice_1 withExtension @ caf NSLog @ @ fileURL AVAsset asset AVURLAsset URLAssetWithURL fileURL options nil retain AVAssetReader audioReader AVAssetReader assetReaderWithAsset.. defaultManager removeItemAtPath outputFilePath error nil CMTime nextClipStartTime kCMTimeZero AVURLAsset videoAsset AVURLAsset alloc initWithURL video_inputFileUrl options nil CMTimeRange video_timeRange CMTimeRangeMake.. outputFilePath error nil CMTime nextClipStartTime kCMTimeZero AVURLAsset videoAsset AVURLAsset alloc initWithURL video_inputFileUrl options nil CMTimeRange video_timeRange CMTimeRangeMake kCMTimeZero..

Getting thumbnail from a video url or data in IPhone SDK

http://stackoverflow.com/questions/1347562/getting-thumbnail-from-a-video-url-or-data-in-iphone-sdk

code where the class property url is the movie url will do the trick you can get the thumbnail at any time in the example its at time 0 void generateImage AVURLAsset asset AVURLAsset alloc initWithURL self.url options nil AVAssetImageGenerator generator AVAssetImageGenerator alloc initWithAsset asset generator.appliesPreferredTrackTransform.. class property url is the movie url will do the trick you can get the thumbnail at any time in the example its at time 0 void generateImage AVURLAsset asset AVURLAsset alloc initWithURL self.url options nil AVAssetImageGenerator generator AVAssetImageGenerator alloc initWithAsset asset generator.appliesPreferredTrackTransform..

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

outputSettings audioSettings retain NSURL fileURL NSBundle mainBundle URLForResource @ Big_Voice_1 withExtension @ caf NSLog @ @ fileURL AVAsset asset AVURLAsset URLAssetWithURL fileURL options nil retain AVAssetReader audioReader AVAssetReader assetReaderWithAsset asset error error retain AVAssetWriterInputPixelBufferAdaptor.. defaultManager fileExistsAtPath outputFilePath NSFileManager defaultManager removeItemAtPath outputFilePath error nil CMTime nextClipStartTime kCMTimeZero AVURLAsset videoAsset AVURLAsset alloc initWithURL video_inputFileUrl options nil CMTimeRange video_timeRange CMTimeRangeMake kCMTimeZero videoAsset.duration AVMutableCompositionTrack.. outputFilePath NSFileManager defaultManager removeItemAtPath outputFilePath error nil CMTime nextClipStartTime kCMTimeZero AVURLAsset videoAsset AVURLAsset alloc initWithURL video_inputFileUrl options nil CMTimeRange video_timeRange CMTimeRangeMake kCMTimeZero videoAsset.duration AVMutableCompositionTrack a_compositionVideoTrack..

Getting thumbnail from a video url or data in IPhone SDK

http://stackoverflow.com/questions/1347562/getting-thumbnail-from-a-video-url-or-data-in-iphone-sdk

the movie url will do the trick you can get the thumbnail at any time in the example its at time 0 void generateImage AVURLAsset asset AVURLAsset alloc initWithURL self.url options nil AVAssetImageGenerator generator AVAssetImageGenerator alloc initWithAsset.. do the trick you can get the thumbnail at any time in the example its at time 0 void generateImage AVURLAsset asset AVURLAsset alloc initWithURL self.url options nil AVAssetImageGenerator generator AVAssetImageGenerator alloc initWithAsset asset generator.appliesPreferredTrackTransform..

MPMediaItems raw song data

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

picker MPMediaItem curItem musicPlayer.nowPlayingItem NSURL url curItem valueForProperty MPMediaItemPropertyAssetURL AVURLAsset songAsset AVURLAsset URLAssetWithURL url options nil AVAssetExportSession exporter AVAssetExportSession alloc initWithAsset.. curItem musicPlayer.nowPlayingItem NSURL url curItem valueForProperty MPMediaItemPropertyAssetURL AVURLAsset songAsset AVURLAsset URLAssetWithURL url options nil AVAssetExportSession exporter AVAssetExportSession alloc initWithAsset songAsset presetName..

Drawing waveform with AVAssetReader

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

UIGraphicsGetImageFromCurrentImageContext Tidy up UIGraphicsEndImageContext return newImage Next a method that takes a AVURLAsset and returns PNG image data NSData renderPNGAudioPictogramForAssett AVURLAsset songAsset NSError error nil AVAssetReader.. newImage Next a method that takes a AVURLAsset and returns PNG image data NSData renderPNGAudioPictogramForAssett AVURLAsset songAsset NSError error nil AVAssetReader reader AVAssetReader alloc initWithAsset songAsset error error AVAssetTrack songTrack.. lastPathComponent assetFileURL retain assetPictogramFilepath retain NSThread MCSM_performBlockInBackground ^ AVURLAsset asset AVURLAsset alloc initWithURL assetFileURL options nil NSData waveFormData self renderPNGAudioPictogramForAssett asset..

iPhone:Programmatically compressing recorded video to share?

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

completionBlock ^ NSURL assetURL NSError error NSLog @ Saved URL @ assetURL NSLog @ Error @ error if assetURL nil AVURLAsset theAsset AVURLAsset URLAssetWithURL NSURL URLWithString videoURL options nil NSArray compatiblePresets AVAssetExportSession.. ^ NSURL assetURL NSError error NSLog @ Saved URL @ assetURL NSLog @ Error @ error if assetURL nil AVURLAsset theAsset AVURLAsset URLAssetWithURL NSURL URLWithString videoURL options nil NSArray compatiblePresets AVAssetExportSession exportPresetsCompatibleWithAsset.. handler void ^ AVAssetExportSession handler NSFileManager defaultManager removeItemAtURL outputURL error nil AVURLAsset asset AVURLAsset URLAssetWithURL inputURL options nil AVAssetExportSession exportSession AVAssetExportSession alloc initWithAsset..

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

NSURL fileURL NSBundle mainBundle URLForResource @ Big_Voice_1 withExtension @ caf NSLog @ @ fileURL AVAsset asset AVURLAsset URLAssetWithURL fileURL options nil retain AVAssetReader audioReader AVAssetReader assetReaderWithAsset asset error error.. NSFileManager defaultManager removeItemAtPath outputFilePath error nil CMTime nextClipStartTime kCMTimeZero AVURLAsset videoAsset AVURLAsset alloc initWithURL video_inputFileUrl options nil CMTimeRange video_timeRange CMTimeRangeMake kCMTimeZero.. defaultManager removeItemAtPath outputFilePath error nil CMTime nextClipStartTime kCMTimeZero AVURLAsset videoAsset AVURLAsset alloc initWithURL video_inputFileUrl options nil CMTimeRange video_timeRange CMTimeRangeMake kCMTimeZero videoAsset.duration..