aau-zid / BigBlueButton-liveStreaming

Streams a given BBB Meeting to an RTMP Server.
GNU General Public License v3.0
200 stars 159 forks source link

The live streaming to youtube is done very well, however it consumes more than 100% of the CPU. #27

Closed iwebsur closed 4 years ago

iwebsur commented 4 years ago

Describe the bug The transmission to youtube is done very well, however it consumes more than 100% of the CPU.

To Reproduce

  1. I configure according to the documentation -> OK
  2. There is no camera, only the default.pdf slide
  3. I make the live transmission to youtube -> OK
  4. On the command line I type $ top
  5. Result % CPU more than 100%

Expected behavior The consumption should not be so high if there is only the slide.

Screenshots Captura de Pantalla 2020-05-20 a la(s) 1 52 05 a  m

Thank you for your time in contributing to this wonderful complement to BigBlueButton.

mtsonline commented 4 years ago

thanks for your words! :-) nice to make people happy with this tool.

we are evaluating, where we can improve the cpu usage, but mainly ffmpeg causes the load beside the browser that captures the meeting.

Have you chat enabled? This doubles the cpu load of the browser part.

We are working on reducing at least this.

Maybe lowering the quality could decrease cpu usage of ffmpeg, we did not try this for now, but we will make the quality more flexible.

what type of server are you using / vm / bare metal / cores ...

cheers

Martin

iwebsur commented 4 years ago

I am testing on a dedicated server with features that exceed the minimum server requirements for BigBlueButton: Intel Xeon-E 2136 - 6c/ 12t - 3.3GHz/ 4.5GHz 64GB DDR4 ECC 2666 MHz

Therefore, the expected result is that it does not consume as many CPU resources.

I think the path is correct, so I recommend that you continue to develop this plugin which will surely help many who use BigBlueButton around the world. Thank you.

mtsonline commented 4 years ago

Hi, 6 cores defenitely will not be enough for bbb and the streamer. We tested the streamer on a separate server and it required 8 cores to run stable. we still are evaluating what would be the real minimum requirements and will post this in the readme, when we have a valid result.

Try it on a separate server or with more cores and tell us your results please. cheers