Git Product home page Git Product logo

ffmpeg-livestream-twitch's Introduction

Software used

  • FFmpeg (Streaming/Screen Capture)

    • x11grab for screen capture
    • libx264 for h264 encoding
    • fdk aac encoder
  • Jack Audio

    • qjackctl to set up routing/patchbay and launch jack
    • pulseaudio sink -> jack audio for general non-jack audio sources
    • Non-mixer for handling and monitoring audio levels + ladspa effects on microphone

Known issues

  • x11grab isn't incredibly light on resources, especially if capturing opengl windows
  • things going fullscreen (and changing resolutions) will probably destroy everything
  • lots of past duration errors which may not actually mean anything

Why I'm not using obs

I'm currently on a system which doesn't have a gpu that supports OBS (old integrated intel graphics)

How I do it....

Audio

Pulseaudio is used for capturing alsa/pulseaudio applications that don't support jack directly, disavantage is added latency from running 2 sound systems. default.pa is configured with

load-module module-stream-restore restore_device=false

So applications always (hopefully) just use the selected input instead of remembering an incorrect one.

JACK is the main force behind audio routing and qjackctl is used as an easy method way to start/configure JACK.

Qjackctl is setup to launch jack2 (w/ dbus interface) which tells pulseaudio (with jack plugin installed) to create a jack sink, the additional startup scripts (in /jack-stuff) switch the default pulseaudio sink to the JACK sink and switch current clients over so I don't have to do it manually.

Before going to FFmpeg's jack input everything is routed into Non-mixer so I can control volume levels (and add ladspa effects to my microphone) and then routed out from there to FFmpeg.

Qjackctl's patchbay remembers the connections used and automatically applies them.

Video

Video is currently very basic and unflexable, I can select a window in order to capture a specific area of my desktop, however after it is set it can not be modified nor does it follow changing window position.

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.