Latest 0.0.3
Homepage https://github.com/leonyue/LYMovieMake
License MIT
Platforms ios 8.0, requires ARC
Authors

Brief

supports rate, clip from start, clip to end, transition, video frame preview, video cut,music,overlay,sound adjustment,filter and something else

transition:

supports:NA,Swipe,Dissolve

supports transition time setting

filter:

supports:NA,VignetteEffect,PhotoEffectFade,PhotoEffectChrome,PhotoEffectProcess,PhotoEffectTransfer,PhotoEffectInstant,SepiaTone,FalseColor,PhotoEffectMono,PhotoEffectTonal,PhotoEffectNoir

overlay:

supports:gif,waterprint,subtitle

support overlay time range set

CocoaPods

pod ‘LYMovieMake’, ‘~> 0.0.3’

Demo codes for transition,filter,video join,

LYMovieMake *make = [[LYMovieMake alloc] init];

//a demo video
NSURL *url = [[NSBundle mainBundle] URLForResource:@"demo" withExtension:@"mp4"];

// add two slice and transition between them
LYMovieSlice *slice = [[LYMovieSlice alloc] initWithURL:url];
LYMovieSlice *slice2 = [[LYMovieSlice alloc] initWithURL:url];
slice2.transitionFilter = [[LYMovieTransitionFilterStack sharedTransitionFilterStack] filterOfType:TransitionFilterTypeSwipe];
[make addSlice:slice];
[make addSlice:slice2];

// set the movie filter
LYMovieFilterStack *filterStack = [[LYMovieFilterStack alloc] initWithDemoImage:[UIImage imageNamed:@"filter_raw"]];
make.filter = [filterStack filterAtIndex:0];

// retain make
self.make = make;

// add preview
[self.view.layer addSublayer:make.playerLayer];
make.playerLayer.frame = self.view.bounds;

// start play movie
[make play];

Demo Codes for export

// pause movie playing then export
[self.make pause];
NSString *outputPath = [NSTemporaryDirectory() stringByAppendingString:@"demo.mp4"];
[self.make exportMovieToPath:outputPath WithProgress:^(float progress) {
        NSLog(@"progress:%f",progress);
} completion:^(BOOL success, NSError *error) {

}];

More function

refer to LYMovieMake and LYMovieSlice;

Latest podspec

{
    "name": "LYMovieMake",
    "version": "0.0.3",
    "summary": "An iOS Video Editor Tool",
    "description": "An iOS Video Editor Tool Using native library",
    "homepage": "https://github.com/leonyue/LYMovieMake",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "leonyue": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/leonyue/LYMovieMake.git",
        "tag": "0.0.3"
    },
    "source_files": "LYMovieMake/*",
    "requires_arc": true,
    "subspecs": [
        {
            "name": "classes",
            "source_files": "LYMovieMake/**/*"
        }
    ]
}

Pin It on Pinterest

Share This