Giter Site home page Giter Site logo

scale-jibri-docker's Introduction

Scale multiple Jibri instance with Docker

1. Requirements

  • Any linux distrobution with Alsa/Pulseaudio support.
  • Proper Internet access.
  • Docker installed.
  • Required kernel module for playback interfaces
  • Valid SSL certificate for jitsi-web instance.

1.1 Install required module for the kernel

Keep in mind, after installation maybe required to reboot.

# install the module
apt update && apt install linux-image-extra-virtual
# configure 5 capture/playback interfaces
echo "options snd-aloop enable=1,1,1,1,1 index=0,1,2,3,4" > /etc/modprobe.d/alsa-loopback.conf
# setup autoload the module
echo "snd-aloop" >> /etc/modules
# check that the module is loaded
lsmod | grep snd_aloop

2. Deploy jitsi-meet stack.

First deploy whole jitsi meet based on official documentation, it mean you should have working version of jitsi-meet stack with ability to record at least one session.

3. Scale Jibri instances

you can scale container of Jibri with these command.

Let's assume we want to have 4 concurrent recording

docker-compose -f docker-compose.yml -f jibri.yml  up -d --scale jibri=4

Then you will see something like this:

root@test:~/docker-jitsi-meet# docker-compose -f docker-compose.yml -f jibri.yml  up -d --scale jibri=4
dockerjitsimeet_prosody_1 is up-to-date
dockerjitsimeet_web_1 is up-to-date
dockerjitsimeet_jicofo_1 is up-to-date
dockerjitsimeet_jvb_1 is up-to-date
Starting dockerjitsimeet_jibri_1 ... done
Creating dockerjitsimeet_jibri_2 ...
Creating dockerjitsimeet_jibri_3 ...
Creating dockerjitsimeet_jibri_4 ...
Creating dockerjitsimeet_jibri_2 ... done
Creating dockerjitsimeet_jibri_3 ... done
Creating dockerjitsimeet_jibri_4 ... done

Then you should **change the loopback device in /home/jibri/.asoundrc **

docker exec -t dockerjitsimeet_jibri_2 sed -i 's/Loopback/2/g' /home/jibri/.asoundrc
docker exec -t dockerjitsimeet_jibri_3 sed -i 's/Loopback/3/g' /home/jibri/.asoundrc
docker exec -t dockerjitsimeet_jibri_4 sed -i 's/Loopback/4/g' /home/jibri/.asoundrc

Now restart the containers:

docker stop dockerjitsimeet_jibri_{2,3,4}
docker start dockerjitsimeet_jibri_{2,3,4}

scale-jibri-docker's People

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.