Code Monkey home page Code Monkey logo

tenpercentstreamer's Introduction

TenPercentStreamer

10 Percent Streamer

Settings (Program.cs)

Ln 55 - Width, Height, FrameRate, Change Percent

var videoSource = new TenPercentSource(new VideoConfig(1920, 1080, 30), 10);

Ln 60 - Vp8 Encoder Settings (tuned for speed on my macbook not quality)

videoEncoder.SetCodecConfig(new FM.LiveSwitch.Vpx.EncoderConfig()
{
    MinQuantizer = 4, // recommended 0 - 4 - accepts 0-63 lower higher quality
    MaxQuantizer = 63, // recommended 50 - 63 - accepts 0-63 lower higher quality
    EndUsageMode = EndUsageMode.Vbr, // Constant Quality, CQ level is default to 10 (not exposed)
    Threads = 4, // Max number of threads allowed.
    Cpu = 4, // 0 - 16 possible, lower is slower but better quality
    ErrorResilient = ErrorResilientType.Default, // loss vs noisy
    LagInFrames = 0, // not for realtime
    UndershootPercentage = 0, //0-1000
    OvershootPercentage = 0, // 0-1000
    KeyframeMode = KeyframeMode.Disabled, // we will produce when requested
    ResizeAllowed = false, // allow encoding and sending a smaller frame thats upscaled in decoder
    ResizeDownThreshold = 30, // 0-100
    ResizeUpThreshold = 70, // resizedown-100
    Profile = 0,
    Usage = 0,
    BufferSize = 6500,
    BufferInitialSize = 4500,
    BufferOptimalSize = 5000
});
videoEncoder.TargetBitrate = 4500; // Recommended value depends on frame rate and resolution. https://stream.twitch.tv/encoding/
videoEncoder.MaxBitrate = 6500; // Recommended value depends on frame rate and resolution. 

Docker Setup

  • docker build -t tenpercent-streamer -t tenpercent-streamer .
  • for Mac M1 chips: DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build -t tenpercent-streamer .
  • docker run -it --rm tenpercent-streamer

Deploy to AWS

  • Log in: docker login --username AWS 237903779387.dkr.ecr.us-east-1.amazonaws.com/liveswitch-cognitive-services-speech-to-text
  • Build (see above)
  • Tag: docker tag tenpercent-streamer 237903779387.dkr.ecr.us-east-1.amazonaws.com/tenpercent-streamer
  • Push: docker push 237903779387.dkr.ecr.us-east-1.amazonaws.com/tenpercent-streamer:latest

tenpercentstreamer's People

Contributors

jvenema avatar jakesteele avatar jerodvenemafm avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.