In case anyone else is using Oracle Linux like me I wanted to share how you can do hardware transcoding with RHEL 9 or Oracle Linux 9. Here are the steps I used and obviously you need to use sudo or su to root to execute the system commands:
- Boot under the rhel kernel and not the uek kernel. Since Oracle linux defaults to the uek kernel you need to do this step since the AMD drivers won't install correctly when running under uek.
- Download the Radeon Software for Linux for RHEL 9.x. Since the drivers are currently only available for v9.2, download that version even though the latest RHEL/Oracle Linux is v9.3: https://www.amd.com/en/support/linux-drivers
- dnf -y install ./amdgpu-install-5.7.50702-1.el9.noarch.rpm (Change this install line to the appropriate filename you downloaded above)
- Because you're running v9.3 and the current AMD drivers are for v9.2 you need to do the following 2 steps to modify the repos. After AMD releases the v9.3 drivers the repos should be able to remain untouched and these 2 steps should no longer be needed:
** vi /etc/yum.repos.d/amdgpu.repo and change $amdgpudistro to 9.2 since we're running 9.3
** vi /etc/yum.repos.d/amdgpu-proprietary.repo and change $amdgpudistro to 9.2 since we're running 9.3 - vi /bin/amdgpu-install and find "rhel" in the file which will be a "case statement" line and then add "|ol" to the end of the case statement line. You're adding "|ol" to the case statement so it doesn't error when you run it since Oracle Linux isn't in the original case statement.
- amdgpu-install --usecase=amf,graphics
- reboot
Now when you check the Advanced Setting in the Channels DVR web interface you should see "Hardware" selected in the Transcoder row on that page.
BTW, now that you've installed the AMD drivers successfully you can continue booting under the RHEL kernel or feel free to boot under the UEK kernel since the drivers are installed and Hardware transcoding will continue to work even when using the Oracle UEK kernel.
Hopefully this helps others for at least the v9.2 AMD RHEL drivers and RHEL/OL v9.3. For other versions of the drivers/OS hopefully these steps will give you guidance of what to do to make things work.