Since version 25, OBS ships with an Browser Source plug-in [1] (normally used for donation alerts and chat widgets). To enable it, cmake needs to options set and depends on the Chromium Embedded Framework [2]. It would be nice to have this in the ebuild. [1] https://github.com/bazukas/obs-linuxbrowser [2] https://github.com/obsproject/obs-studio/wiki/Install-Instructions#linux-portable-mode-all-distros Reproducible: Always
Yep, been meaning to get to this, just haven't yet. Thanks!
The browser source has been removed due to instability, consider waiting until the next release before adding it to packaging.
It's seems the problem is related too a conflict between CEF and the browser when using gtk+ (glib) [1]. I am not sure it affects the gentoo build which rely on Qt. On another thread [2], the browser plugin seems to work fine with Qt. [1] https://github.com/obsproject/obs-browser/issues/219 [2] https://github.com/obsproject/obs-studio/issues/2644#issuecomment-623168704
(In reply to François Périchon from comment #3) > It's seems the problem is related too a conflict between CEF and the browser > when using gtk+ (glib) [1]. > > I am not sure it affects the gentoo build which rely on Qt. > > On another thread [2], the browser plugin seems to work fine with Qt. > > [1] https://github.com/obsproject/obs-browser/issues/219 > [2] > https://github.com/obsproject/obs-studio/issues/2644#issuecomment-623168704 So, has anyone tried any of this and got anywhere? My experience, having altered the ebuild to include -DBUILD_BROWSER=ON, and with QT_QPA_PLATFORMTHEME="qt5ct" exported to the environment before the 'ebuild ... configure' stage (x11-misc/qt5ct is installed), is that: 1/ The downloaded obs-studio tarball does not contain the obs-browser source code so the obs-browser plugin directory is empty. 2/ Installing the obs-browser plugin source code to the correct location doesn't help. The subsequent 'ebuild ... configure' diagnostic is '-- CEF Not found -- obs-browser plugin disabled.', so it would seem a) that the plugin is now being taken into account and b) that CEF is not being ignored in favour of QT. Interestingly, I've done a recursive grep on the OBS and browser plugin code-bases and git logs and couldn't find any reference to QT_QPA_PLATFORMTHEME, which is a bit surprising although I haven't currently explored further. Perhaps I've missed something obvious - I don't pretend to know anything about CMake (or QT) - but it is a problem not having the browser plugin available in Linux OBS. Thanks
(In reply to Adrian Bassett from comment #4) > > So, has anyone tried any of this and got anywhere? > > My experience, having altered the ebuild to include -DBUILD_BROWSER=ON, and > with QT_QPA_PLATFORMTHEME="qt5ct" exported to the environment before the > 'ebuild ... configure' stage (x11-misc/qt5ct is installed), is that: > > 1/ The downloaded obs-studio tarball does not contain the obs-browser source > code so the obs-browser plugin directory is empty. > > 2/ Installing the obs-browser plugin source code to the correct location > doesn't help. The subsequent 'ebuild ... configure' diagnostic is '-- CEF > Not found -- obs-browser plugin disabled.', so it would seem a) that the > plugin is now being taken into account and b) that CEF is not being ignored > in favour of QT. > > Interestingly, I've done a recursive grep on the OBS and browser plugin > code-bases and git logs and couldn't find any reference to > QT_QPA_PLATFORMTHEME, which is a bit surprising although I haven't currently > explored further. > > Perhaps I've missed something obvious - I don't pretend to know anything > about CMake (or QT) - but it is a problem not having the browser plugin > available in Linux OBS. > > Thanks You'll need the CEF even if you use QT. There's a link to the 3770 branch used to build their binary release [1] You should clone the git repository and the clone the obs-browser in the plugin directory if you want to build it. [1] https://obsproject.com/wiki/install-instructions#linux-portable-mode-all-distros
> You'll need the CEF even if you use QT. > There's a link to the 3770 branch used to build their binary release [1] > > You should clone the git repository and the clone the obs-browser in the > plugin directory if you want to build it. > > [1] > https://obsproject.com/wiki/install-instructions#linux-portable-mode-all- > distros Thanks for this. It did occur to me finally - once I had realised that QT_QPA_PLATFORMTHEME="qt5ct" is a _runtime_ requirement (rather than a build-time fix) to avoid obs crashing - that the plugin requires cef). So, with the help of your comments, I now have a working obs-studio with browser source enabled: Adding to my previous procedures. 1/ I downloaded and unpacked the cef binary from the supplied link and referenced the location in a modified ebuild: @@ -99,6 +99,8 @@ -DOBS_MULTIARCH_SUFFIX=${libdir#lib} -DUNIX_STRUCTURE=1 -DWITH_RTMPS=$(usex ssl) + -DBUILD_BROWSER=ON + -DCEF_ROOT_DIR="/usr/local/src/www-misc/cef/cef_binary_3770_linux64" ) 2/ ebuild ... unpack, configure (with the obs-browser plugin code copied in before this stage), compile, install, package 3/ emerge -K <package> 4/ obs-studio now has a browser source capability (which definitely crashes if QT_QPA_PLATFORMTHEME="qt5ct" is not set in the runtime environment) (If you don't have GPU hardware acceleration you will also need LIBGL_ALWAYS_SOFTWARE=1) Thanks for the help.
I've created a PR https://github.com/gentoo/gentoo/pull/18156 which adds browser source support, it works for me for both the 25.0.8 and 9999 versions.
(In reply to ngg from comment #7) > I've created a PR https://github.com/gentoo/gentoo/pull/18156 which adds > browser source support, it works for me for both the 25.0.8 and 9999 > versions. I can confirm that this fix works.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05cff7bd35eb8d49a14b16d36a27e67f90232093 commit 05cff7bd35eb8d49a14b16d36a27e67f90232093 Author: Gergely Nagy <ngg@ngg.hu> AuthorDate: 2020-11-06 17:29:43 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2021-07-01 16:54:41 +0000 media-video/obs-studio: add 27.0.1 with browser source support Closes: https://bugs.gentoo.org/717002 Closes: https://bugs.gentoo.org/795648 Signed-off-by: Gergely Nagy <ngg@ngg.hu> Closes: https://github.com/gentoo/gentoo/pull/18156 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> media-video/obs-studio/Manifest | 3 + media-video/obs-studio/metadata.xml | 1 + media-video/obs-studio/obs-studio-27.0.1.ebuild | 220 ++++++++++++++++++++++++ 3 files changed, 224 insertions(+)