FS#76069 - [obs-studio] No built-in websocket 5.0.0 support

Attached to Project: Community Packages
Opened by Dantle (takutekato2) - Friday, 30 September 2022, 07:56 GMT
Last edited by Jonathan Steel (jsteel) - Thursday, 01 December 2022, 09:03 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Jonathan Steel (jsteel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: This build doesn't have "Tools/obs-websocket Settings" like the flatpak version


Additional info:
* package version(s): 28.0.2-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
1. Click the menu "Tools"
This task depends upon

Closed by  Jonathan Steel (jsteel)
Thursday, 01 December 2022, 09:03 GMT
Reason for closing:  Upstream
Additional comments about closing:  If you want this then ask upstream to include it in their source tarball. Also please report any AUR package issues on the AUR package page.
Comment by Jonathan Steel (jsteel) - Sunday, 16 October 2022, 18:17 GMT
Once they include this in the source tarball then it will be included. Until then, try obs-websocket in the AUR.
Comment by Jérôme Petazzoni (jpetazzo) - Thursday, 20 October 2022, 19:24 GMT
Documenting this just in case someone else stumbles on the same issue:

Unfortunately, the AUR obs-websocket doesn't build with OBS 28; it complains about a missing "LibObsConfig.cmake". It looks like OBS 28 ships with libobsConfig.cmake (different capitalization). I tried to trick the build process by creating a symlink (sudo ln -sf libobsConfig.cmake /usr/lib/cmake/libobs/LibObsConfig.cmake); but then unfortunately this error happens:

[ 3%] Building CXX object CMakeFiles/obs-websocket.dir/obs-websocket_autogen/mocs_compilation.cpp.o
In file included from /home/jp/.cache/yay/obs-websocket/src/obs-websocket/build/obs-websocket_autogen/GYHPFG4CL2/../../../src/forms/ConnectInfo.h:24,
from /home/jp/.cache/yay/obs-websocket/src/obs-websocket/build/obs-websocket_autogen/GYHPFG4CL2/moc_ConnectInfo.cpp:10,
from /home/jp/.cache/yay/obs-websocket/src/obs-websocket/build/obs-websocket_autogen/mocs_compilation.cpp:2:
/home/jp/.cache/yay/obs-websocket/src/obs-websocket/build/obs-websocket_autogen/GYHPFG4CL2/../../../src/forms/../plugin-macros.generated.h:22:10: fatal error: util/base.h: No such file or directory
22 | #include <util/base.h>
| ^~~~~~~~~~~~~
compilation terminated.

I'm a bit unclear on that one since that base.h file seems to be installed by the obs-studio package. 🤔

Meanwhile, the OBS websocket plugin github (https://github.com/obsproject/obs-websocket) says:

obs-websocket is now included by default with OBS Studio 28.0.0 and above. As such, there should be no need to download obs-websocket if you have OBS Studio > 28.0.0.

... and their release page doesn't have downloads for Linux. 😅

I tried to install the flatpak version, but there appears to be issues with GPU acceleration (it uses ~50% CPU on my machine and struggles to keep up around 25-28fps, while running it "normally" - not flatpak - gives 30 fps at 6% CPU utilization).

Other OBS AUR packages (e.g. obs-studio-git) fail to build because of the recent git CVE fix, which prevents using a local remote (the symptom is getting error "fatal: transport 'file' not allowed" at makepkg time).

I'm going to try to get the other OBS AUR packages to build by tweaking their PKGBUILD and see what happens!

Update: I ended up downgrading to OBS 27 and rebuilding obs-websocket with it. That worked immediately and I'm back in business. I'll keep checking OBS 28 regularly though!
Comment by Thomas Bocek (tom_draft) - Saturday, 12 November 2022, 19:35 GMT
Websockets still not working on 28.1.2-1, downgrading works like a charm.

Loading...