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

Live users get kicked out of meetings when streaming more than one meeting in docker containers. #21

Closed beri-sela closed 3 years ago

beri-sela commented 4 years ago

When streaming several meetings in separate docker containers, both users get kicked out shortly after the second stream starts, thereby ending both streams.

Steps to reproduce the behavior:

  1. Create 2 BigBlueButton meetings and 2 stream URLs on YouTube(you will need 2 accounts).
  2. Create 2 folders e,g Stream1 and Stream2 and put a docker-compose.yml file in each folder.
  3. Set the contents of each docker-compose.yml file, including meeting ID, and stream URL.
  4. In folder Stream1, start the first stream with docker-compose up -d and observe that Live user joins the meeting and the first stream start.
  5. In folder Stream2, start the second stream with docker-compose up -d and observe that Live user joins the meeting for a few seconds but stream 2 does not start.
  6. Both users get kicked out of meetings and stream 1 stops.

Expected behavior

Both meetings should be streamed to respective URLs and Live users should not get kicked out.

Desktop :

mtsonline commented 4 years ago

Hi and thanks for your feedback. did you have a look at the load of your server? I guess two streams on one server will not work.

The streaming causes very high cpu usage - to give some recommendations, we are evaluating what the minimum requirements are.

we also try to improve it more in future versions.

in our tests four webcams and one stream needed 8 cpu cores and 4 GB of memory.

we will test if there is some additional problem with two streams on one server though.

cheers

mbile commented 4 years ago

Hello @beri-sela,

Can you please guide me on how to get stream URLs from my youtube channel. I am trying to implement the bbb-liveStreaming solution but can't find the RTMP server URL.

Thanks

snehgin commented 4 years ago

@mtsonline @beri-sela I am getting this issue even while streaming only one meeting provided the BBB server and docker for streaming are on different machines.

mtsonline commented 4 years ago

what kind of server and how many cpu/memory do you have?

snehgin commented 4 years ago

what kind of server and how many cpu/memory do you have?

8 CPU, 20GB. Please see the screenshot. I am facing the issue with both BBB and streaming on same machine also now. bbb_server

snehgin commented 4 years ago

@mtsonline Is there anything like inactivity timeout, the live stream user gets kicked out after approx. 30 seconds after joining?

mtsonline commented 4 years ago

I think you have a different problem - your users do not get kicked out when you have more than one streaming do you?

Could you have a look at other closed issues, you seem to have the same problem as others already had. ;-)

does it start to stream at all? sounds as if your live user does not get into the room? what do you see when you open the join url shown in the docker logs (you can start without -d to see them on the commandline)

snehgin commented 4 years ago

@mtsonline Thanks for the inputs I checked bug 78.

bbb_error

mtsonline commented 3 years ago

think this one should be solved in the current version ...