Coder Social home page Coder Social logo

videorecorder's Introduction

Videorecorder

Videorecorder makes video from your images.

Next frameworks are necessary for Videorecorder work:

  • AVFoundation;
  • AssetsLibrary.

Videorecorder uses next categories:

  • ALAssetsLibrary+CustomPhotoAlbum;
  • UIImage+Extras.

All categories ccan be found in the project dir.

Example of use Videorecorder:

VideoRecorder *recorder = [[VideoRecorder alloc]initWithFrames:frameArray andLibrary:nil]; recorder.videoTitle = @"FirstTest"; recorder.delegate = self; [recorder recordVideowithcmpletionBlock:^(BOOL succsess, NSError *error) { NSLog(@"succsess %d\nerror %@",succsess,error); }];

frameArray - it is an array of VideoFrameData objects.

VideoFrameData - it is an object, that contains information about video frame;

  • presentationTime - it is a CMTime at which frame should appear at video;

Example: presentationTime = CMTimeMake(0, 1); - frame will be presented at start presentationTime = CMTimeMake(3, 1); - frame will be presented after three seconds of a previous frame;

If we have three frames with times (0, 1), (3, 1) and (5, 1), then first frame will be presented at start, second will be presented at 3 second and third will be presented at 8 second (0 + 3 + 5). Total duration of videofile will be 8 seconds (last frame will has duration == 0). If you want to set not null duration for last frame, then you should add addtional last frame with same image and time which will be equal to duration time.

  • img - UIImage;
  • libraryAssetURL - url of image in ALAssetsLibrary
  • imageLink - link on image eg. in Documents;

videorecorder's People

Contributors

evgeniygushchin avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ivideo

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.