Screen sharing from lower bandwidth users slow, low video quality
We're really enjoying BigBlueButton so far, thank you for all the hard work creating this project.
The main feature we are utilizing is the screen sharing. One thing we've noticed is that users with slower upload speeds are having difficulty sharing their screens. The users in question both have a 1mbps upload speed. When sharing their screen, the text is grainy and updates are very slow to see on the remote end. Are there any recommended tweaks for Kurento or another BBB component that will allow lower bandwidth users to share their screens with better quality and without using their whole upload speed?
I see in the conference-media-specs section of the Kurento config a speed of 1.5mbps 'tias_content'. Does this mean that anyone sharing their screen would need to have at least 1.5mbps of upload speed to share without slowdowns or quality drops?
Below are the current contents of our /usr/local/bigbluebutton/bbb-webrtc-sfu/config/default.yml file.
kurento:
- ip: <ip>
url: ws://<hostname>:8888/kurento
video-transposing-ceiling: 50
audio-transposing-ceiling: 100
localIpAddress: <ip>
acceptSelfSignedCertificate: false
redisHost: 127.0.0.1
redisPort: "6379"
clientPort: "3008"
minVideoPort: 30000
maxVideoPort: 33000
mediaFlowTimeoutDuration: 15000
from-screenshare: from-screenshare-sfu
to-screenshare: to-screenshare-sfu
from-video: from-video-sfu
to-video: to-video-sfu
from-audio: from-audio-sfu
to-audio: to-audio-sfu
to-akka: to-akka-apps-redis-channel
from-akka: from-akka-apps-redis-channel
to-stream: to-sfu-redis-channel
from-stream: from-stream-sfu
to-html5: to-html5-redis-channel
common-message-version: 2.x
screenshareKeyframeInterval: 0
screenshareEnableFlashRTPBridge: false
recordScreenSharing: true
recordWebcams: true
recordingBasePath: file:///var/kurento
recordingMediaProfile: WEBM_VIDEO_ONLY
recordingFormat: webm
redisExpireTime: 1209600
mcs-path: /mcs
mcs-port: 3010
mcs-address: localhost
mcs-ws-timeout: 30000
freeswitch:
ip: <ip>
port: "5066"
esl_ip: ESL_IP
esl_port: ESL_PORT
log:
filename: /var/log/bbb-webrtc-sfu/bbb-webrtc-sfu.log
level: verbose
bbb-stream:
image_name: bbb-stream
container_type: docker
bigbluebutton_url: BBBHOST
bigbluebutton_secret: BBBSECRET
bot_name: BBBBOTNAME
bot_join_options:
userdata-html5autoswaplayout: false
userdata-html5hidepresentation: false
k8s:
namespace: default
template:
apiVersion: batch/v1
kind: Job
metadata:
name: bbb-stream-
spec:
template:
spec:
containers:
- name: bbb-stream-firefox
image: gcr.io/PROJECT-ID/bbb-stream
env:
- name: LINK
value: ""
- name: OUTPUT
value: ""
restartPolicy: OnFailure
backoffLimit: 0
processes:
- path: ./lib/mcs-core/process.js
- path: ./lib/screenshare/ScreenshareProcess
- path: ./lib/video/VideoProcess.js
- path: ./lib/audio/AudioProcess.js
media-server-adapters:
- path: kurento/kurento.js
name: Kurento
- path: freeswitch/freeswitch.js
name: Freeswitch
conference-media-specs:
codec_video_main: VP8
codec_video_content: VP8
codec_audio: ANY
H264:
profile_level_id: 42e01f
packetization_mode: "0"
level_asymmetry_allowed: "0"
tias_main: "300000"
as_main: "300"
tias_content: "1500000"
as_content: "1500"
max_mbps_main: "0"
max_fs_main: "0"
max_br_main: "0"
max_mbps_content: "0"
max_fs_content: "12288"
max_br_content: "0"
VP8:
tias_main: "300000"
as_main: "300"
tias_content: "1500000"
as_content: "1500"
OPUS:
useinbandfec: "0"
maxaveragebitrate: "30000"
maxplaybackrate: "48000"
ptime: "20"
minptime: "10"
maxptime: "40"
That's an upper limit. It doesn't force anything, just states it cannot go over 1.5mbps. You can try lowering it in the config file (lower both tias_content and as_content, e.g.: for 800kpbs, tias_content: 800000, as_content: 800) and restarting the bbb-webrtc-sfu component to see if it alleviates anything.
1mbps is a bit too low, though, for screensharing, so you can expect it to at least have a lower FPS to be able to cope with the conditions you're describing. Depending on the resolution of the screen being shared, you won't be able to have a high FPS stream nor an artifact-free one.
The browser also automatically throttles the source stream if it detects high CPU usage or it gets notified of too many losses. This is in the form of both resolution and temporal/FPS layering. One suggestion I can give is recommending your users to use application-specific screensharing if they're not sharing the whole screen. Preferably resizing the shared screen to a smaller one.
May I ask what's the browser in question as well? Have they specifcally tried sharing the screen on latest version of Firefox, for instance?
This particular user is on Firefox 68.0.1 (windows, 64-bit). I updated the Kurento config to use 600kbps instead. When I share my screen from my connection (very fast upload (80mbps)) the remote end did does show a bit more artifacts (but still legible enough once movement settles down). If the user shares her screen the quality is much lower than when I was sharing.
Update: I had our user try sharing her screen via demo.bigbluebutton.org and we had similar results to our self-hosted server. She shared her screen but I couldn't see it (just a grey background with no spinning arrows). I did see her screen for a second right before she stopped sharing (about 45 seconds after initiating the share).
That's a really low requirement for screensharing (600kbps). I'm afraid the artifacts and low FPS are to be expected, depending on the screen size being shared. As I said, should recommend the user to share a resized application that is smaller in resolution. Should alleviate things in that scenario.
Also recommend using Chrome for that scenario right now. It seems to be a bit more aggressive in throttling FPS rather than quality. That doesn't mean Firefox doesn't work; it works very well, even more than Chrome when you have a good bandwidth.
I don't think there's much we can do here though. I'll let others chime in.
Guys good afternoon, I found the file to reduce this delay, apparently it is related to the FPS of the video that here in mine was considering a maximum of 10 fps,
File path : /usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml
Line in :
video: frameRate: ideal: 30 max: 60 width: max: 2560 height: max: 1600 audio: true
There the ideal and max was 5 and 10 and I changed it to 30 and 60, imagining 30 and 60 FPS limit in the video
Then : service bbb* restart
After that I started a meeting again and noticed the improvement when I shared the screen
Translated with DeepL.com (free version)