OBS screen capture and discord share screen is black

I am on wayland and hyprland setup. When I screen share on discord or try to record my screen using OBS after I choose the screen I get a black screen feedback. I’ve followed the archwiki for pipewire and this github post but it only got me to be able to choose the screen. I think that pipewire isn’t providing the feed of my monitor (I am on laptop - single monitor) to the application. Any ideas ?
I have no idea where the problem is so any hints are appreciated
ps: discord share screen doesn’t work in firefox too even. I tried turn off hardware acceleration in case it’s a Nvidia driver issues but that wasn’t the case.
Here are the logs of OBS:

debug: Found portal inhibitor
debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes
debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes/
info: Platform: Wayland
info: CPU Name: 11th Gen Intel(R) Core(TM) i5-11400H @ 2.70GHz
info: CPU Speed: 3729.459MHz
info: Physical Cores: 6, Logical Cores: 12
info: Physical Memory: 15769MB Total, 13391MB Free
info: Kernel Version: Linux 6.12.9-arch1-1
info: Distribution: "EndeavourOS" Unknown
info: Desktop Environment: hyprland (hyprland)
info: Session Type: wayland
info: Qt Version: 6.8.1 (runtime), 6.8.1 (compiled)
info: Portable mode: false
info: OBS 31.0.0 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
	samples per sec: 48001
	speakers:        2
	max buffering:   960 milliseconds
	buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Using EGL/Wayland
info: Initialized EGL 1.5
info: Loading up OpenGL on adapter Intel Mesa Intel(R) UHD Graphics (TGL GT1)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 24.3.3-arch1.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
	base resolution:   1920x1080
	output resolution: 1920x1080
	downscale filter:  Bicubic
	fps:               60/1
	format:            NV12
	YUV mode:          Rec. 709/Partial
info: NV12 texture support enabled
info: P010 texture support not available
info: Audio monitoring device:
	name: Default
	id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
warning: Failed to initialize module 'decklink.so'
info: [pipewire] Available capture sources:
info: [pipewire]     - Monitor source
info: [pipewire]     - Window source
warning: v4l2loopback not installed, virtual camera not registered
warning: LIBVA_DRIVER_NAME variable is set, this could prevent FFmpeg VAAPI from working correctly
info: FFmpeg VAAPI H264 encoding not supported
info: FFmpeg VAAPI AV1 encoding not supported
info: FFmpeg VAAPI HEVC encoding not supported
info: [obs-nvenc] NVENC version: 12.1 (compiled) / 12.2 (driver), CUDA driver version: 12.70, AV1 supported: false
info: ---------------------------------
info:   Loaded Modules:
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-webrtc.so
info:     obs-vst.so
info:     obs-transitions.so
info:     obs-qsv11.so
info:     obs-outputs.so
info:     obs-nvenc.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-pipewire.so
info:     linux-jack.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-output-ui.so
info:     decklink-captions.so
info: ---------------------------------
info: ---------------------------------
info: Available Encoders:
info:   Video Encoders:
info: 	- ffmpeg_svt_av1 (SVT-AV1)
info: 	- ffmpeg_aom_av1 (AOM AV1)
info: 	- obs_nvenc_h264_tex (NVIDIA NVENC H.264)
info: 	- obs_nvenc_hevc_tex (NVIDIA NVENC HEVC)
info: 	- obs_x264 (x264)
info:   Audio Encoders:
info: 	- ffmpeg_aac (FFmpeg AAC)
info: 	- ffmpeg_opus (FFmpeg Opus)
info: 	- ffmpeg_pcm_s16le (FFmpeg PCM (16-bit))
info: 	- ffmpeg_pcm_s24le (FFmpeg PCM (24-bit))
info: 	- ffmpeg_pcm_f32le (FFmpeg PCM (32-bit float))
info: 	- ffmpeg_alac (FFmpeg ALAC (24-bit))
info: 	- ffmpeg_flac (FFmpeg FLAC (16-bit))
info: 	- libfdk_aac (libfdk AAC)
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 17.0-43-g3e2bb'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'auto_null.monitor' (default)
info: [Loaded global audio device]: 'Desktop Audio'
info: pulse-input: Server name: 'pulseaudio 17.0-43-g3e2bb'
info: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_00_1f.3.analog-stereo' (default)
info: [Loaded global audio device]: 'Mic/Aux'
info: [Media Source 'Media Source']: settings:
	input:                   
	input_format:            (null)
	speed:                   100
	is_looping:              no
	is_linear_alpha:         no
	is_hw_decoding:          no
	is_clear_on_media_end:   yes
	restart_on_activate:     yes
	close_when_inactive:     no
	full_decode:             no
	ffmpeg_options:          
