• Stars
    star
    104
  • Rank 330,538 (Top 7 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

YiVideoEditor

CI Status Version License Platform

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

YiVideoEditor是一个视频编辑库。支持旋转、裁剪、增加图层(水印)、增加音频。

Installation

YiVideoEditor is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'YiVideoEditor'

Usage

let videoEditor = YiVideoEditor(videoURL: videoURL)
videoEditor.rotate(rotateDegree: .rotateDegree90)
videoEditor.crop(cropFrame: CGRect(x: 10, y: 10, width: 300, height: 200))
videoEditor.addLayer(layer: layer)
videoEditor.addAudio(asset: audioAsset, startingAt: 1, trackDuration: 3)
videoEditor.export(exportURL: exportUrl) { [weak self] (session) in
    guard let `self` = self else {
        return
    }
    if session.status == .completed {
        let vc = VideoViewController(videoUrl: exportUrl)
        self.navigationController?.pushViewController(vc, animated: false)
    }
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

License

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

More Repositories

1

Monkey

Monkey is an unofficial GitHub client for iOS,to show the rank of coders and repositories.
Objective-C
1,784
star
2

NetworkEye

a iOS network debug library, monitor HTTP requests
Objective-C
1,382
star
3

MVVMDemo

MVVM应用在iOS的Demo,主要通过经典的TableView来演示
Objective-C
329
star
4

YiRefresh

a simple way to use pull-to-refresh.下拉刷新,大道至简,最简单的网络刷新控件
Objective-C
252
star
5

hello-weex

hello-weex包括一个Weex App(GitHub第三方App),和自己扩展的WeexiOSKit(iOS上的常用组件与模块)。
Java
191
star
6

DecouplingKit

decoupling between modules in your iOS Project. iOS模块化过程中模块间解耦方案
Objective-C
139
star
7

YiSlideMenu

SlideMenu,简洁的侧边菜单,清爽风格.
Objective-C
94
star
8

MonkeyForMac

Monkey is a unofficial GitHub client
Objective-C
66
star
9

YiLotteryDemo

模仿美团积分抽奖功能
Objective-C
61
star
10

StateMachineSwift

StateMachineSwift, state machine library for Swift, supports an arbitrary number of States and Events.
Swift
42
star
11

bluedog

蓝牙调试助手小程序,支持扫描蓝牙设备,读取设备服务与特征
JavaScript
33
star
12

NewsDemo

模仿网易新闻客户端首页,实现滑动选择菜单。
Objective-C
30
star
13

markthing

online markdown editor with live preview. 在线markdown编辑器。http://coderyi.com/markthing/
JavaScript
28
star
14

ActionStage

ActionStage that dispatch message, decoupling between modules
Objective-C
27
star
15

monkeyweb

Monkey show the rank of coders and repositories on GitHub. http://coderyi.com/monkeyweb/
TypeScript
24
star
16

iOSSourceCodeAnalyze

《iOS开源库源码分析》http://coderyi.com/iOSSourceCodeAnalyze/
HTML
16
star
17

EventBus

A lightweight event bus for C++
C++
12
star
18

AutoLayoutDemo

AutoLayout代码实现方式的基本使用,包括NSLayoutConstraint创建一个约束,VFL创建一组约束以及使用Autolayout实现UITableView的Cell动态布局和高度动态改变
Objective-C
12
star
19

URLParser

an url parse/encode/decode tool
C++
10
star
20

iOSDemos

iOSDemos
Swift
9
star
21

YiUUID

This library provides the simplest API to obtain universally unique identifiers with different levels of persistence.
Swift
8
star
22

YiSwitch

类似UISwitch,想要水平的竖直的,圆的方的,有图片的没图片的,各种YiSwitch,最后原谅我的图片。
Objective-C
8
star
23

AssetsLibraryDemo

通过AssetsLibrary实现访问相册
Objective-C
6
star
24

YiDispatchQueue

a more convenient tool for dispatch queue
Objective-C
6
star
25

monkey-bytedance-miniapp

Monkey是一个可以展示GitHub上开发者、仓库排名的应用
JavaScript
5
star
26

qrcode-generator

在线二维码生成器,解码。http://coderyi.com/qrcode-generator/
Vue
5
star
27

YiAppUpdater

Checks if there is a newer version of your app in the AppStore and alerts the user to update.
Swift
5
star
28

StringFormat

A String Format Kit
Swift
4
star
29

monkey-weex

Monkey是一个GitHub Weex客户端,展示GitHub用户和仓库的排名
JavaScript
4
star
30

statemachine

An C++ library for implementing state machines.
C++
3
star
31

monkey-github-api

GitHub API for TypeScript
TypeScript
3
star
32

SystemServiceSwift

all available information about a device.
Swift
3
star
33

YiViewDrag

UIView extension that adds dragging capabilities
Swift
2
star
34

JavaScriptDemos

Objective-C
2
star
35

python-demos

python3-demos
Python
2
star
36

CounterVIPER

A simple example of the VIPER architecture for iOS apps
Swift
2
star
37

blog

1
star
38

coderyi.github.io

HTML
1
star
39

TestProject

1
star