LINUX.ORG.RU

Ответ на: комментарий от anonymous

Нашёл похожую тему на форуме арча, но драйвера у меня не ставятся

[ 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
iskander9908
() автор топика
Ответ на: комментарий от iskander9908

seems I forgot to install some packages:

yay -Syu --needed libva-vdpau-driver  libva-mesa-driver mesa-vdpau libva-utils 

now hardware acceleration works!

А это прочитал?

Ты проверил какая версия OpenGL сейчас у тебя в системе, что предоставляет открытый драйвер?

anonymous
()