info: PipeWire initialized
info: Switched to scene 'Scene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info:     - source: 'Media Source' (ffmpeg_source)
info:     - source: 'Video Capture Device (PipeWire) (BETA)' (pipewire-camera-source)
info:     - source: 'Screen Capture (PipeWire)' (pipewire-screen-capture-source)
info: ------------------------------------------------
warning: [camera-portal] Failed to create session, denied or cancelled by user
info: [pipewire] Screencast session created
warning: The cached device pixel ratio value was stale on window update.  Please file a QTBUG which explains how to reproduce.
warning: The cached device pixel ratio value was stale on window update.  Please file a QTBUG which explains how to reproduce.
info: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Desktop Audio)

info: [pipewire] Asking for monitor and window
info: [pipewire] source selected, setting up screencast
info: [pipewire] Server version: 1.2.7
info: [pipewire] Library version: 1.2.7
info: [pipewire] Header version: 1.2.7
info: [pipewire] Created stream 0x5c69bb19d5c0
info: [pipewire] Stream 0x5c69bb19d5c0 state: "connecting" (error: none)
info: [pipewire] Playing stream 0x5c69bb19d5c0
info: [pipewire] Stream 0x5c69bb19d5c0 state: "paused" (error: none)
info: ==== Shutting down ==================================================
info: pulse-input: Stopped recording from 'auto_null.monitor'
info: pulse-input: Got 124 packets with 136524 frames
info: pulse-input: Stopped recording from 'alsa_input.pci-0000_00_1f.3.analog-stereo'
info: pulse-input: Got 516 packets with 240952 frames
info: [pipewire] Stream 0x5c69bb19d5c0 state: "unconnected" (error: none)
info: All scene data cleared
info: ------------------------------------------------
info: [Scripting] Total detached callbacks: 0
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 2299.04 ms
info:  ┣OBSApp::AppInit: 9.044 ms
info:  ┃ ┗OBSApp::InitLocale: 0.483 ms
info:  ┗OBSApp::OBSInit: 2268.48 ms
info:    ┣obs_startup: 1.665 ms
info:    ┗OBSBasic::OBSInit: 2226.51 ms
info:      ┣OBSBasic::InitBasicConfig: 0.402 ms
info:      ┣OBSBasic::ResetAudio: 0.161 ms
info:      ┣OBSBasic::ResetVideo: 69.079 ms
info:      ┃ ┗obs_init_graphics: 64.624 ms
info:      ┃   ┗shader compilation: 22.739 ms
info:      ┣OBSBasic::InitOBSCallbacks: 0.021 ms
info:      ┣OBSBasic::InitHotkeys: 0.017 ms
info:      ┣obs_load_all_modules2: 2103.74 ms
info:      ┃ ┣obs_init_module(decklink-captions.so): 0 ms
info:      ┃ ┣obs_init_module(decklink-output-ui.so): 0 ms
info:      ┃ ┣obs_init_module(decklink.so): 0.07 ms
info:      ┃ ┣obs_init_module(frontend-tools.so): 55.904 ms
info:      ┃ ┣obs_init_module(image-source.so): 0.01 ms
info:      ┃ ┣obs_init_module(linux-alsa.so): 0.001 ms
info:      ┃ ┣obs_init_module(linux-capture.so): 0 ms
info:      ┃ ┣obs_init_module(linux-jack.so): 0.002 ms
info:      ┃ ┣obs_init_module(linux-pipewire.so): 9.157 ms
info:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0.004 ms
info:      ┃ ┣obs_init_module(linux-v4l2.so): 3.02 ms
info:      ┃ ┣obs_init_module(obs-ffmpeg.so): 0.535 ms
info:      ┃ ┣obs_init_module(obs-filters.so): 0.019 ms
info:      ┃ ┣obs_init_module(obs-libfdk.so): 0.001 ms
info:      ┃ ┣obs_init_module(obs-nvenc.so): 1873.8 ms
info:      ┃ ┃ ┗nvenc_check: 1873.79 ms
info:      ┃ ┣obs_init_module(obs-outputs.so): 0.002 ms
info:      ┃ ┣obs_init_module(obs-qsv11.so): 4.552 ms
info:      ┃ ┣obs_init_module(obs-transitions.so): 0.005 ms
info:      ┃ ┣obs_init_module(obs-vst.so): 0.002 ms
info:      ┃ ┣obs_init_module(obs-webrtc.so): 0.003 ms
info:      ┃ ┣obs_init_module(obs-x264.so): 0.001 ms
info:      ┃ ┣obs_init_module(rtmp-services.so): 0.601 ms
info:      ┃ ┗obs_init_module(text-freetype2.so): 0.008 ms
info:      ┣OBSBasic::InitService: 1.054 ms
info:      ┣OBSBasic::ResetOutputs: 0.15 ms
info:      ┣OBSBasic::CreateHotkeys: 0.019 ms
info:      ┣OBSBasic::InitPrimitives: 0.074 ms
info:      ┗OBSBasic::Load: 31.102 ms
info: obs_hotkey_thread(25 ms): min=0 ms, median=0 ms, max=0.017 ms, 99th percentile=0.002 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.005 ms, median=0.027 ms, max=0.159 ms, 99th percentile=0.078 ms
info: obs_graphics_thread(16.6667 ms): min=0.034 ms, median=0.181 ms, max=10.813 ms, 99th percentile=1.313 ms, 100% below 16.667 ms
info:  ┣tick_sources: min=0 ms, median=0.007 ms, max=0.022 ms, 99th percentile=0.016 ms
info:  ┣output_frame: min=0.023 ms, median=0.072 ms, max=0.297 ms, 99th percentile=0.131 ms
info:  ┃ ┗gs_context(video->graphics): min=0.023 ms, median=0.072 ms, max=0.297 ms, 99th percentile=0.131 ms
info:  ┃   ┣render_video: min=0.005 ms, median=0.025 ms, max=0.071 ms, 99th percentile=0.052 ms
info:  ┃   ┃ ┗render_main_texture: min=0.004 ms, median=0.022 ms, max=0.063 ms, 99th percentile=0.047 ms
info:  ┃   ┗gs_flush: min=0.013 ms, median=0.041 ms, max=0.269 ms, 99th percentile=0.089 ms
info:  ┗render_displays: min=0.001 ms, median=0.096 ms, max=10.707 ms, 99th percentile=1.066 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.059 ms, median=25.13 ms, max=26.852 ms, 99.3174% within ±2% of 25 ms (0% lower, 0.682594% higher)
info: obs_graphics_thread(16.6667 ms): min=16.375 ms, median=16.667 ms, max=17.031 ms, 99.7706% within ±2% of 16.667 ms (0% lower, 0.229358% higher)
info: =================================================
info: Number of memory leaks: 0

Services statuses

systemctl --user status pipewire wireplumber xdg-desktop-portal-hyprland xdg-desktop-portal
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; preset: enabled)
     Active: active (running) since Thu 2025-01-16 18:58:21 EET; 2h 17min ago
 Invocation: 9bfc40cea4164101aed84c7b3672f764
TriggeredBy: ● pipewire.socket
   Main PID: 4003 (pipewire)
      Tasks: 3 (limit: 18724)
     Memory: 1.7M (peak: 2.1M)
        CPU: 11ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─4003 /usr/bin/pipewire

Jan 16 18:58:21 moaaz20 systemd[1317]: Started PipeWire Multimedia Service.

● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Thu 2025-01-16 18:58:21 EET; 2h 17min ago
 Invocation: 000c00c8bf4542f2a1c8243cf516d9e1
   Main PID: 4004 (wireplumber)
      Tasks: 6 (limit: 18724)
     Memory: 2.2M (peak: 3M)
        CPU: 19ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─4004 /usr/bin/wireplumber

Jan 16 18:58:21 moaaz20 systemd[1317]: Started Multimedia Service Session Manager.
Jan 16 18:58:21 moaaz20 wireplumber[4004]: wp-internal-comp-loader: Loading profile 'main'

● xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-hyprland.service; static)
     Active: active (running) since Thu 2025-01-16 18:43:15 EET; 2h 32min ago
 Invocation: 328df64f3b2a483fbdeeb5209eb0776e
   Main PID: 1541 (xdg-desktop-por)
      Tasks: 5 (limit: 18724)
     Memory: 9.7M (peak: 25.9M)
        CPU: 58min 6.091s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal-hyprland.service
             └─1541 /usr/lib/xdg-desktop-portal-hyprland

Jan 16 18:54:39 moaaz20 xdg-desktop-portal-hyprland[1541]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_73/obs4
Jan 16 18:54:39 moaaz20 xdg-desktop-portal-hyprland[1541]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_73/obs1
Jan 16 18:54:39 moaaz20 xdg-desktop-portal-hyprland[1541]: [LOG] [screencopy]  | appid:
Jan 16 18:54:39 moaaz20 xdg-desktop-portal-hyprland[1541]: [LOG] [screencopy]  | parent_window:
Jan 16 18:54:39 moaaz20 xdg-desktop-portal-hyprland[1541]: [LOG] [pw] Building modifiers for dma
Jan 16 18:54:39 moaaz20 xdg-desktop-portal-hyprland[1541]: [LOG] [screencopy] Sharing initialized
Jan 16 18:54:39 moaaz20 xdg-desktop-portal-hyprland[1541]: [LOG] [screencopy] Stream destroyed
Jan 16 18:54:39 moaaz20 xdg-desktop-portal-hyprland[1541]: [LOG] [screencopy] Session destroyed
Jan 16 18:54:48 moaaz20 hyprland-share-picker[3644]: The cached device pixel ratio value was stale on window update.  Please file a QTBUG which explains how to reproduce.
Jan 16 18:58:39 moaaz20 hyprland-share-picker[4076]: The cached device pixel ratio value was stale on window update.  Please file a QTBUG which explains how to reproduce.

● xdg-desktop-portal.service - Portal service
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
     Active: active (running) since Thu 2025-01-16 18:43:15 EET; 2h 32min ago
 Invocation: bd34cb41f30f48feb8eba8dfae660ef6
   Main PID: 1418 (xdg-desktop-por)
      Tasks: 5 (limit: 18724)
     Memory: 4.4M (peak: 5.8M)
        CPU: 128ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
             └─1418 /usr/lib/xdg-desktop-portal

Jan 16 18:43:15 moaaz20 systemd[1317]: Starting Portal service...
Jan 16 18:43:15 moaaz20 systemd[1317]: Started Portal service.
Jan 16 18:58:21 moaaz20 xdg-desktop-por[1418]: Caught PipeWire error: connection error
Jan 16 19:00:00 moaaz20 xdg-desktop-por[1418]: Failed to close session implementation: Timeout was reached
Jan 16 19:00:10 moaaz20 xdg-desktop-por[1418]: Failed to close session implementation: Timeout was reached```