You are not logged in.

#1 2024-05-03 20:43:36

iskander9908
Member
Registered: 2022-10-30
Posts: 29

[SOLVED] OBS in wayland

I tried to install OBS for my wayland setup, but drivers don't launch. Here is my log for amf-amdgpu-pro driver

[ 76%] Building CXX object plugins/obs-webrtc/CMakeFiles/obs-webrtc.dir/whip-output.cpp.o
/home/iskander/.cache/paru/clone/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp: In member function ‘void WHIPOutput::ConfigureAudioTrack(std::string, std::string)’:
/home/iskander/.cache/paru/clone/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp:115:41: error: ‘rtc::AudioRtpPacketizer<48000>::defaultClockRate’ is deprecated: Use DefaultClockRate [-Werror=deprecated-declarations]
  115 |                 rtc::OpusRtpPacketizer::defaultClockRate);
      |                                         ^~~~~~~~~~~~~~~~
In file included from /usr/include/rtc/av1rtppacketizer.hpp:16,
                 from /usr/include/rtc/rtc.hpp:31,
                 from /home/iskander/.cache/paru/clone/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.h:14,
                 from /home/iskander/.cache/paru/clone/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp:1:
/usr/include/rtc/rtppacketizer.hpp:53:38: note: declared here
   53 |         inline static const uint32_t defaultClockRate [[deprecated("Use DefaultClockRate")]] =
      |                                      ^~~~~~~~~~~~~~~~
/home/iskander/.cache/paru/clone/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp:115:41: error: ‘rtc::AudioRtpPacketizer<48000>::defaultClockRate’ is deprecated: Use DefaultClockRate [-Werror=deprecated-declarations]
  115 |                 rtc::OpusRtpPacketizer::defaultClockRate);
      |                                         ^~~~~~~~~~~~~~~~
/usr/include/rtc/rtppacketizer.hpp:53:38: note: declared here
   53 |         inline static const uint32_t defaultClockRate [[deprecated("Use DefaultClockRate")]] =
      |                                      ^~~~~~~~~~~~~~~~
/home/iskander/.cache/paru/clone/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp:121:39: error: ‘using rtc::OpusPacketizationHandler = class rtc::PacketizationHandler’ is deprecated: Add OpusRtpPacketizer directly [-Werror=deprecated-declarations]
  121 |                 std::make_shared<rtc::OpusPacketizationHandler>(packetizer);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/rtc/rtppacketizer.hpp:79:7: note: declared here
   79 | using OpusPacketizationHandler [[deprecated("Add OpusRtpPacketizer directly")]] =
      |       ^~~~~~~~~~~~~~~~~~~~~~~~
/home/iskander/.cache/paru/clone/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp: In member function ‘void WHIPOutput::ConfigureVideoTrack(std::string, std::string)’:
/home/iskander/.cache/paru/clone/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp:152:39: error: ‘using rtc::H264PacketizationHandler = class rtc::PacketizationHandler’ is deprecated: Add H264RtpPacketizer directly [-Werror=deprecated-declarations]
  152 |                 std::make_shared<rtc::H264PacketizationHandler>(packetizer);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/rtc/rtc.hpp:32:
/usr/include/rtc/h264rtppacketizer.hpp:52:7: note: declared here
   52 | using H264PacketizationHandler [[deprecated("Add H264RtpPacketizer directly")]] = PacketizationHandler;
      |       ^~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [plugins/obs-webrtc/CMakeFiles/obs-webrtc.dir/build.make:90: plugins/obs-webrtc/CMakeFiles/obs-webrtc.dir/whip-output.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2035: plugins/obs-webrtc/CMakeFiles/obs-webrtc.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'obs-studio-amf-30.0.2-1': 
error: packages failed to build: obs-studio-amf-30.0.2-1

Last edited by iskander9908 (2024-05-04 10:48:29)

Offline

#2 2024-05-03 21:22:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,105
Website

Re: [SOLVED] OBS in wayland

I'm not sure what your title means ... this has nothing to do with wayland, you just failed to build an AUR package.

The AUR page for that package shows that others are having problems as well, and the maintainer has even given up on it.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-05-03 21:47:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,640

Re: [SOLVED] OBS in wayland

AFAIK standard OBS and VAAPI integration is generally considered sufficient/superior anyway.

Moving to AUR issues

Offline

#4 2024-05-03 21:49:21

iskander9908
Member
Registered: 2022-10-30
Posts: 29

Re: [SOLVED] OBS in wayland

Here is the similar topic. I already installed amf-amdgpu-driver, libva-vdpau-driver,  libva-mesa-driver, mesa-vdpau and libva-utils, but hardware acceleration still unavailable.

Last edited by iskander9908 (2024-05-03 21:50:12)

Offline

#5 2024-05-03 22:10:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,640

Re: [SOLVED] OBS in wayland

Hardware acceleration where? AFAIK you are not going to have HW accelerated screen grabs on wayland currently anyway, due to pipewire screen capturing baselines missing. The general encoders I can select VAAPI in the "Advanced" settings

Last edited by V1del (2024-05-03 22:10:32)

Offline

#6 2024-05-04 10:47:58

iskander9908
Member
Registered: 2022-10-30
Posts: 29

Re: [SOLVED] OBS in wayland

Seems like I found solution

Offline

Board footer

Powered by FluxBB