ILABReverseVideoExporter 0.1.2

ILABReverseVideoExporter 0.1.2

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新发布2017年8月

Jon Gilkisson 维护。



  • Jon Gilkisson

一组用于反转 AVAsset 视频(和音频)的工具类。这些类将反转视频、音频以及带有音频的视频。视频反转主要基于 Chris Sung 的 CSVideoReverse 类。

安装

如果你使用的是 cocoapods

pod 'ILABReverseVideoExporter'

否则,你可以将 Source 目录中的文件拖入你的项目中。

我不使用 carthage,所以 耸肩

使用方法

使用很简单。所有处理都在一个单独的线程上进行,并且由于 Chris 的贡献,内存性能非常好。

#import <ILABReverseVideoExporter/ILABReverseVideoExporter.h>

ILABReverseVideoExportSession *exportSession = [ILABReverseVideoExportSession exportSessionWithURL:sourceAssetURL outputURL:outputAssetURL];
    
ILABProgressBlock progressBlock = ^(NSString *currentOperation, float progress) {
    // If progress == INFINITY then the class is performing
    // a process whose progress can't be tracked
    NSLog(@"Progress: %f", (progress == INFINITY) ? '0' : progress * 100.);
};
    
ILABCompleteBlock completeBlock = ^(BOOL complete, NSError *error) {
    NSLog(@"Done.");
};
    
[exportSession exportAsynchronously:progressBlock complete:completeBlock];

演示

要运行视频,只需在终端中打开 demo 目录,并且输入:

pod install

感谢

再次,特别感谢 Chris Sung 提供的视频反转代码。