Top "Avfoundation" questions

The AVFoundation framework provides both Objective-C and Swift interfaces for editing and playing audio-visual media in a Mac OSX or iOS application.

Cropping AVAsset video with AVFoundation

I am using AVCaptureMovieFileOutput to record some video. I have the preview layer displayed using AVLayerVideoGravityResizeAspectFill which zooms in slightly. …

ios video avfoundation avassetexportsession
Tap Mic Input Using AVAudioEngine in Swift

I'm really excited about the new AVAudioEngine. It seems like a good API wrapper around audio unit. Unfortunately the documentation …

ios swift avfoundation core-audio ios8.1
How to combine video clips with different orientation using AVFoundation

I am trying to combine several video clips into one using AVFoundation. I can create a single video using AVMutableComposition …

iphone objective-c ios video avfoundation
AVFoundation + AssetWriter: Generate Movie With Images and Audio

I have to export a movie from my iPhone application which contains UIImage from an NSArray and add some audio …

iphone avfoundation avassetwriter avmutablecomposition
Knowing resolution of AVCaptureSession's session presets

I'm accessing the camera in iOS and using session presets as so: captureSession.sessionPreset = AVCaptureSessionPresetMedium; Pretty standard stuff. However, I'd …

ios avfoundation core-video
iOS 7 AVPlayer AVPlayerItem duration incorrect in iOS 7

I have the following code in my app: NSURL *url = [NSURL fileURLWithPath: [self.DocDir stringByAppendingPathComponent: self.FileName] isDirectory: NO]; self.…

ios ios7 avfoundation avplayer avasset
Reading samples via AVAssetReader

How do you read samples via AVAssetReader? I've found examples of duplicating or mixing using AVAssetReader, but those loops are …

objective-c iphone cocoa-touch avfoundation avassetreader
Add custom header field in request of AVPlayer

Is it possible to send headers with an http request to an audio file when using AVPlayer? I need to …

ios avfoundation avplayer
iOS 4: Remote controls for background audio

I'm currently attempting to set up background audio for an app I'm developing for iOS 4. The app doesn't have a …

iphone audio ios4 avfoundation
How to decode a H.264 frame on iOS by hardware decoding?

I have been used ffmpeg to decode every single frame that I received from my ip cam. The brief code …

ios ffmpeg avfoundation h.264 hardware-acceleration