Package Details: obs-studio-amf 30.0.2-1

Git Clone URL: https://aur.archlinux.org/obs-studio-amf.git (read-only, click to copy)
Package Base: obs-studio-amf
Description: Free, open source software for live streaming and recording. Includes new AMF encoding patch & browser plugin
Upstream URL: https://obsproject.com
Licenses: GPL2
Conflicts: obs-studio, obs-studio-tytan652, obs-websocket
Provides: obs-studio, obs-websocket
Submitter: alosarjos
Maintainer: alosarjos
Last Packager: alosarjos
Votes: 14
Popularity: 0.49
First Submitted: 2022-09-03 11:22 (UTC)
Last Updated: 2024-01-06 19:10 (UTC)

Dependencies (38)

Required by (142)

Sources (4)

Pinned Comments

alosarjos commented on 2023-11-12 07:42 (UTC)

Since OBS 30.0 has been released, I'll close the package.

The person who did the patch to enable AMF Encoding says that now the quality with FFMPEG has been fixed on AMD Cards (https://github.com/obsproject/obs-studio/pull/9179)

Since the MR in closed and the patch no longer maintained I would close this AUR package.

If someone wants to take maintenance of it, please let me know. IF not I will close this in a few days

alosarjos commented on 2022-09-03 11:44 (UTC) (edited on 2022-09-04 09:55 (UTC) by alosarjos)

This package is intended to try and give some feedback for the existing pull request enabling this functionality:

https://github.com/obsproject/obs-studio/pull/7206

Once this is merged and released as the official package this will be delelted

Latest Comments

1 2 3 4 5 6 .. 12 Next › Last »

OzzyHelix commented on 2024-05-04 00:12 (UTC)

its also possible trying to manually add stuff from the patch into texture-amf.cpp didn't work correctly but here is the broken patch I tried to create maybe it could help jumpstart development of a new patch for AMF https://github.com/OzzyHelix/broken-obs-studio-amf-patch/blob/main/obs-amf-patch.patch

OzzyHelix commented on 2024-05-04 00:06 (UTC)

from what I understand its largely problems with /plugins/obs-ffmpeg/CMakeLists.txt they changed the file too much everything else still works tho I get a build failure with a bunch of not handled in switch [-Wswitch] I tried to update the patch but it didn't really work tho if you want to take a look at my attempt I'll provide my broken attempt at a patch

OzzyHelix commented on 2024-05-03 23:56 (UTC)

I was able to keep the pkgbuild working for a while in my own git repo but the patch is no longer working because of changes to obs what we need is someone who can update the patch then I could provide an updated PKGBUILD file and then this should be fixed

alosarjos commented on 2024-05-03 18:49 (UTC)

I can't no longer maintain this package, if someone else wants, I can make a co-manager

OzzyHelix commented on 2024-05-02 22:09 (UTC)

we can't use AMF without your patch and I am trying to get things to change with OBS itself so AMF is an option in OBS by default but we need this to get updated for people to continue to use AMF in OBS

OzzyHelix commented on 2024-05-02 22:07 (UTC)

OK look I've tried to maintain your patch in your steed for as long as I can and I can no longer do it. OBS doesn't enable AMF by default for anything if you want to use AMF for H265 or AV1 or even H264 you have you use your patch and you need to get it updated. because of the release 30.1.2 I am marking this package as out of date. I have also asked the OBS devs directly to just give us the options by default so please update your package so we can use AMF until they give us a decision on this. https://ideas.obsproject.com/posts/2591/please-enable-amf-amd-hw-encoding-options-on-linux

OzzyHelix commented on 2024-02-21 02:43 (UTC)

this is the experiment I made I just added the AMF patch to the obs-studio-av1 PKGBUILD and renamed the PKGBUILD package obs-studio-amd. I'm just playing with it I don't expect it to get taken seriously https://github.com/OzzyHelix/obs-studio-amf-tmpfix-for-arch/tree/obs-studio-amd

OzzyHelix commented on 2024-02-21 01:33 (UTC)

this might sound dumb but I was suggesting to the obs-studio-av1 aur package that you guys combine the patches into one package called obs-studio-amd I think having patches for AV1 and AMF in one package might be good for everyone but I will keep that experiment in a different branch on my github

OzzyHelix commented on 2024-02-18 23:20 (UTC) (edited on 2024-02-18 23:20 (UTC) by OzzyHelix)

here is what I've done I took the PKGBUILD and other files from obs-studio-av1 to get your obs-amf-patch.patch to build the diff between packages will be provided alongside the github repo containing the modified PKGBUILD with the fix. I don't know if this would be a good solution but this would allow your package to build again.

here is the full diff between the packages

https://pastebin.com/raw/9gEfa6XK

then the repo containing the package you can use to fix your aur package

https://github.com/OzzyHelix/obs-studio-amf-tmpfix-for-arch

I hope this gets things working again for folks so we can use AMF on our AMD GPUs and I just ask that people take a look at this.

Sincerely Ozzy

OzzyHelix commented on 2024-02-15 03:09 (UTC) (edited on 2024-02-15 03:11 (UTC) by OzzyHelix)

I don't know if this is helpful but this is where the build fails with your PKGBUILD


Installing text-freetype2 to OBS rundir

[ 76%] Built target text-freetype2

[ 76%] Building CXX object plugins/obs-webrtc/CMakeFiles/obs-webrtc.dir/obs-webrtc.cpp.o

[ 76%] Building CXX object plugins/obs-webrtc/CMakeFiles/obs-webrtc.dir/whip-output.cpp.o

/home/ozzy/Downloads/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp: In member function ‘void WHIPOutput::ConfigureAudioTrack(std::string, std::string)’:
/home/ozzy/Downloads/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/ozzy/Downloads/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.h:14,
                 from /home/ozzy/Downloads/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/ozzy/Downloads/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/ozzy/Downloads/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/ozzy/Downloads/obs-studio-amf/src/obs-studio/plugins/obs-webrtc/whip-output.cpp: In member function ‘void WHIPOutput::ConfigureVideoTrack(std::string, std::string)’:
/home/ozzy/Downloads/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...