Hellcat 0.4.0

Hellcat 0.4.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Sean McNeil.



Hellcat 0.4.0

Hellcat

Hellcat: Seamlessly create images from video

What it does

Hellcat will take a URL for a video and return an array of UIImages that it extracts from each frame.

Features

– Tracks the progress of each video being processed via progress callback – Returns an array of UIImage once complete – Will return an error that complies with the HellcatError if something goes wrong

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

The following snippet will send the URL for a video to Hellcat for processing:

let hellcat = Hellcat()
hellcat.imageFrames(for: url, progress: { (progress) in
    // Display progress
}, success: { (images) in
    // Handle images
}) { (error) in
    // Handle error
}

Requirements

  • iOS 8.3+
  • Xcode 8.0+
  • Swift 3.0+

Installation

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

pod "Hellcat"

Errors

Hellcat provides a relatively rich set of errors via an enum that should address all potential failures within the app. These are:

public enum HellcatError: Error {
    case FailureToObtainAssetTrack
    case FailureToCreateAssetReader(Error)
    case FailureToObtainImage
}

Changelog

Changelog | See the changes introduced in each version.

Credit

The use of a sample video in the example app is in the public domain.

Author

seanmcneil, [email protected]

License

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