Skip to content

mitchellporter/SwiftVideo

 
 

Repository files navigation

SwiftVideo

GitHub Actions

Video streaming and processing framework for Linux, macOS, and iOS/iPadOS (maybe even tvOS). Swift 5.1+ because I'm just opening this up and I really don't feel like dealing with older versions of Swift.

This is very much a WIP. Support is currently better for Linux than macOS and even less-so for iOS devices. Work needs to be done on the Podfile for better Xcode interop (swift package manager doesn't do such a great job there).

Getting Started

For now, check the Examples directory for some hints about how to use this framework. I promise I will be creating documentation to clarify how it all fits together and how you can do useful, interesting things with this framework.

Current Features

  • RTMP Client and Server
  • "Flavor" Client and Server (toy protocol, see flavor.md)
  • OpenCL Support
  • Metal Support
  • Audio Decode/Encode (via FFmpeg and CoreAudio)
  • Video Decode/Encode (via FFmpeg and CoreVideo)
  • Camera capture (macOS/iOS)
  • Text rendering (via FreeType)
  • Video Mixer
  • Audio Mixer
  • Audio Resampler (via FFmpeg+SOX)

FFmpeg support is thanks to https://github.com/sunlubo/SwiftFFmpeg

About

Swift Video Framework for Linux, macOS, and iOS/iPadOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 94.5%
  • Metal 1.6%
  • Dockerfile 1.4%
  • C++ 1.3%
  • Other 1.2%