Coder Social home page Coder Social logo

bhaveshdhaduk / iosvideocameramultistitchexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carsonmcdonald/iosvideocameramultistitchexample

0.0 2.0 0.0 148 KB

Example of recording then stitching together multiple video segments taken from the camera of an iOS device.

License: MIT License

iosvideocameramultistitchexample's Introduction

MultiVidCam

work in progress

This is an example of taking multiple videos using the video camera on an iOS device then stitching those video segments together into one output file.

When you save a video it is saved to your camera roll.

Code Structure

The two main classes that do the heavy lifting for the video capture and processing are:

VideoCameraInputManager - Pulls together the input sources and manages the recording session. Allows for pausing and resuming video recording. Keeps track of the total runtime of all the segements of video created by pausing and resuming.

AVAssetStitcher - Stitches together multiple input videos and generate a single mpeg4 output. Along the way it applies a CGAffineTransform to each video segment.

Configuration Options

You can adjust the min/max recording times by modifying the following lines in RecordingViewController.m:

#define MAX_RECORDING_LENGTH 6.0
#define MIN_RECORDING_LENGTH 2.0

You can change the recording preset by modifying the following line inRecordingViewController.m:

#define CAPTURE_SESSION_PRESET AVCaptureSessionPreset640x480

You can adjsut the initial input capture device by modifying the following line in RecordingViewController.m:

#define INITIAL_CAPTURE_DEVICE_POSITION AVCaptureDevicePositionBack

You can adjust the initial mode of the torch by modifying the following line in the RecordingViewController.m:

#define INITIAL_TORCH_MODE AVCaptureTorchModeOff

License

MIT, see the LICENSE file.

iosvideocameramultistitchexample's People

Contributors

carsonmcdonald avatar kevinmarlow avatar

Watchers

BCODE avatar James Cloos 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.