Announcement

Collapse
No announcement yet.

OBS Studio Merges Its EGL-Wayland Code To Natively Support Wayland

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • OBS Studio Merges Its EGL-Wayland Code To Natively Support Wayland

    Phoronix: OBS Studio Merges Its EGL-Wayland Code To Natively Support Wayland

    OBS Studio, the cross-platform open-source solution for live streaming and screen recording, has landed the last major piece of its effort to natively support Wayland...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    This sounds like a difficult application to get working on Wayland because it needs to be able to find what other windows/applications are running, and then sneak on them so it can live stream those, and Wayland prevents applications from spying on other applications.
    Also you might want to have some key bindings to control OBS Studio while using other applications, and Wayland doesn't allow applications to listen for keypresses in other applications.

    Comment


    • #3
      Very nice! Still lot of work left for capture support with pipewire etc AFAIK...

      Comment


      • #4
        Yet another checkbox cleared for the near future.

        Comment


        • #5
          Originally posted by ernstp View Post
          Very nice! Still lot of work left for capture support with pipewire etc AFAIK...
          Wasnt that the first problem he solved?

          Comment


          • #6
            Originally posted by uid313 View Post
            This sounds like a difficult application to get working on Wayland because it needs to be able to find what other windows/applications are running, and then sneak on them so it can live stream those, and Wayland prevents applications from spying on other applications.
            Also you might want to have some key bindings to control OBS Studio while using other applications, and Wayland doesn't allow applications to listen for keypresses in other applications.
            It's actually not that tricky - it just has to use the right APIs from the compositor instead of spying. A plugin for that has been around for a while from the same programmer (feaneron) and he uses it for his livestreams. Not sure about the global hotkey situation, maybe still needs a proper solution.

            Edit: https://gitlab.gnome.org/feaneron/obs-xdg-portal/

            Comment


            • #7
              Originally posted by treba View Post

              It's actually not that tricky - it just has to use the right APIs from the compositor instead of spying. A plugin for that has been around for a while from the same programmer (feaneron) and he uses it for his livestreams. Not sure about the global hotkey situation, maybe still needs a proper solution.

              Edit: https://gitlab.gnome.org/feaneron/obs-xdg-portal/
              Yeah, but if you rely on APIs from the compositor you might end up with a application that only works on that compositor, example it only works on GNOME Shell, but not on KDE or Sway.

              Yeah, you want global hotkeys so that while you are live streaming maybe a game, you can tell streaming application to lower or raise the volume, the mute or unmute the microphone, or skip to the next song. I don't think there is any universal way to do it.

              Comment


              • #8
                Originally posted by uid313 View Post

                Yeah, but if you rely on APIs from the compositor you might end up with a application that only works on that compositor, example it only works on GNOME Shell, but not on KDE or Sway.

                Yeah, you want global hotkeys so that while you are live streaming maybe a game, you can tell streaming application to lower or raise the volume, the mute or unmute the microphone, or skip to the next song. I don't think there is any universal way to do it.
                It relies on xdg-portal, which is a cross compositor standard, even if independent of Wayland. KDE and sway both support it, even if not as mature yet as Gnome. See https://github.com/flatpak/xdg-desktop-portal

                Comment


                • #9
                  Originally posted by uid313 View Post
                  This sounds like a difficult application to get working on Wayland because it needs to be able to find what other windows/applications are running, and then sneak on them so it can live stream those, and Wayland prevents applications from spying on other applications.
                  Also you might want to have some key bindings to control OBS Studio while using other applications, and Wayland doesn't allow applications to listen for keypresses in other applications.
                  It's not difficult. Roughly speaking, everything that is possible in X11 is possible on Wayland. The 'problem' is that with Wayland you have to have the proper permissions from the system and/or user and to use different tools/libraries as some of the functionality in X11 was moved out of the compositor/wm. For screen recording/sharing, you have to use pipewire and xdg-portal. Those are standards across all Wayland compositors. If you need to monitor all keyboard/mouse events, then you have to go lower in the stack then before and use for example evdev (AS a python dev I use python-evdev). Of course the app has to have the proper permissions. That is key and one of the most important reasons why X.org devs created Wayland in the first place.

                  Comment


                  • #10
                    Finally I won't need to have obs-studio-wayland and instead use obs-studio everywhere.

                    Comment

                    Working...
                    X