Coder Social home page Coder Social logo

Stuck on Starting Live Stream... about jibri HOT 10 CLOSED

jitsi avatar jitsi commented on August 16, 2024
Stuck on Starting Live Stream...

from jibri.

Comments (10)

aaronkvanmeerten avatar aaronkvanmeerten commented on August 16, 2024

We'd need to see the logs from jibri itself. The jicofo logs are actually accurate. When you first send a start command to the jibri via jicofo, it replies to the jicofo and sends a "busy" status, which results in jicofo reporting the jibri as unavailable (since it is now engaged in a recording operation). Then after 90 seconds jibri hasn't reported successful connection, so jicofo times it out and cancels.

The jibri logs may show that selenium failed to start, or that you didn't pass the audio checks, or that ffmpeg failed to start. Those will be your best bet to post here for more details on what to fix.

from jibri.

dmitriy-01 avatar dmitriy-01 commented on August 16, 2024

Thanks @aaronkvanmeerten

Could you tell me where can I find those jibri logs?
I can see jicofo.log and jvb.log under /var/log/jitsi/ folder but not jibri

from jibri.

dmitriy-01 avatar dmitriy-01 commented on August 16, 2024

Ah, found a way to see logs with this command:
journalctl -u jibri-xmpp -f

Here is the only error there:
ERROR: failed audio check, no audio levels detected: 1

from jibri.

dmitriy-01 avatar dmitriy-01 commented on August 16, 2024

However if I run check_audio.sh script it gives this output:

Recording raw data '/tmp/jibri-audio_check.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Hardware PCM card 0 'Loopback' device 1 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 22052
  period_size  : 5513
  period_time  : 125011
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 5513
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 22052
  silence_threshold: 0
  silence_size : 0
  boundary     : 6207086186423386112
  appl_ptr     : 0
  hw_ptr       : 0

Which seems to be fine.

Is there a way to debug or test audio?

from jibri.

aaronkvanmeerten avatar aaronkvanmeerten commented on August 16, 2024

The way to tell if the audio check passed or succeeded is to run that script and then see that the resulting .wav file it write out has more data than just 0x00 for every character in the file. If the test works for you by hand but still fails for the jibri user, ensure that the jibri user has the correct groups to access the audio devices (usually plugdev and audio and video groups).

from jibri.

dmitriy-01 avatar dmitriy-01 commented on August 16, 2024

@aaronkvanmeerten
Ok, I figured that I have a problem even with manual audio check:

arecord -d 1 -D hw:0,1 -v -f cd -t raw /tmp/jibri-audio_check.wav
xxd /tmp/jibri-audio_check.wav | grep -v ' 0000 ' | wc -l

Giving me 0

However when I run lsmod | grep snd_aloop, it's showing this:

snd_aloop              24576  0
snd_pcm               106496  1 snd_aloop
snd                    81920  6 snd_aloop,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_seq_device

Not sure if it's expected output. I use clean Amazon EC2 Ubuntu 16.04 instance and followed all the instructions, step-by-step.

Any help to debug this further appreciated! Thanks!

from jibri.

UbuntuEvangelist avatar UbuntuEvangelist commented on August 16, 2024

did you complete things to do after install ubuntu

from jibri.

dmitriy-01 avatar dmitriy-01 commented on August 16, 2024

Yes, even tried to do a fresh installation on new EC2 Ubuntu instance (just had to change boot kernel from aws to generic linux to install snd-aloop). Followed every step of the instructions. Spent many hours on installing, setting it up and testing and still exactly the same issue - everything in Jitsi works except Live Stream. And this time I used the latest Jitsi night build instead of stable.

Even hired a System Administrator to look specifically into this issue - still nothing, he couldn't help as well :)

Very frustrating, especially that I don't even know how to debug that at this point or what to do next to fix it!

from jibri.

ultraboby avatar ultraboby commented on August 16, 2024

I have the same issue Ubuntu 16.04 (VMware VM)

from jibri.

aaronkvanmeerten avatar aaronkvanmeerten commented on August 16, 2024

I would very much recommend using the latest java-based jibri from our debian respository. It's easier to use and is much more reliable about getting connected. I'm going to close this issue, but please open a new one if you run into any problems with the new java-based jibri!

from jibri.

Related Issues (20)

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.