philhk / Vencord

The cutest Discord client mod
GNU General Public License v3.0
51 stars 21 forks source link

[Bug]: BetterScreenshare: HEVC (H265) stream doesn't work #10

Open JellyBrick opened 10 months ago

JellyBrick commented 10 months ago

Discord Account

No response

What happens when the bug or crash occurs?

image

Broadcasts cannot be watched by anyone other than the broadcaster.

I'm not sure if this is a server-side limitation of Discord or a bug in the Discord client.

What is the expected behavior?

Must be able to broadcast using the H265 codec.

How do you recreate this bug or crash?

  1. Select the H265 codec and start broadcasting.
  2. Watch the broadcast. (Anyone other than the broadcaster)
  3. The video stream is stuck in an infinite load.

Errors

No response

Request Agreement

philhk commented 10 months ago

You need to enable the h265_for_{your_os} experiment inside Discord. Just search for H265 and you should see multiple experiments. Everybody who watches the stream also needs to enable this experiment. For now this is the only solution.

Loukious commented 10 months ago

Is this only for HEVC? Mine stopped working completely without even selecting an encoder.

philhk commented 10 months ago

You probably need to update Vencord. Discord's Halloween update broke Vencord completely.

Loukious commented 10 months ago

You probably need to update Vencord. Discord's Halloween update broke Vencord completely.

I did. Everything else is working just screens share module. It's stuck on "5 fps" for people who try to watch and keeps loading forever.

philhk commented 10 months ago

Does H264 work? It could be that your GPU doesn't support H265 and is instead using your CPU and that's why it may have such a low framerate. The people who are watching your stream also need to enable the experiment if it's loading for them forever only on H265.

Loukious commented 10 months ago

Okay it's working if we both enable H265 experiment. There a little bug tho, if I switch encoding it returns to 30 fps and I have to manually reapply the settings.