Re: Radeon RX580 and trouble with Ffmpeg

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Ryan Petris via PLUG-discuss
Date:  
To: PLUG-discuss
CC: Ryan Petris
Subject: Re: Radeon RX580 and trouble with Ffmpeg
There's likely some setting you have to enable or change to enable hardware acceleration. You'll probably have to poke around or google for that as I'm not that familiar with those settings in Handbrake.

That said, depending on what you're trying to do, you may just want to use CPU encoding anyway. You have a lot more control over what the final product looks like with CPU encoding that you do hardware encoding. With hardware encoding you can give it some parameters but ultimately you get whatever the encoder spits out, while you have many more knobs to turn for CPU encoding. You'll spend more time encoding but you'll likely end up with a better quality and smaller file with CPU encoding.

On Fri, Apr 5, 2024, at 4:42 PM, Jim via PLUG-discuss wrote:
> Thanks Ryan for the advice. You mentioned the mesa and vdpau drivers for hardware video acceleration. I'm testing handbrake now by having it transcode the same video (25 minutes) and same settings I mentioned earlier. ( H264 1440x1080 to 640x480). This time it's also using around 95% of the cpu and transcoding at around 80 fps. Is it using the hardware acceleration?
>
>
>
> Thanks
>
> On 4/5/24 15:37, Ryan Petris via PLUG-discuss wrote:
>> Yeah, I wouldn't use the proprietary AMD drivers. Jim, undo whatever it is that you did with the amdgpu-pro drivers and install the "xserver-xorg-video-amdgpu" (if you're on debian or a debian based distro, which I assume you are based on the mentioning of a deb package) and restart. That should be all you need.
>>
>> If you're wanting hardware video acceleration you can also install the following packages:
>>
>> mesa-va-drivers
>> vdpau-driver-all
>>
>> Those are listed on this wiki page: https://wiki.debian.org/HardwareVideoAcceleration
>>
>> On Fri, Apr 5, 2024, at 3:29 PM, z via PLUG-discuss wrote:
>>> I also don't think I made it clear that mesa is probably better than the proprietary AMD drivers on linux. The same is untrue on NVIDIA.
>>> Apr 5, 2024 15:11:16 z via PLUG-discuss <>:
>>>
>>>> Do you truly need proprietary drivers? That card is one of the best supported by open source software. So I would just install mesa, which should be easily installed from your distro's package manager, if it's not installed already.
>>>>
>>>> Assuming you do need proprietary, maybe try a reboot if you haven't already? It's giving a missing binary error and sometimes I get those after a kernel update and not rebooting.
>>>>
>>>>
>>>>
>>>> Zack
>>>> Apr 5, 2024 14:43:44 Jim via PLUG-discuss <>:
>>>>
>>>>> Today the Radeon RX580 graphics card I bought arrived. To get the drivers for the card, I went here
>>>>>
>>>>> https://www.amd.com/en/support where I downloaded amdgpu-install_6.0.60002-1_all.deb
>>>>>
>>>>> Next I started following the instructions at https://amdgpu-install.readthedocs.io/en/latest/ then I started running into problems.
>>>>>
>>>>> amdgpu-install --vulkan=amdvlk,pro gave me 2 errors:
>>>>>
>>>>> E: Unable to locate package vulkan-amdgpu-pro and the same for vulkan-amdgpu-pro:i386
>>>>>
>>>>> I kept going and entered amdgpu-install -y --usecase=workstation
>>>>>
>>>>> That returned the errors Unable to locate package amdgpu-pro and amdgpu-pro-lib32
>>>>>
>>>>> With the error messages I figured I'd have problems, but I tried to find out if I could use the hardware acceleration so I entered`:`
>>>>>
>>>>> `ffmpeg -i input.mp4 -c:v h264_amf -c:a copy output.mp4
>>>>>
>>>>> That gave me several errors. The first one was [h264_amf @ 0x562e1f855380] DLL libamfrt64.so.1 failed to open`
>>>>>
>>>>> `So I tried sudo updatedb and locate libamfrt64.so.1 which returned nothing. That told me the file wasn't there.`
>>>>>
>>>>> `I tried to transcode a file with Handbrake but it didn't show h264_amf among the available codec options.`
>>>>>
>>>>> `I tried searching for how to install libamfrt64.so.1 but all I got was references to steps I already tried.`
>>>>>
>>>>> `Did I make a mistake somwhere or does AMD need to fix something?`
>>>>>
>>>>> `Thank for your help.`
>>>>>
>>>>> `Jim`
>>>>>
>>>>>
>>>>>
>>> ---------------------------------------------------
>>> PLUG-discuss mailing list:
>>> To subscribe, unsubscribe, or to change your mail settings:
>>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>>
>>
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list:
>> To subscribe, unsubscribe, or to change your mail settings:
>> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>>
> ---------------------------------------------------
> PLUG-discuss mailing list:
> To subscribe, unsubscribe, or to change your mail settings:
> https://lists.phxlinux.org/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list:
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss