obs works for me without auto starting anything
What graphics card do you have? I have an Nvidia 2080 Super and I think that might be the culprit.
I've made a bit of progress ever since my last post.
grim was already installed in my last thread and it wasn't working.
I think what fixed my main problem is that I renamed
~/.config/xdg-desktop-portal-wlr/labwc:wlroots to
~/.config/xdg-desktop-portal-wlr/config, which was another option listed on the man page. After that, screen sharing with firefox worked perfectly.
Afterwards, I noticed on the OBS logs that it was complaining something about QT. I installed
qt6-wayland and that made the complains go away. Still, I cannot capture my screen with OBS. Now instead of getting the error
error: Cannot query the number of formats: The last function succeeded without error. I get another error haha, I guess that is progress
The error now (to my understanding) is that a format is trying to be negotiated, then an error
error: No GL_OES_EGL_image appears which starts another negotiation. Format negotiation happens for a while, until it finally stops but i get an eternal error log of
error: [pipewire] buffer is corrupt. I think something is missing in encoding, but I am not to knowledge in this area.
I also notice another error as obs is loading reharding FFMPEG and Nvidia encoding, which is listed below (I also attached the full obs verbose logs for anyone interested). After this format negotiating and pipewire errors, some windows in my main screen get corrupted so I gotta restart the "labwc" session which is annoying.
I looked into this encoding package missing, it seems I have to install a pkg named "linux-nvidia-libs", but this requires the Linux emulator and other compat stuff which I rather not deal with, so I am kind of giving up for now. I might record my screen using another Wayland Utility. My main concern was getting Firefox screensharing to work.
Code:
debug: Loading module: obs-ffmpeg.so
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): Shared object "libnvidia-encode.so.1" not found, required by "obs"
debug: VAAPI: Initializing display in vaapi_device_h264_supported
debug: Libva: VA-API version 1.22.0
debug: Libva: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
debug: Libva: va_openDriver() returns -1
error: VAAPI: Failed to initialize display in vaapi_device_h264_supported
info: FFmpeg VAAPI H264 encoding not supported
debug: VAAPI: Initializing display in vaapi_device_av1_supported
debug: Libva: VA-API version 1.22.0
debug: Libva: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
debug: Libva: va_openDriver() returns -1
error: VAAPI: Failed to initialize display in vaapi_device_av1_supported
info: FFmpeg VAAPI AV1 encoding not supported
debug: VAAPI: Initializing display in vaapi_device_hevc_supported
debug: Libva: VA-API version 1.22.0
debug: Libva: Trying to open /usr/local/lib/dri/nvidia_drv_video.so
debug: Libva: va_openDriver() returns -1
error: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
info: FFmpeg VAAPI HEVC encoding not supported