Question / Help AMD Framework/Encoder

Holyrood

New Member
Hi,

I am running latest AMD drivers, 19.6.3. Latest OBS and also latest NVIDIA Drivers. Issue began with wanting to use AMD Vega 56 and when I looked to use the AMD encoder it failed log file states:

15:00:18.732: [AMF] <Id: 3> Unable to initalize converter, error AMF_OPENCL_FAILED (code 19)
15:00:18.732: Stream output type 'rtmp_output' failed to start!
15:00:53.672: Settings changed (outputs)
15:00:53.672: ------------------------------------------------
15:00:55.319: [AMF] <Id: 7> Unable to initalize converter, error AMF_OPENCL_FAILED (code 19)
15:00:55.319: Stream output type 'rtmp_output' failed to start!

I am not sure when or why this has started to happen. It worked before. However OBS will not allow the AMD encoder to be used at all as long as NVENC/NVIDIA card is installed. NVIDIA card is stated as being GPU 0 in OBS. That should not be the case. AMD card is 0 and NVIDIA is 1. OBS is the only application that is seeing NVIDIA card as device 0.

I uninstalled OBS, completely. I removed the NVIDIA drivers completely from system, then I removed NVIDIA card, I then did a clean install of latest AMD drivers. Reinstalled OBS and the AMD encoder worked no problem. I then installed the NVIDIA graphics card again, clean installed drivers. I then opened OBS and the issue was back again. OBS refused to use AMD encoder once NVENC was present on system again....

I have tried OBS versions OBS-Studio-22.0.2-Full-Installer-x64, OBS-Studio-23.1-Full-Installer-x64 in hope that rolling back would correct issue. It did not.

It appears NVENC is hijacking device priority as it should not be seen as GPU 0 on this system. Any attempt to set it to 1 in NVENC GPU setting and then selecting AMD encoder reverts it back to 0 automatically. If I try to use NVENC once I set GPU to 1 NVENC no longer works.

on a side note. the first email address I used to register here came up banned by admin. this is the first time I have registered here I have never had a problem in the 8+ years of using OBS to need to register here and have had the email in question for a long time, only owner of it that I am aware of. can an admin be so kind as to DM to discuss this?
 
Last edited:

Holyrood

New Member
i'd also like to add that the nvenc encoder never appeared as an option before in OBS when on AMD display. Which it is doing now.
 

Holyrood

New Member
It might be helpful if you posted a full logfile.

thanks. I repeated the steps above again as to post a logfile with amd encoder working and logfile with it not.. the nvenc encoder was still a option in the dropdown in OBS. the only thing I did differently this time was I did not remove the nvidia card physically I did uninstall everything nvidia driver related though.
 

Attachments

  • OBS-LOG-AMD-INSTALLED-NVIDIA-DRIVERS2019-07-01 19-21-46.txt
    9.2 KB · Views: 49
  • OBS-LOG-AMD-NO-NVIDIA-DRIVERS-2019-07-01 19-10-16.txt
    8.9 KB · Views: 20

Narcogen

Active Member
I think as long as it physically sees a compatible Nvidia card it's going to offer NVENC as an option.

This log does show that your card is AMF compatible, but then this error stops it from running:

19:21:51.207: [AMF] <Id: 3> Unable to initalize converter, error AMF_OPENCL_FAILED (code 19)
19:21:51.207: Stream output type 'rtmp_output' failed to start!


I see references to that here:

https://github.com/obsproject/obs-amd-encoder/wiki/Guide:-Troubleshooting

I also see a note about the version, is yours the latest?

19:21:47.529: [AMF] Version 2.4.2 loaded (Compiled: 1.4.7.0, Runtime: 1.4.12.0, Library: 1;4;12;0;19.10.15.05;201905220903;CL#1786102).

The log indicates you have version 2.4.2, but the latest is 2.5.1.

https://www.xaymar.com/portfolio/plugin-amf-encoder-for-obs-studio/
 

Holyrood

New Member
thanks for taking your time to look at this. I read the links provided. Installed 2.5.1

Same thing is happening. Here is unfiltered log this time. I hope it gives more insight into what is going on.
 

Attachments

  • AMD-VERBOSE-UNFILTERED-LOG.txt
    13 KB · Views: 27

Holyrood

New Member
ok. thanks for your time.

I rolled back drivers to the closet I had installed before latest AMD drivers. That happened to be 19.5.2/june3. I can now use AMD encoder over nvenc. I have attached logfile for informative purposes relating to an issue that appears to be present in the latest AMD drivers.
 

Attachments

  • AMD-19-5-2-DRIVERS.txt
    18 KB · Views: 52
I am using Intel pentium g4400 with 8gb ddr4 ram amd asus h110mk motherboard, 120 GB transcend ssd
recently I've added asus r7 360 oc 2gb ddr5 v2 graphics card ,
I had installed amd driver adrenalin-2020-21.5.2 , in obs it shows h254/AVF,,, but when I select and try to record or stream it says
'starting the output failed. please check the log for more details '
and in the log it says
"Unable to initialize converter, error AMF_OPENCL_FAILED (code 19)"
please help me
 

Attachments

  • 2021-09-29 11-24-21.txt
    6.1 KB · Views: 19
Top