fzwoch / Obs Gnome Screencast
Programming Languages
Projects that are alternatives of or similar to Obs Gnome Screencast
GNOME Screen Cast OBS Studio plugin
Small source plugin to use GNOME Screen Cast functionality as a source for OBS Studio.
GNOME Screen Cast works for all GNOME sessions regardless of the compositor being used. Basically saying that the main purpose of this plugin is to capture screens under Wayland sessions where the X11 capture falls short.
You need to have GNOME Screen Cast application installed as well as the GStreamer pipewire elements. Make sure that in "GNOME Settings" you have "Sharing -> Desktop Sharing" enabled.
Getting Window ID
Currently there is no (known) way to obtain mutter's ID for a window other than through Looking Glass, to obtain the ID:
- Press
ALT+F2
in the window that appears and typelg
(Looking Glass) - Click on the "Windows" tab in the upper right corner
- Select the Window Name at the top (Not the "App" section)
- Press "Insert" in the upper right corner
- Go back to the "Evaluator" tab and look at the last entry, it should have something like
r(n) = [...]
- type
r(<number>).get_id()
Todo
Keep an eye on support for the Freedesktop variation of this API:
https://github.com/flatpak/xdg-desktop-portal/blob/master/data/org.freedesktop.portal.ScreenCast.xml
Once KDE/GNOME and distributions have picked this up we could modify the plugin slightly to have unified platform support.
See: https://gitlab.gnome.org/feaneron/obs-xdg-portal/
Build
Refer to the Dockerfile
and .gitlab-ci.yml
files on how to get a
development workspace and how to build the plugin.
Fedora build
requirements include gstreamer1-plugins-base-devel ghc-gi-gio-devel.x86_64 obs-studio-libs obs-studio-devel
. Install with dnf install