Skip to content

AVComposition debugging viewer, borrowed from Apple sample project and converted to cocoapod

License

Notifications You must be signed in to change notification settings

jlott1/AVCompositionDebugViewer

Repository files navigation

AVCompositionDebugViewer

CI Status Version License Platform

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

How To Use

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

Requirements

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

Installation

AVCompositionDebugViewer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AVCompositionDebugViewer'

Author

Jonathan Lott

License

AVCompositionDebugViewer is available under the MIT license. See the LICENSE file for more info.

About

AVComposition debugging viewer, borrowed from Apple sample project and converted to cocoapod

Resources

License

Stars

Watchers

Forks

Packages

No packages published