Coder Social home page Coder Social logo

ghostzephyr / metalvideoprocess Goto Github PK

View Code? Open in Web Editor NEW
146.0 7.0 32.0 32.83 MB

MetalVideoProcess is a High-Performance video effects processing framework. It's base on GPUImage3 Metal, support asynchronous and multithread processing.

License: MIT License

Objective-C 0.14% Swift 82.31% C++ 0.19% Metal 17.37%
video-processing metal ios gpuimage video-transition video-editing swift avfoundation video-encoding video-trim

metalvideoprocess's Introduction

MetalVideoProcess

MetalVideoProcess is a High-Performance video effects processing framework. It's base on GPUImage3 & Cabbage with AVFoundation, support asynchronous and multithread processing.

Technical requirements

  • Swift 5.0

  • Xcode 10.2 or higher on Mac or iOS

  • iOS: 11.0 or higher

  • OSX: 10.11 or higher

Features

  • Realtime smooth playback with filters
  • Support two video transitions
  • Support video motions
  • Video picture in picture
  • Transform video with multitouch
  • Support export video with H.265
  • Support video split, delete, insert, merge
  • High performance metal rendering

General architecture

MetalVideoProcess is built on GPUImage3 & Cabbage. We extend the rendering pipeline in gpuimage3 to adapt the rendering output of one to many targets, so as to realize the rendering of multiple video clips.

Layer

Architecture design of video transition:

videoTransitionDesign

Getting Started

Compile& import Framework

import MetalVideoProcess

How to use

let asset1 = AVAsset(url: Bundle.main.url(forResource: "test", withExtension: "mp4")!)
let item1 = MetalVideoEditorItem(asset: asset1)

do {
    let editor = try MetalVideoEditor(videoItems: [item1])
    let playerItem = editor.buildPlayerItem()
    let player = try MetalVideoProcessPlayer(playerItem: playerItem)

    let beautyFilter1 = MetalVideoProcessBeautyFilter()
    player -- > beautyFilter1 --> renderView
    self.player = player
    self.player?.playerDelegate = self
} catch {
	debugPrint("init error")
}

Sample

SimpleFourSquareVideo

iOS/Examples/SimpleFourSquareVideo

SimpleRealtimeFilterPlayback

iOS/Examples/SimpleRealtimeFilterPlayback

SimpleVideoExport

iOS/Examples/SimpleVideoExport

SimpleVideoEditor

iOS/Examples/SimpleVideoEditor

SimpleVideoTransition

iOS/Examples/SimpleVideoTransition

metalvideoprocess's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

metalvideoprocess's Issues

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.