LoginSignup
1
1

More than 1 year has passed since last update.

撮影済みの動画にフィルターをかける方法

既に存在している動画にフィルターをかけられれば、
面白い編集ができる。

フィルターはリアルタイムでしかかけられないのか?

既存の動画を処理したい。
しかし、動画の処理を書くのは大変そう。

SemanticImageで秒で解決

SemanticImageというライブラリなら、
かんたんに既存の動画にフィルターを適用できる。

使用方法

1、SemanticImageをインポートする

SwiftPackageManagerでSemanticImageを追加する。

import SemanticImage

2、フィルタリングを実行

guard let ciFilter = CIFilter(name: "CIEdgeWork", parameters: [kCIInputRadiusKey:3.0]) else { return }
sematicImage.ciFilterVideo(videoURL: url, ciFilter: ciFilter, { err, processedURL in
    // 処理済み動画URLをここで使う
})    

🐣


フリーランスエンジニアです。
お仕事のご相談こちらまで
簡単な開発内容をお書き添えの上、お気軽にご連絡ください。
rockyshikoku@gmail.com

Core MLやARKitを使ったアプリを作っています。
機械学習/AR関連の情報を発信しています。

Twitter
Medium

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1