Swiftpack.co -  mj-kong/TRTransformer as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
mj-kong/TRTransformer
Reverse + Transcode
.package(url: "https://github.com/mj-kong/TRTransformer.git", from: "v1.7.1")

TRTransformer

support Reverse and Transcode

output file format

  • video: H264
  • audio: M4A

Reverse

/// Example

let url = // Local or Remote Asset URL
let asset = AVAsset(url: url) 
let outputURL = // URL
let session = ILABReverseVideoExportSession(asset: asset, outputURL)

session.exportAsynchronously({ [unowned self] (message: String?, progress: Float) in
    // process reverse

}) { [unowned self] (result: Bool, erro: Error?) in
    // complete reverse

}

Transcode

/// Example

let url = // Local or Remote Asset URL
let asset = AVAsset(url: url) 
let outputURL = // URL
let session = ILABTranscodeSession(asset: asset, outputURL)

session.transcodeAsynchronously({ [unowned self] (message: String?, progress: Float) in
    // process transcode

}) { [unowned self] (result: Bool, erro: Error?) in
    // complete transcode

}

GitHub

link
Stars: 0
Last commit: 4 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

Fix compile error
4 days ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics