• Stars
    star
    253
  • Rank 160,776 (Top 4 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 3 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
106
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

AnimatedImage

High-performance animation image library.
Swift
57
star
8

VPNDetector

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

Swiftbot

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

Holo

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

notion

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

NFXPermissionViewController

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

DAWNText

The text rendering component like SwiftUI's Text.
Swift
43
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

ColorPicker

A opensource color picker UI component for iOS
Swift
23
star
23

MediaViewer

MediaViewer is customizable preview library
Swift
23
star
24

UpperBodyPoseTracker

Swift
22
star
25

iOSDC19-Example

Swift
22
star
26

FloatUpEffect

Swift
21
star
27

NFXBubblePoolView

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

DesireKeyboard

Swift
17
star
29

ARKitRecorder

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

CIFilterCam

Swift
16
star
31

PixelArtKit

Swift
14
star
32

AppIconGen

Unify management of application icons.
Swift
14
star
33

DrawerPresentation

Swift
14
star
34

ContinueControl

A simple continuation control like a UIRefreshControl.
Swift
12
star
35

reader-mode-demo

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

SemanticVersioning

Swift
11
star
37

BlueDress

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

Bitrise-Swift

Swift
9
star
39

visionOS_30Days

Swift
9
star
40

PlaydateSwift

Swift
9
star
41

swift-line-algorithms

Swift
8
star
42

H264DecodeSample

Decode h264 using VTDecompressionSession example.
Swift
8
star
43

SCNVideoWriter

A simple recorder for SceneKit.
Swift
8
star
44

RefreshControl

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

XCTemplateInstaller

Swift
7
star
46

NFAppStorage

Swift
7
star
47

BuildAtPlugin

Swift
7
star
48

SafePresentation

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

ReplayRecorder

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

InverseTableView

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

KingfisherWebP

Swift
6
star
52

BabyMetal

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

unsubscribe-list

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

WorkflowKit

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

Kitsunebi_Metal

[WIP] Kitsunebi using Metal.
Swift
5
star
56

Swinub

A mastodon api library written in swift.
Swift
5
star
57

HexToClr

Swift
4
star
58

FullFeedback

Swift
4
star
59

NativeScrollView

UIScrollView on SwiftUI
Swift
4
star
60

SwiftUIWeeklyLayoutChallenge

Swift
4
star
61

Rotoscope

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

SampleCam

Swift
4
star
63

BackportContentUnavailableView

Swift
4
star
64

TextContainerLayoutGuide

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

TwitterVideoUploader

Swift
3
star
66

vear-xcodegen-yaml-example

Makefile
3
star
67

SwiftUIExtensions

Swift
3
star
68

SwiftUIWorkaround

Swift
3
star
69

ColorSupport

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

CodableMapper

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

NFQuickActionSheet

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

inaba

Interface Builder validator. (beta)
Swift
2
star
73

MetadataExample

get struct metadata example.
Swift
2
star
74

amg

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

ascension

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

DebugMenuConsolePlugin

Swift
2
star
77

AlphaMaskVideoPlayerView

Swift
2
star
78

HostingView

Swift
2
star
79

SJPageViewController

Swift
2
star
80

noppefoxwolf

2
star
81

presentations

登壇md
Swift
2
star
82

MP4BoxDumper.swift

MP4 box tree dumper
Swift
2
star
83

RambaMaker

Swift
2
star
84

Technical

SCNTechnique builder
Swift
2
star
85

Pager

A small horizontal paging library
Swift
2
star
86

SwiftDataUIKit

Swift
2
star
87

ConsoleKit

Swift
1
star
88

ContainerView

Typesafe embed content.
Swift
1
star
89

Animator

Shell
1
star
90

MVVMSample

Swift
1
star
91

BitlinkFinder

Swift
1
star
92

Feedlinx

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

Playdate

C
1
star
94

BitDebug

Your debug menu presentable anywhere.
Shell
1
star
95

SwiftPMUIKitImportDemo

Swift
1
star
96

AppleLoginKit

1
star
97

Kuda

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

LeapLink

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

RelativeDateFormat

Swift
1
star
100

PremiumKit

Swift
1
star