All Projects → nakajijapan → NKJMovieComposer

nakajijapan / NKJMovieComposer

Licence: MIT license
NKJMovieComposer is very simple movie composer for iOS.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to NKJMovieComposer

Swiftscan
A barcode and qr code scanner( 二维码/条形码扫描、生成,仿微信、支付宝)
Stars: ✭ 293 (+632.5%)
Mutual labels:  carthage, avfoundation
Soundable
Soundable allows you to play sounds, single and in sequence, in a very easy way
Stars: ✭ 78 (+95%)
Mutual labels:  carthage, avfoundation
Soundable
Soundable allows you to play sounds, single and in sequence, in a very easy way
Stars: ✭ 88 (+120%)
Mutual labels:  carthage, avfoundation
SDWebImageHEIFCoder
A SDWebImage coder plugin to support HEIF image without Apple's Image/IO framework
Stars: ✭ 31 (-22.5%)
Mutual labels:  carthage
Mechanica
A cross-platform library of Swift utils to ease your iOS | macOS | watchOS | tvOS and Linux development.
Stars: ✭ 27 (-32.5%)
Mutual labels:  carthage
NeumorphismKit
Neumorphism framework for UIKit.
Stars: ✭ 39 (-2.5%)
Mutual labels:  carthage
iphonepip
PiP (Picture in Picture) prototype for iPhone
Stars: ✭ 15 (-62.5%)
Mutual labels:  avfoundation
GCXTrustPolicy
SSL pinning and trust validation framework for iOS
Stars: ✭ 21 (-47.5%)
Mutual labels:  carthage
StackBarButtonItem
🔲 StackBarButtonItem can use BarButtonItem like StackView
Stars: ✭ 55 (+37.5%)
Mutual labels:  carthage
SSCustomPullToRefresh
SSCustomPullToRefresh is an open-source library that uses UIKit to add an animation to the pull to refresh view in a UITableView and UICollectionView.
Stars: ✭ 62 (+55%)
Mutual labels:  carthage
GCXMulticastDNSKit
Multicast DNS framework for iOS
Stars: ✭ 16 (-60%)
Mutual labels:  carthage
ZVRefreshing
A pure-swift and wieldy refresh component.
Stars: ✭ 29 (-27.5%)
Mutual labels:  carthage
spark-sdk-ios
DEPRECATED Particle iOS Cloud SDK. Use -->
Stars: ✭ 52 (+30%)
Mutual labels:  carthage
carhacking
car hacking tools
Stars: ✭ 40 (+0%)
Mutual labels:  carthage
Ciao
Publish and discover services using Bonjour
Stars: ✭ 50 (+25%)
Mutual labels:  carthage
DPVideoMerger-Swift
Multiple videos merge in one video with manage scale & aspect ratio and also merge videos to grid matrix layout for Swift.
Stars: ✭ 49 (+22.5%)
Mutual labels:  carthage
SwiftGradients
Useful extensions for UIViews and CALayer classes to add beautiful color gradients.
Stars: ✭ 15 (-62.5%)
Mutual labels:  carthage
Starling
Simple low-latency audio library for iOS + macOS
Stars: ✭ 38 (-5%)
Mutual labels:  avfoundation
Columbus
A feature-rich country picker for iOS, tvOS and watchOS.
Stars: ✭ 23 (-42.5%)
Mutual labels:  carthage
SSAppUpdater
SSAppUpdater is an open-source framework that compares the current version of the app with the store version and returns the essential details of it like app URL, new app version number, new release note, etc. So you can either redirect or notify the user to update their app.
Stars: ✭ 58 (+45%)
Mutual labels:  carthage

NKJMovieComposer

Carthage CI Status Version License Platform

NKJMovieComposer is very simple movie composer for iOS.

demo image

Requirements

NKJMovieComposer higher requires Xcode 6, targeting either iOS 8.0 and above, or Mac OS 10.10 OS X and above.

  • AVFoundation.framework

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. CocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod "NKJMovieComposer", '~> 1.0'

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager for Cocoa application.

$ brew update
$ brew install carthage

To integrate Kingfisher into your Xcode project using Carthage, specify it in your Cartfile:

github "nakajijapan/NKJMovieComposer"

Then, run the following command to build the Kingfisher framework:

$ carthage update

Usage

1.Initialize

    let movieComposition = NKJMovieComposer()

2.Simple Example

Append Movies.

        // movie
        let movieURL = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("movie001", ofType: "mov"))
        layerInstruction = movieComposition.addVideo(movieURL)

3.Save File

        // compose
        self.assetExportSession = movieComposition.readyToComposeVideo(composedMoviePath)
        let composedMovieUrl = NSURL.fileURLWithPath(composedMoviePath)

        // export
        self.assetExportSession.exportAsynchronouslyWithCompletionHandler({() -> Void in


            // save to device
            var library = ALAssetsLibrary()

            if library.videoAtPathIsCompatibleWithSavedPhotosAlbum(composedMovieUrl) {
                library.writeVideoAtPathToSavedPhotosAlbum(composedMovieUrl, completionBlock: {(assetURL, assetError) -> Void in


                     // something code


                })

             }


        })

Author

nakajijapan

License

NKJMovieComposer is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].