LIVESTREMING: Unable to find an available Jibri, can't start

Hi everyone,
i installed jitsi meet and jibri on my server and everything works perfectly.

Dropbox registration works correctly.

Live streming tries to start but after a few minutes it tells me that the broadcast has stopped.

Attached the log files. I hope you can help me understand.browser.0.txt (2.1 MB) ffmpeg.0.txt (19.5 KB) jicofo.log (20.8 KB) jvb.log (45.3 KB) log.0.txt (43.9 KB)

Hi videomeetingthcs,
just found your post, after I placed a post that is somehow related.
I like to offer to work together.

A look through your logs showed an entry of "status has changed: BUSY -> IDLE " and that makes me think that your streaming connection is seen as idle.
I have no clue (for now) how this can be prevented, I guess that the receiving server is not sending acknowledgments to the sending server. This can be as simple as a fire wall blocking incoming traffic on the sending server / or the outgoing traffic on the receiving server

I hope that helps - cheers Claus

2020-05-04 16:10:49.676 INFO: [120] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 13 log entries for type browser
2020-05-04 16:10:49.750 INFO: [120] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 943 log entries for type driver
2020-05-04 16:10:49.855 INFO: [120] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Got 0 log entries for type client
2020-05-04 16:10:49.856 INFO: [120] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Leaving web call
2020-05-04 16:10:50.079 INFO: [120] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Quitting chrome driver
2020-05-04 16:10:50.267 INFO: [120] org.jitsi.jibri.selenium.JibriSelenium.leaveCallAndQuitBrowser() Chrome driver quit
2020-05-04 16:10:50.267 INFO: [120] org.jitsi.jibri.service.impl.StreamingJibriService.stop() Quit selenium
2020-05-04 16:10:50.267 INFO: [120] org.jitsi.jibri.status.JibriStatusManager.log() Busy status has changed: BUSY -> IDLE

Thanks for the reply, I opened the following ports on the server as a guide:

80 TCP
443 TCP
4443 TCP
10000 UDP

The registration on DROPBOX works correctly and keeping in mind that the jibri service is the same I don’t understand why the livestreaming doesn’t go

I specify that the virtual machine is unique for jitsi meet and jibri

Something is up with ffmpeg, it stopped abruptly:

2020-05-04 16:09:13.931 INFO: [117] ffmpeg.call() ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
2020-05-04 16:09:13.932 INFO: [117] ffmpeg.call()   built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
2020-05-04 16:09:13.979 INFO: [117] ffmpeg.call()   configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
2020-05-04 16:09:13.979 INFO: [117] ffmpeg.call()   libavutil      54. 31.100 / 54. 31.100
2020-05-04 16:09:13.979 INFO: [117] ffmpeg.call()   libavcodec     56. 60.100 / 56. 60.100
2020-05-04 16:09:13.979 INFO: [117] ffmpeg.call()   libavformat    56. 40.101 / 56. 40.101
2020-05-04 16:09:13.979 INFO: [117] ffmpeg.call()   libavdevice    56.  4.100 / 56.  4.100
2020-05-04 16:09:13.979 INFO: [117] ffmpeg.call()   libavfilter     5. 40.101 /  5. 40.101
2020-05-04 16:09:13.979 INFO: [117] ffmpeg.call()   libavresample   2.  1.  0 /  2.  1.  0
2020-05-04 16:09:13.979 INFO: [117] ffmpeg.call()   libswscale      3.  1.101 /  3.  1.101
2020-05-04 16:09:13.980 INFO: [117] ffmpeg.call()   libswresample   1.  2.101 /  1.  2.101
2020-05-04 16:09:13.980 INFO: [117] ffmpeg.call()   libpostproc    53.  3.100 / 53.  3.100
2020-05-04 16:09:13.980 INFO: [117] ffmpeg.call() Input #0, x11grab, from ':0.0+0,0':
2020-05-04 16:09:13.980 INFO: [117] ffmpeg.call()   Duration: N/A, start: 1588601353.969127, bitrate: N/A
2020-05-04 16:09:13.980 INFO: [117] ffmpeg.call()     Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1280x720, 30 fps, 30 tbr, 1000k tbn, 30 tbc
2020-05-04 16:09:13.980 INFO: [117] ffmpeg.call() Guessed Channel Layout for  Input Stream #1.0 : stereo
2020-05-04 16:09:13.980 INFO: [117] ffmpeg.call() Input #1, alsa, from 'plug:cloop':
2020-05-04 16:09:13.980 INFO: [117] ffmpeg.call()   Duration: N/A, start: 1588601353.598247, bitrate: 1536 kb/s
2020-05-04 16:09:14.980 INFO: [117] ffmpeg.call()     Stream #1:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s

maybe try copying the ffmpeg command Jibri runs (from the Jibri logs) and pasting it manually into the terminal to see if that works.

He gives me this back:

ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720 -thread_queue_size 4096 -i :0.0+0,0 -f alsa -thread_queue_size 4096 -i plug:cloop -acodec aac -strict -2 -ar 44100 -c:v libx264 -preset veryfast -maxrate 2976k -bufsize 5952k -pix_fmt yuv420p -r 30 -crf 25 -g 60 -tune zerolatency -f flv rtmp://a.rtmp.youtube.com/live2/cytr-ym8t-xtr7-admc

ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright © 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, x11grab, from ‘:0.0+0,0’:
Duration: N/A, start: 1588668042.644571, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1280x720, 30 fps, 30 tbr, 1000k tbn, 30 tbc
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cloop
[alsa @ 0x160f280] cannot open audio device plug:cloop (No such file or directory)
plug:cloop: Input/output error

@bbaldino @damencho can you help me please?

Are you running as the jibri user? Did you set up the .asoundrc file correctly?

thanks for the reply and for the availability.

Yes, the logs show that the user is jibri.

I am attaching my .asoundrc file.

From what I understand the service is the same for registration and livestreming.

The recording works perfectly, it saves me the files on the dropbox, everything perfect.

I don’t understand why livestreming doesn’t work

asoundrc.txt (764 Bytes) LIV_browser.0.txt (1.7 MB) LIV_ffmpeg.0.txt (2.9 KB) LIV_jicofo.log (23.5 KB) LIV_jvb.log (43.6 KB) LIV_log.0.txt (14.9 KB) REG_browser.0.txt (625.2 KB) REG_ffmpeg.0.txt (10.5 KB) REG_jicofo.log (23.1 KB) REG_jvb.log (46.8 KB) REG_log.0.txt (13.9 KB)

@saghul @damencho any ideas? Weird that it works for recording but not live streaming.

@bbaldino help me please!

Did you try what I said here? LIVESTREMING: Unable to find an available Jibri, can't start

I am having recording and streaming issues.

the streaming is unavailable

YES

Did you run ffmpeg as the Jibri user? I’d look at your asoundrc and the setup around cloop, something appears to be wrong there.

This?

Please help me!!!

Is your kernel support the snd_aloop modules?

What are the output of theese commands?

lsmod | grep snd_aloop
sudo modprobe snd_aloop
uname -a

This:

lsmod | grep snd_aloop:

snd_aloop 24576 0
snd_pcm 106496 1 snd_aloop
snd 81920 3 snd_aloop,snd_timer,snd_pcm

sudo modprobe snd_aloop
uname -a :

Linux VIDEOMEETING 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux