iphone Programming Glossary: avmediatypeaudio
Using AVCaptureSession and AVAudioPlayer together http://stackoverflow.com/questions/10903542/using-avcapturesession-and-avaudioplayer-together audio output to a .mov file void addVideoInput AVCaptureDevice audioDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeAudio ... also some code for setting up videoDevice frontCamera NSError error AVCaptureDeviceInput videoIn AVCaptureDeviceInput..
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 URLAssetWithURL assetURL options nil AVMutableCompositionTrack track composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack sourceAudioTrack songAsset tracksWithMediaType AVMediaTypeAudio.. preferredTrackID kCMPersistentTrackID_Invalid AVAssetTrack sourceAudioTrack songAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 NSError error nil BOOL ok NO CMTime startTime CMTimeMakeWithSeconds 0 1 CMTime trackDuration songAsset.duration..
Adjusting the volume of a playing AVPlayer http://stackoverflow.com/questions/3268949/adjusting-the-volume-of-a-playing-avplayer want to set is called volume the following code should do what you want NSArray audioTracks asset tracksWithMediaType AVMediaTypeAudio NSMutableArray allAudioParams NSMutableArray array for AVAssetTrack track in audioTracks AVMutableAudioMixInputParameters..
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 composition AVMutableCompositionTrack compositionCommentaryTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid compositionCommentaryTrack insertTimeRange CMTimeRangeMake kCMTimeZero.. insertTimeRange CMTimeRangeMake kCMTimeZero audioAsset.duration ofTrack audioAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime kCMTimeZero error nil AVMutableCompositionTrack compositionVideoTrack mixComposition addMutableTrackWithMediaType..
This code to write video+audio through AVAssetWriter and AVAssetWriterInputs is not working. Why? http://stackoverflow.com/questions/4149963/this-code-to-write-videoaudio-through-avassetwriter-and-avassetwriterinputs-is Setup the audio input AVCaptureDevice audioDevice AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeAudio AVCaptureDeviceInput audioInput AVCaptureDeviceInput deviceInputWithDevice audioDevice error error Setup the audio output.. acl length sizeof acl AVChannelLayoutKey nil _audioWriterInput AVAssetWriterInput assetWriterInputWithMediaType AVMediaTypeAudio outputSettings audioOutputSettings retain _audioWriterInput.expectsMediaDataInRealTime YES add input _videoWriter addInput..
AVAssetWritter does not work with audio http://stackoverflow.com/questions/5200077/avassetwritter-does-not-work-with-audio AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeVideo microphone AVCaptureDevice defaultDeviceWithMediaType AVMediaTypeAudio menu camera camera session beginConfiguration camera lockForConfiguration nil if camera isExposureModeSupported AVCaptureExposureModeContinuousAutoExposure.. acl.mChannelLayoutTag kAudioChannelLayoutTag_Mono audio_writer_input AVAssetWriterInput assetWriterInputWithMediaType AVMediaTypeAudio outputSettings NSDictionary dictionaryWithObjectsAndKeys NSNumber numberWithInt kAudioFormatMPEG4AAC AVFormatIDKey NSNumber..
AVFoundation + AssetWriter: Generate Movie With Images and Audio http://stackoverflow.com/questions/5640657/avfoundation-assetwriter-generate-movie-with-images-and-audio URLAssetWithURL NSURL fileURLWithPath pathString options nil AVAssetTrack audioAssetTrack urlAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 AVMutableCompositionTrack compositionAudioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio.. objectAtIndex 0 AVMutableCompositionTrack compositionAudioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid compositionAudioTrack insertTimeRange CMTimeRangeMake kCMTimeZero urlAsset.duration..
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 videoSettings retain AVAssetWriterInput audioWriterInput AVAssetWriterInput assetWriterInputWithMediaType AVMediaTypeAudio outputSettings audioSettings retain NSURL fileURL NSBundle mainBundle URLForResource @ Big_Voice_1 withExtension @ caf.. audioAsset.duration AVMutableCompositionTrack b_compositionAudioTrack mixComposition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid b_compositionAudioTrack insertTimeRange audio_timeRange ofTrack audioAsset.. b_compositionAudioTrack insertTimeRange audio_timeRange ofTrack audioAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 atTime nextClipStartTime error nil AVAssetExportSession _assetExport AVAssetExportSession alloc initWithAsset..
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 kCMPersistentTrackID_Invalid AVMutableCompositionTrack compositionAudioTrack composition addMutableTrackWithMediaType AVMediaTypeAudio preferredTrackID kCMPersistentTrackID_Invalid CMTime startTime kCMTimeZero videoClipPaths is a array of paths of the video.. asset tracksWithMediaType AVMediaTypeVideo objectAtIndex 0 AVAssetTrack audioTrack asset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 set the orientation if i 0 compositionVideoTrack setPreferredTransform videoTrack.preferredTransform ok..
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 initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset tracksWithMediaType AVMediaTypeAudio AVAssetTrack track tracks objectAtIndex 0 id desc track.formatDescriptions objectAtIndex 0 const AudioStreamBasicDescription.. initWithAsset songAsset presetName AVAssetExportPresetPassthrough NSArray tracks songAsset tracksWithMediaType AVMediaTypeAudio AVAssetTrack track tracks objectAtIndex 0 id desc track.formatDescriptions objectAtIndex 0 const AudioStreamBasicDescription..
Video Encoding using AVAssetWriter - CRASHES http://stackoverflow.com/questions/8191840/video-encoding-using-avassetwriter-crashes asset_reader_output audio setup AVAssetWriterInput audioWriterInput AVAssetWriterInput assetWriterInputWithMediaType AVMediaTypeAudio outputSettings nil retain AVAssetReader audioReader AVAssetReader assetReaderWithAsset avAsset error error retain AVAssetTrack.. AVAssetReader assetReaderWithAsset avAsset error error retain AVAssetTrack audioTrack avAsset tracksWithMediaType AVMediaTypeAudio objectAtIndex 0 AVAssetReaderOutput readerOutput AVAssetReaderTrackOutput assetReaderTrackOutputWithTrack audioTrack outputSettings..
|