Git Product home page Git Product logo

llvideoeditor's Introduction

LLVideoEditor: An easy to use library for editing videos.

LLVideoEditor is a library for rotating, cropping, adding layers (watermark) and as well as adding audio (music) to the videos.

You can use it in conjunction with my other library: LLSimpleCamera.

Example usage

// initialize the editor
LLVideoEditor *videoEditor = [[LLVideoEditor alloc] initWithVideoURL:videoURL];

// rotate
[videoEditor rotate:LLRotateDegree90];

// crop
[videoEditor crop:CGRectMake(10, 10, 300, 200)];

// add layer
[videoEditor addLayer:layer];

// add audio
[videoEditor addAudio:audioAsset startingAt:1 trackDuration:3];

// and finally export
[videoEditor exportToUrl:exportUrl completionBlock:^(AVAssetExportSession *session) {
    
    switch (session.status) {
        case AVAssetExportSessionStatusCompleted: {
            // show the cropped video
            VideoViewController *vc = [[VideoViewController alloc] initWithVideoUrl:exportUrl];
            [self.navigationController pushViewController:vc animated:NO];
            break;
        }
        case AVAssetExportSessionStatusFailed:
            NSLog(@"Failed:%@",session.error);
            break;
        case AVAssetExportSessionStatusCancelled:
            NSLog(@"Canceled:%@", session.error);
            break;
        default:
            break;
    }
}];

Don't forget to run "pod install" to use the included example.

Install

pod 'LLVideoEditor', '~> 1.0'

Contribution

This project is very at beginning. I'll try to improve it and add more features. Your contribution is also welcome. Simply send pull requests to the develop branch.

I have implemented a "Command Design Pattern". What you have to do basicly is to create a new Command class and implement whatever you want to do with the existing compositions of the video.

Contact

Ömer Faruk Gül

Personal Site

[email protected]

llvideoeditor's People

Contributors

omergul avatar

Watchers

James Cloos avatar yong avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.