• Stars
    star
    253
  • Rank 154,942 (Top 4 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 2 years ago

Reviews

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

Repository Details

Overlay alpha channel video animation player view using Metal.

Overlay alpha channel video animation player view using Metal.

Example

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

Usage

At the top of your file, make sure to import Kitsunebi

import Kitsunebi

Then, instantiate PlayerView in your view controller:

private lazy var playerView: PlayerView = PlayerView(frame: view.bounds)!

override func viewDidLoad() {
    super.viewDidLoad()
    view.addSubview(playerView)
}

You can play transparency video any framerate. baseVideo is colornize video, alphaVideo is alpha channel monotone video. please see example video files.:

let baseVideoURL = Bundle.main.url(forResource: "base", withExtension: "mp4")!
let alphaVideoURL = Bundle.main.url(forResource: "alpha", withExtension: "mp4")!
playerView.play(base: baseVideoURL, alpha: alphaVideoURL, fps: 30)

Installation

Kitsunebi is available SwiftPM and Carthage. To install it, simply add the following line to your SwiftPM:

dependencies: [
    .package(url: "https://github.com/noppefoxwolf/Kitsunebi", .upToNextMajor(from: "v1.0.0"))
]
github "noppefoxwolf/Kitsunebi" "v1.0.0"

Author

Tomoya Hirano, [email protected]

License

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

Sample video file

http://basic.ivory.ne.jp

Backers

Split video using ffmpeg

ffmpeg -i base.mp4  -i alpha.mp4 -filter_complex "nullsrc=size=1500x1334 [base];[0:v] setpts=PTS-STARTPTS, scale=750x1334 [left];[1:v] setpts=PTS-STARTPTS, scale=750x1334 [right];[base][left] overlay=shortest=1 [tmp1];[tmp1][right] overlay=shortest=1:x=750" output.mp4

More Repositories

1

FlowBarButtonItem

Bar Button Item that can be moved anywhere in the screen, like Android's stickers button.
Shell
152
star
2

StackTableView

UITableView with stack animation.
Objective-C
119
star
3

Combinative

UI event handling using Apple's combine framework.
Swift
108
star
4

DebugMenu

Swift
104
star
5

RefreshUI

RefreshUI provide native refresh control to SwiftUI.
Swift
100
star
6

HandTracker

Detect 3d hand landmark from video stream.
Swift
69
star
7

VPNDetector

Will be secure your app from reverse engineering of network connection using by VPN.
Swift
55
star
8

Swiftbot

Swiftbot on slack. Inspired by kishikawakatsumi/swift-compiler-discord-bot
Swift
55
star
9

Holo

Dummy camera works on simurator without changes.
Swift
54
star
10

notion

noppefoxwolf/notion is a notion.so API library written in swift.
Swift
51
star
11

NFXPermissionViewController

If you use this library, the user put one cushion before the permission agreement.
Objective-C
47
star
12

AnimatedImage

High-performance animation image library.
Swift
46
star
13

DAWNText

The text rendering component like SwiftUI's Text.
Swift
41
star
14

NFXPullTab

Slide and select tab
Objective-C
40
star
15

WarpGeometryFilter

Swift
39
star
16

StackPageView

Stacked style tableview
Swift
33
star
17

SkinSmoothingFilter

Swift
33
star
18

AR2DFaceDetector

Swift
31
star
19

NFXTourViewController

This is the ViewController that the user can see in a simple way the tour image.
Objective-C
30
star
20

NFXRippleCell

UItableviewCell get ripple effect.
Objective-C
26
star
21

TileShiftView

Swift
26
star
22

UpperBodyPoseTracker

Swift
22
star
23

iOSDC19-Example

Swift
22
star
24

MediaViewer

MediaViewer is customizable preview library
Swift
21
star
25

NFXBubblePoolView

バブルマップもどき
Objective-C
20
star
26

ColorPicker

A opensource color picker UI component for iOS
Swift
19
star
27

DesireKeyboard

Swift
17
star
28

ARKitRecorder

Simple video recorder for ARKit. Real Time record, Aspect ratio and timestamp are perfect.
Swift
16
star
29

CIFilterCam

Swift
16
star
30

PixelArtKit

Swift
14
star
31

AppIconGen

Unify management of application icons.
Swift
14
star
32

FloatUpEffect

Swift
13
star
33

reader-mode-demo

WKWebView readermode scraping. using safari reader js.
JavaScript
11
star
34

SemanticVersioning

Swift
11
star
35

BlueDress

The library for convert Pixel format of CVPixelBuffer that can convert YCbCr to bgra using GPU.
Swift
11
star
36

ContinueControl

A simple continuation control like a UIRefreshControl.
Swift
11
star
37

DrawerPresentation

Swift
10
star
38

Bitrise-Swift

Swift
9
star
39

swift-line-algorithms

Swift
8
star
40

PlaydateSwift

Swift
8
star
41

H264DecodeSample

Decode h264 using VTDecompressionSession example.
Swift
8
star
42

SCNVideoWriter

A simple recorder for SceneKit.
Swift
8
star
43

RefreshControl

A customized refresh control based on UIRefreshControl.
Swift
7
star
44

XCTemplateInstaller

Swift
7
star
45

SafePresentation

Throw common warnings of ViewController presentation as error.
Swift
7
star
46

NFAppStorage

Swift
7
star
47

ReplayRecorder

Record screen using ReplayKit. Support export video file, filter and crop.
Swift
7
star
48

InverseTableView

InverseTableView is subclass of UITableView, able to insert like chat.
Swift
6
star
49

KingfisherWebP

Swift
6
star
50

BuildAtPlugin

Swift
6
star
51

BabyMetal

[Archive] Image and video processing using Metal.
Swift
5
star
52

unsubscribe-list

メールマガジンの解除時にメール内のunsubscribeボタンをクリックした後に、サインインを求められるか否か
5
star
53

WorkflowKit

Library for use shortcut files in Swift.
Swift
5
star
54

BackportContentUnavailableView

Swift
5
star
55

Kitsunebi_Metal

[WIP] Kitsunebi using Metal.
Swift
5
star
56

HexToClr

Swift
4
star
57

FullFeedback

Swift
4
star
58

NativeScrollView

UIScrollView on SwiftUI
Swift
4
star
59

Rotoscope

Rotoscode provide function that to retrieve tagged UIView.
Swift
4
star
60

SwiftUIWeeklyLayoutChallenge

Swift
4
star
61

SampleCam

Swift
4
star
62

TextContainerLayoutGuide

Easily put something around text using AutoLayout.
Swift
3
star
63

vear-xcodegen-yaml-example

Makefile
3
star
64

SwiftUIExtensions

Swift
3
star
65

TwitterVideoUploader

Swift
3
star
66

ColorSupport

This is support library for Colors. Simurate to use system Color of iOS 13 in every iOS.
Swift
3
star
67

CodableMapper

Codableが出たのでORMを消し去ろうとして生まれたORMがコレ
Swift
3
star
68

NFQuickActionSheet

Pinterest iOS app like long press menu actionsheet.
Swift
3
star
69

inaba

Interface Builder validator. (beta)
Swift
2
star
70

MetadataExample

get struct metadata example.
Swift
2
star
71

amg

Apple Music API client written in golang.
Go
2
star
72

ascension

Just swipe up card to kill task in AppSwitcher. for iPhoneX.
Logos
2
star
73

DebugMenuConsolePlugin

Swift
2
star
74

AlphaMaskVideoPlayerView

Swift
2
star
75

HostingView

Swift
2
star
76

SwiftUIWorkaround

Swift
2
star
77

SJPageViewController

Swift
2
star
78

noppefoxwolf

2
star
79

presentations

登壇md
Swift
2
star
80

MP4BoxDumper.swift

MP4 box tree dumper
Swift
2
star
81

RambaMaker

Swift
2
star
82

Technical

SCNTechnique builder
Swift
2
star
83

SwiftDataUIKit

Swift
2
star
84

ContainerView

Typesafe embed content.
Swift
1
star
85

Animator

Shell
1
star
86

MVVMSample

Swift
1
star
87

Feedlinx

Feedly API Library for iOS.
Objective-C
1
star
88

Playdate

C
1
star
89

BitDebug

Your debug menu presentable anywhere.
Shell
1
star
90

SwiftPMUIKitImportDemo

Swift
1
star
91

Kuda

Kuda provide debug tools in your app.
Swift
1
star
92

LeapLink

[WIP]Stream Leap Motion's tracking data over bluetooth or wifi.
C++
1
star
93

HickKit

Swift
1
star
94

NightFoxHelper

Helper methods and extensions for development of NightFox.
Swift
1
star
95

PythonKitExample

Swift
1
star
96

Publications

My publications history.
1
star
97

AppleLoginKit

1
star
98

CircularProgressView

CircularProgressView - FFCircularProgressView inspired blue circular progress view
Swift
1
star
99

DebugMenuFileBrowser

DebugHead plugin for able to open marmelroy/FileBrowser.
Swift
1
star
100

Stringtail

🦊Syntax suger for NSAttributedString.
Swift
1
star