versatica / mediasoup

Cutting Edge WebRTC Video Conferencing
https://mediasoup.org
ISC License
6.04k stars 1.11k forks source link

Bug Simulcast plainTransport -> webrtcTransport #1404

Open EtiennePestre opened 1 month ago

EtiennePestre commented 1 month ago

Bug Report

Environment

Issue description

When simulcasting with FFmpeg, I can't get multiple clients to work at the same time. Only one works, and the others freeze.

image

In this schema MediasSoupClient2 dosen't receive the video. In chrome chrome://webrtc-internals/ I see a lot of lost package:

image

If I stop MediasSoupClient1, MediasSoupClient2 starts receiving packets and the video works fine. However, if I start a new client, MediasSoupClient2 stops receiving packets and the video stops running.

The workaround I found is to disable liburing in meson_options.txt

I found a workaround because everything works in an older version of Mediasoup. The bug appeared when updating to version 3.13.14, exactly at this commit https://github.com/versatica/mediasoup/commit/ad2d8146e21f6343fb8bcd189c2a9e1e5215925c

jmillan commented 1 month ago

I cannot get a glimpse of the reason why liburing could be related to such thing.

The given bug description is definitely not sufficient for making any diagnostic. @EtiennePestre, please expose as much detail as possible of what you are doing and what you are getting.

I can't get multiple clients to work at the same time. Only one works, and the others freeze

What does this mean exactly?

EtiennePestre commented 1 month ago

I have created this thread in the discourse that explains the problem: https://mediasoup.discourse.group/t/key-frame-not-receiv-by-client/5933

EtiennePestre commented 1 month ago

The problem is that the router distributes RTP packets to only one consumer.

ibc commented 1 month ago

I have created this thread in the discourse that explains the problem:

https://mediasoup.discourse.group/t/key-frame-not-receiv-by-client/5933

The thing about reporting an issue in GitHub is to properly describe the issue from scratch rather than referencing a thread in a forum and asking the developers to read it. So can you please edit the description of this issue with all the valid information about the issue?

ibc commented 1 month ago

@jmillan, the issue description has been properly updated now. I think we can test this issue by using the mediasoup-demo app (in Linux so liburing is enabled) by connecting many browsers to the same room and producing audio and video using the ffmpeg or gstreamer clients included in mediasoup-demo/app.