Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] custom FPS does not work on servers without Server Boost or in DM without Nitro #21

Open
2 tasks done
fdkchx opened this issue May 18, 2024 · 14 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@fdkchx
Copy link

fdkchx commented May 18, 2024

Discord Account

kosmoxapka

What happens when the bug or crash occurs?

custom FPS does not work on servers without Server Boost or in DM without Nitro

What is the expected behaviour?

custom FPS will work again
for example, the CustomScreenShare plugin allows you to do this without any problems

How do you recreate this bug or crash?

opened betterscreenshare settings, disabled simple, set framerate to 75.

Errors

Replace this text with your crash-log.

Request Agreement

  • I am using Discord Stable or tried on Stable and this bug happens there as well
  • I have read the requirements for opening an issue above
@fdkchx fdkchx added the bug Something isn't working label May 18, 2024
@Loukious
Copy link

Loukious commented Jun 5, 2024

Works fine for me. You just have to open the menu and press apply again.

@BlueberryWolf
Copy link

BlueberryWolf commented Jun 11, 2024

Works fine for me. You just have to open the menu and press apply again.

I was able to replicate it. it only happens specifically in servers with no boosts for me.

@BlueberryWolf
Copy link

Works fine for me. You just have to open the menu and press apply again.

I was able to replicate it. it only happens specifically in servers with no boosts for me.

nevermind. it doesn't work for me at all in any server.

@Loukious
Copy link

Works fine for me. You just have to open the menu and press apply again.

I was able to replicate it. it only happens specifically in servers with no boosts for me.

nevermind. it doesn't work for me at all in any server.

Did you open the menu and press "apply" again AFTER you started streaming?
image

@BlueberryWolf
Copy link

yep, then discord immediately crashes for me. it only started occurring to me after I restarted my PC recently. Discord's console throws an error, "Invalid Framerate: 144"

@BlueberryWolf
Copy link

image
image

@BlueberryWolf
Copy link

image
here are my settings

@BlueberryWolf
Copy link

I've tried reinstalling stable discord, and also using the development branch. I'll try canary in a bit

@BlueberryWolf
Copy link

image

@BlueberryWolf
Copy link

BlueberryWolf commented Jun 11, 2024

I made a patch to fix it, it no longer crashes. I'll make a pull request in a second here.

All you have to do is return e on the default case, as it is a clientsided check

@BlueberryWolf
Copy link

BlueberryWolf commented Jun 11, 2024

holy fuck the issue is bigger than I thought. if you even view a stream that is at a non-standard framerate, it crashes everyone else's discord

basically, what I mean is, the client throws that error if you send or receive a stream of an invalid framerate. If you remove the clientsided check, you can still stream at 144FPS, but it will crash everyone else's client if they view it.

@Loukious
Copy link

holy fuck the issue is bigger than I thought. if you even view a stream that is at a non-standard framerate, it crashes everyone else's discord

basically, what I mean is, the client throws that error if you send or receive a stream of an invalid framerate. If you remove the clientsided check, you can still stream at 144FPS, but it will crash everyone else's client if they view it.

I also fixed it myself and I tried lmao. Yep it was crashing for everyone else who tries to enter the stream.

@BlueberryWolf
Copy link

I managed to bypass it and avoid the crashes. I'll make a pull request.

@BlueberryWolf
Copy link

well actually no, that doesn't work. I tried spoofing MaxFrameRate, and keeping EncodingVideoFrameRate at what you set it to, but it turns out that MaxFrameRate is the max speed at which the client can play back the video stream. I have to rethink this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants