question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Desktop sharing FPS override

See original GitHub issue

Description

I’m trying to get 30fps screen sharing working (in an embedded Jitsi Meet conference, using the external api). I’m using the configOverwrite flag as specified in config.js. According to the API docs it should work, but the value is not taking effect.

    // Optional desktop sharing frame rate options. Default value: min:5, max:5.
    // desktopSharingFrameRate: {
    //     min: 5,
    //     max: 5
    // },

I’ve reported about this issue before in the community forum.

Current behavior

The desktop sharing fps will always be 5, regardless of the values set for desktopSharingFrameRate. With the only exception: presenter mode (desktop sharing and then turning on the webcam). The desktop sharing feed is 30fps in this mode, but my webcam is in the frame. Turning off the webcam drops the fps back to 5, so this isn’t a workaround. Clearly Jitsi Meet is capable of sending a 30fps desktop sharing stream. Quite amazing. Would be great if it would respect the values set for desktopSharingFrameRate.

Expected Behavior

I’d expect it to apply the fps specified in desktopSharingFrameRate, since it’s a documented config setting.

Possible Solution

Properly implement the code handling the desktopSharingFrameRate key in configOverwrite. I can currently work around it by capturing my desktop using OBS Studio, and presenting it as a virtual webcam. That way I could get a 30fps, desktop only, stream through Jitsi Meet. But clearly this is not ideal, and Windows only. Alternatively, perhaps it would be an option to increase the default FPS from 5 to 30 as temporary fix.

Steps to reproduce

Start sharing the desktop in one tab, open the same conference in another tab. Just observe the FPS isn’t 30.

Or check the FPS on the receiving end with: document.getElementById("largeVideo").srcObject.getVideoTracks()[0].getSettings().frameRate.

Environment details

Google Chrome on MacOS.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jallamsetty1commented, Jul 3, 2020

I’ve got this issue on my own deployment: the screen sharing frame rate doesn’t go above 5fps when using Chrome. Config:

desktopSharingFrameRate: {
     min: 30,
     max: 30
}

Deployment: DigitalOcean droplet running Ubuntu 18.04.3 LTS, with jitsi-meet stable installed. Happy to help if you need any more information.

Please make sure that capScreenSharingBitrate flag is disabled in config.js.

0reactions
jallamsetty1commented, Jul 6, 2020

Update: tried again today, and fps climbed up until about 15fps using Chrome. As a side note, I’ve noticed different behaviors in different browsers with respect to frame dimensions and rate.

The desktop track fps is dependent on available resources like cpu and bandwidth and Chrome will bump it up based on those values. I am closing this issue since it is resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Desktop Sharing Frame Rate config override not working on ...
Hi there, I'm trying to get 30fps when sharing the desktop. So I override the desktopSharingFrameRate when loading Jitsi Meet in an iframe ......
Read more >
How to Limit the Framerate When You're Sharing Your Screen
To limit the framerate your share your screen at, you need to go into Zoom's settings. To access the settings, click on your...
Read more >
Frame rate is limited to 30 FPS in remote sessions
Right-click DWMFRAMEINTERVAL, click Modify. Click Decimal, type 15 in the Value data box, and then click OK. This sets the maximum frame rate...
Read more >
How do I share my zoom screen with a higher FPS? - Quora
Click on “Advanced” at the bottom of the “Share Screen” tab. When you're in the advanced settings, tick the first checkbox, labelled “Limit...
Read more >
how to increase screenshare framerate? : r/MicrosoftTeams
just need to share motion videos/gifs and it's not really transmitting at a framerate that would be legible. ... While screensharing teams will ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found