AVFoundation and AVComposition debugging viewer. Borrowed from Apple sample project and converted to cocoapod. Allows you to create a custom AVMutableComposition and visualize it in the debugger view
To run the example project, clone the repo, and run pod install
from the Example directory first.
Works great in Swift or Objective-C:
Just create a custom AVMutableComposition
with optional AVMutableVideoComposition
and AVMutableAudioMix
and pass it to the AVCompositionDebugViewer
import AVCompositionDebugViewer
AVCompositionDebugViewer.showCompositionDebugView(with: avComposition, videoComposition: videoComposition, audioMix: audioMix, containerViewController: viewController)
On Mac: If you pass nil
for parameter containerViewController
then a new window will popup with the debug view controller automatically.
On iOS: You must specify a containerViewController
to contain the composition debug view controller
None. Works on Mac and iOS with AVFoundation
See Apple Docs for more info:
Technical Note TN2447: Debugging AVFoundation Compositions, Video Compositions, and Audio Mixes
Apple's AVCompositionDebugViewer(Mac) code
Apple's AVCompositionDebugViewer(iOS) code
AVCompositionDebugViewer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AVCompositionDebugViewer'
Jonathan Lott
AVCompositionDebugViewer is available under the MIT license. See the LICENSE file for more info.