whydna / Reverse-AVAsset-Efficient

Reverse videos efficiently in Objective C and Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description:

Reverse and output a video file keeping the same compression, format, and frame rate as the source video.

Usage:

#import "AVUtilities.h"

AVAsset *originalAsset = [[AVURLAsset alloc] initWithURL:[NSURL urlWithString:@"~/video.mp4"]];
AVAsset *reversedAsset = [AVUtilities assetByReversingAsset:originalAsset outputURL:[NSURL urlWithString:@"~/reversedvideo.mp4"]];

Result:

alt tag alt tag

About

Reverse videos efficiently in Objective C and Swift


Languages

Language:Objective-C 58.1%Language:Swift 41.9%