Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Process video image data with Metal shading language

License

Notifications You must be signed in to change notification settings

tomisacat/VideoProcessWithMetal

Repository files navigation

VideoProcessWithMetal

It's a demo project to illustrate how to process video with Metal framework. This blog talks about the details.

The second blog talks about how to imitate Metal Performance Shaders.

Features

Click titles below to watch demo video on YouTube.

  1. Filter video sample buffer from camera

  2. Play local file with AVPlayer

  3. Transcode local file with AVAssetReader

TODO

  • Compute original texture into an intermediate texture instead of computing directly with MTKView(currentDrawable.texture)
  • Switch filter progressively when touch moved
  • Chaineble filters
  • Queueable commands(filter -> present -> append to file)
  • Clean debug information
  • Remove duplicate code

About

Process video image data with Metal shading language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published