¡@

Home 

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

iphone Programming Glossary: avassetreaderstatusreading

Hardware accelerated h.264 decoding to texture, overlay or similar in iOS

http://stackoverflow.com/questions/10646657/hardware-accelerated-h-264-decoding-to-texture-overlay-or-similar-in-ios

readerAudioTrackOutput synchronizedMovieWriter enableSynchronizationCallbacks else while reader.status AVAssetReaderStatusReading self readNextVideoFrameFromOutput readerVideoTrackOutput if shouldRecordAudioTrack audioEncodingIsFinished self readNextAudioSampleFromOutput.. endProcessing void readNextVideoFrameFromOutput AVAssetReaderTrackOutput readerVideoTrackOutput if reader.status AVAssetReaderStatusReading CMSampleBufferRef sampleBufferRef readerVideoTrackOutput copyNextSampleBuffer if sampleBufferRef runOnMainQueueWithoutDeadlocking..

Updating UI while reading a video file

http://stackoverflow.com/questions/15493405/updating-ui-while-reading-a-video-file

AVMediaTypeVideo if tracks count 1 some code here movieReader startReading while movieReader status AVAssetReaderStatusReading reading the video code here I need to update the UI as I process each frame indicating the progress of processing..

Reading samples via AVAssetReader

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

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

output output release NSMutableData fullSongData NSMutableData alloc init reader startReading while reader.status AVAssetReaderStatusReading AVAssetReaderTrackOutput trackOutput AVAssetReaderTrackOutput reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef..

Drawing waveform with AVAssetReader

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

output output release NSMutableData fullSongData NSMutableData alloc init reader startReading while reader.status AVAssetReaderStatusReading AVAssetReaderTrackOutput trackOutput AVAssetReaderTrackOutput reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef.. totalLeft 0 SInt64 totalRight 0 NSInteger sampleTally 0 NSInteger samplesPerPixel sampleRate 50 while reader.status AVAssetReaderStatusReading AVAssetReaderTrackOutput trackOutput AVAssetReaderTrackOutput reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef.. totalLeft 0 Float64 totalRight 0 Float32 sampleTally 0 NSInteger samplesPerPixel sampleRate 50 while reader.status AVAssetReaderStatusReading AVAssetReaderTrackOutput trackOutput AVAssetReaderTrackOutput reader.outputs objectAtIndex 0 CMSampleBufferRef sampleBufferRef..

UIPickerView select and hide

http://stackoverflow.com/questions/5347537/uipickerview-select-and-hide

Video Encoding using AVAssetWriter - CRASHES

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

^ self retain while videoWriterInput isReadyForMoreMediaData CMSampleBufferRef sampleBuffer if reader status AVAssetReaderStatusReading sampleBuffer asset_reader_output copyNextSampleBuffer BOOL result videoWriterInput appendSampleBuffer sampleBuffer CFRelease.. if result reader cancelReading break else videoWriterInput markAsFinished switch reader status case AVAssetReaderStatusReading the reader has more for other tracks even if this one is done break case AVAssetReaderStatusCompleted your method for.. while audioWriterInput.readyForMoreMediaData CMSampleBufferRef nextBuffer if audioReader status AVAssetReaderStatusReading nextBuffer readerOutput copyNextSampleBuffer NSLog @ Ready if nextBuffer NSLog @ NextBuffer audioWriterInput appendSampleBuffer..