prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland
GNU General Public License v3.0
7.62k stars 891 forks source link

[screensharing] // Google meet screen share is laggy #1848

Open rohit-burman opened 2 months ago

rohit-burman commented 2 months ago

Google meet screen share is laggy

Description

Google meet screen share is laggy on both Firefox and brave. But when i use other service like jitsi meet ( jitsi.org ) it works smoothly. Also some time it fails to screenshare after accepting the prompt form the browser.

Steps to Reproduce

  1. Join a google meet
  2. start a screen share

Expected Behavior

A smooth almost realtime screen share

Actual Behavior

On starting screen share it was giving very low fps on the viewers side, the problem is not with the network.

Screenshots

On terminal I got the below errors 240915_22h01m54s_screenshot

Environment

Code from the terminal

❯ com.brave.Browser
[2:2:0915/220042.366489:ERROR:interface_endpoint_client.cc(722)] Message 1 rejected by interface blink.mojom.WidgetHost
[54:54:0915/220043.086119:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
[2:2:0915/220045.450839:ERROR:interface_endpoint_client.cc(722)] Message 1 rejected by interface blink.mojom.WidgetHost
[54:54:0915/220046.476334:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
[54:54:0915/220054.743416:ERROR:gles2_cmd_decoder_passthrough.cc(928)] ContextResult::kFatalFailure: fail_if_major_perf_caveat + swiftshader
[2:340:0915/220118.121781:ERROR:egl_dmabuf.cc(608)] Failed to record frame: Error creating EGLImage - EGL_BAD_MATCH
[2:340:0915/220118.121809:ERROR:shared_screencast_stream.cc(951)] Dropping DMA-BUF modifier: 72057594037927944 and trying to renegotiate stream parameters
'loop->recurse > 0' failed at ../src/pipewire/thread-loop.c:426 pw_thread_loop_wait()
[2:347:0915/220124.071349:ERROR:egl_dmabuf.cc(608)] Failed to record frame: Error creating EGLImage - EGL_BAD_MATCH
[2:347:0915/220124.071376:ERROR:shared_screencast_stream.cc(951)] Dropping DMA-BUF modifier: 72057594037927944 and trying to renegotiate stream parameters
[2:347:0915/220124.105092:ERROR:egl_dmabuf.cc(608)] Failed to record frame: Error creating EGLImage - EGL_BAD_MATCH
[2:347:0915/220124.105127:ERROR:shared_screencast_stream.cc(951)] Dropping DMA-BUF modifier: 72057594037927942 and trying to renegotiate stream parameters
[275:145:0915/220124.805306:ERROR:sdp_offer_answer.cc(3860)] Transceiver not found based on m-line index (INVALID_PARAMETER)
[275:145:0915/220258.417771:ERROR:sdp_offer_answer.cc(3860)] Transceiver not found based on m-line index (INVALID_PARAMETER)
[275:145:0915/220259.221047:ERROR:sdp_offer_answer.cc(3860)] Transceiver not found based on m-line index (INVALID_PARAMETER)
[2:2:0915/220259.334280:ERROR:interface_endpoint_client.cc(722)] Message 1 rejected by interface blink.mojom.WidgetHost
[275:145:0915/220302.520239:ERROR:sdp_offer_answer.cc(3860)] Transceiver not found based on m-line index (INVALID_PARAMETER)
^C
[2 preload-host-spawn-strategy] Dropping 0x3f10001086c0 (3) because of connection closed
[2:36:0915/220419.857546:FATAL:bus.cc(1246)] D-Bus connection was disconnected. Aborting.      
[2:127:0915/220419.857801:FATAL:bus.cc(1246)] D-Bus connection was disconnected. Aborting.
[2:43:0915/220419.857878:FATAL:bus.cc(1246)] D-Bus connection was disconnected. Aborting.
[0915/220419.857884:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)

1560 has the same issue

kRHYME7 commented 2 months ago

Try to also open this one Upstream in the Hyprland Repo.

Try to run resetxdgportal.sh?

Check if it improves anything. Screen sharing is a bit buggy on Hyprland.

https://wiki.hyprland.org/Useful-Utilities/Screen-Sharing/

This should help

kRHYME7 commented 2 months ago

This Should Also Help

https://gist.github.com/brunoanc/2dea6ddf6974ba4e5d26c3139ffb7580

rohit-burman commented 2 months ago

Try to also open this one Upstream in the Hyprland Repo.

Try to run resetxdgportal.sh?

Check if it improves anything. Screen sharing is a bit buggy on Hyprland.

https://wiki.hyprland.org/Useful-Utilities/Screen-Sharing/

This should help

I have gone thought these disscusions.Solutions given here discusses about if the screenshare is not woking completely. But here the screenshare is working smoothly with other services(jitsi) but not working in google meet and is laggy.

rishav12s commented 2 months ago

I tried screensharing on this with thorium with wayland enabled and it works smoothly but on meet its lags like hell and is only 1-2 fps at max

https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/

a last resort solution that works for meet is using a virtual camera to screenshare through obs it works and is better than native meet sharing