Latest 0.0.1
Homepage https://github.com/openfresh/VideoCast-Swift
License MIT
Platforms ios 10.0
Frameworks VideoToolbox, AudioToolbox, AVFoundation, CFNetwork, CoreMedia, CoreVideo, OpenGLES, Foundation, CoreGraphics
Authors

VideoCast-Swift

VideoCast-Swift is a framework for broadcasting live video. It is based on VideoCore C++ library but rewritten in Swift. It currently works with iOS. It is a work in progress and will eventually expand to other platforms such as OS X.

Table of Contents

Setup

CocoaPods

Create a Podfile with the contents

platform :ios, '10.0'
pod 'VideoCast', '~> 0.0.1'
use_frameworks!

Next, run pod install and open the xcworkspace file that is created.

Architecture Overview

Samples start at the source, are passed through a series of transforms, and end up at the output.

e.g. Source (Camera) -> Transform (Composite) -> Transform (H.264 Encode) -> Transform (RTMP Packetize) -> Output (RTMP)

Features

  • Streaming protocols
    • RTMP publish
    • SRT
  • Encoders
    • H.264
    • HEVC
    • AAC
  • Multiplexers
    • MPEG-2 TS
    • MP4 for recording
  • Mixers
    • Video
    • Audio
  • Sources
    • Camera
    • Microphone

Build SRT

git clone https://github.com/openfresh/VideoCast-Swift.git
cd VideoCast-Swift

git submodule update --init

cd SRT
./build_openssl.sh 
./build_srt.sh

Version History

  • 0.1.0
    • Initial CocoaPods version

Latest podspec

{
    "name": "VideoCast",
    "version": "0.0.1",
    "license": "MIT",
    "summary": "A framework for broadcasting live video",
    "homepage": "https://github.com/openfresh/VideoCast-Swift",
    "authors": {
        "Tomohiro Matsuzawa": "[email protected]"
    },
    "source": {
        "git": "https://github.com/openfresh/VideoCast-Swift.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": [
        "Source/**/*.swift",
        "SRT/*.{h,cpp}",
        "SRT/Includes/*.h"
    ],
    "public_header_files": [
        "SRT/Includes/*.h",
        "SRT/udt_wrapper.h"
    ],
    "vendored_libraries": "SRT/*.a",
    "frameworks": [
        "VideoToolbox",
        "AudioToolbox",
        "AVFoundation",
        "CFNetwork",
        "CoreMedia",
        "CoreVideo",
        "OpenGLES",
        "Foundation",
        "CoreGraphics"
    ],
    "libraries": "c++",
    "pod_target_xcconfig": {
        "CLANG_WARN_DOCUMENTATION_COMMENTS": "NO"
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This