- v1.1 - adjust the code struct. everything is changed, it's simpler to use.
- v1.0 - first version.
It's a simple way to reverse a video. I did a big adjustment in last version. Just use it like AVAssetExportSession.
- reverse a video
- special a time range
- special output file type and URL
- most effective
Here is a example:
AVURLAsset *asset = [AVURLAsset assetWithURL:fileURL];
AVAssetReverseSession *session = [[AVAssetReverseSession alloc] initWithAsset:asset];
NSURL *outputURL = ...;
session.outputFileType = AVFileTypeMPEG4; // special output file type
session.outputURL = outputURL; // special output file URL
session.timeRange = CMTimeRangeMake(kCMTimeZero, CMTimeMake(1200, 600)); // special special reverse clip
[session reverseAsynchronouslyWithCompletionHandler:^{
// finished
}];
- speed changable
Email me to: yanyin1986@gmail.com