Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Frequently Asked Questions

Michael Fabian Dirks edited this page Aug 21, 2017 · 61 revisions

Ever wondered if the question you bugged someone with has already been answered? Wonder no longer! This page is the page for questions that have been asked over and over again!

Questions & Answers

Basics

Q: Why does this plugin exist?

This plugin exists because the default Media Foundation implementation had massively varying results, often underperforming on systems or outright refusing to work.

Q: What does this allow me to do?

It allows you to use the dedicated hardware inside AMD APUs and GPUs for encoding your H.264 (AVC/SVC) and H.265 (HEVC) streams with next to no impact on the system.

Q: Do I need to manually install this plugin?

Definitely not, OBS Studio 0.16.* and up always contain a plugin version fairly recent. There are times when the plugin version here is newer than the one in OBS, but usually things should work. If they don't, then yes you need to manually install this plugin.

Q: Is this free? Can I use this in commercial environments?

Yes, it is completely free as it is licensed under the X11/MIT License. You are free to modify and redistribute the software to others including commercial partners.
If you use this plugin for anything commercial, send me a message. I really want to see what you're using it for.

Q: I have the plugin, how do I use it now?

It's integrated with both Output Modes in OBS Studio. In simple mode select 'Hardware (AMD)', in advanced mode select 'H264 Encoder (AMD Advanced Media Framework)'. After you have done that, setting it up should be rather quick and easy.

Q: There's too many options, what do they all do?

Good that you asked, since starting with 1.4 you can now hover over the option itself to learn more about it in a tooltip. On versions before 1.4, this wiki page might be of help.

Q: Is it possible to achieve x264 quality with this?

Unfortunately not yet. Hardware encoding is primarily meant for speed instead of quality, so it will be a long time before any vendor can match the quality of x264. If AMD, Intel or NVidia ever were to fully open source their encoder and allow outside people to create their own kernel/runtime, then we might see improvements in the future. At the moment, no vendor currently has their encoder fully open sourced.

Q: Are other color formats than NV12 supported?

The Hardware encoder only supports NV12 at the moment, any other color format will have to be converted which usually results in less performance or outright broken experiences.

Problems & Solutions

Q: OBS Studio crashes when i click Stream/Record!

Crashes usually indicate an unstable system or a Driver in an invalid state and can be fixed by restoring either to their proper state. An unstable system can be caused by Hardware, Overclocking, attached USB Devices or Windows itself while a Driver in an invalid state can be caused by Overclocking, Hardware failure, Windows Update and non-AMD GPU modding tools.

Q: My settings keep getting changed!

You probably have a preset selected, which will constantly overwrite your settings with the ones from the preset. Some presets allow you to change the Bitrate within certain limits while others are more strict about that.

  • Twitch: Bitrate within 1 and 4 mbit
  • YouTube: Bitrate within 1 and 25 mbit
  • Recording: Bitrate must be above 10 mbit

Q: Colors in my Stream/Recording are wrong/too dark!

The AMD encoder relies on OBS to feed it the proper color range and space, so you must make sure that YUV Color Range is set to Partial and YUV Color Space is set to .601 or .709, depending on resolution. The plugin actually tells OBS Studio what to use, but there are rare cases where it doesn't work right.

Q: I want to get the same quality as x264!

It's not possible to get the same quality as x264, but you can get closer by increasing the bitrate slightly. An increase of ~200-500kbit over what you would have used for x264 should get you closer.

Q: The output isn't in the same Framerate I set OBS Studio to!

Make sure that you have disabled 'Frame Skipping' and that you don't get any 'Encoding overloaded!' messages, otherwise you might end up with a Variable Framerate file. The steps to solving the 'Encoding overloaded!' message usually include reducing the load on the encoder.

Q: I have an APU, how do I use the latest Runtime?

You should no longer do this, instead install the latest stable driver from AMD and use it. Do not rely on the find driver for my hardware function, as it is often outdated and not actively maintained by AMD.

Q: My stream/recording doesn't start!

That means that one or more settings you have configured aren't supported on your system. The log file OBS Studio creates should give you an idea which option it is.

Q: I only have green blocks in my stream/recording!

Set Coding Type to 'Default'.

Q: FFMPEG shows an error that avcodec, avutil and avformat are missing after enabling OpenCL features!

Q: OpenCL does not work!

The OpenCL support in the Plugin and AMF rely on your Systems OpenCL.dll, which is usually provided by the AMD Driver but there are rare exceptions. A known cause of these errors are the Intel GPU Drivers, which replace the AMD and Nvidia libraries with its own version that is extremely broken and causes all applications using it to experience very strange bugs. The only known fix is to run Display Driver Uninstaller and have it completely remove all traces of the Intel GPU Driver.

Q: My stream/recording is pixelated/blocky!

If you are using an APU with the stable (16.9.2 at the time of writing) drivers, make sure to set B-Pictures to 0, there is a bug with them which has been fixed in the latest drivers. Select View Mode 'Advanced' and then set B-Pictures Pattern to 0, then your stream/recording should be fine again.

Q: The quality doesn't match the bitrate set!

You most likely have a VBV Buffer Strictness set too high or a VBV Buffer Size set too low, ideal values are around 70-85% or Bitrate/(FrameRate/4) kbits.

Q: The encoder isn't using my settings!

If you don't have a preset selected, you might have a broken AMD Driver install. These can happen and the simplest solution is to do a full clean uninstall. See the entry for this in Other Stuff.

Q: I can't seek in the recorded file!

Q: The output doesn't play back properly!

Depending on what codec you chose to encode with there are different reasons for this. With H264/AVC encoded content it means that for some reason OBS failed to mux the output properly and it needs to be remuxed for it to work. With H265/HEVC content it is due to AMD not providing VUI headers which would contain the necessary timestamps for proper seeking.

Q: The message 'Encoding overloaded!' shows up even though it used to work correctly!

The primary reason for this is an unstable overclock which you will have to remove. Other reasons for this are that the system bus is overloaded (too many devices, for example capture cards love doing this), an application is currently using 100% of the GPU leaving no room for other applications or a broken card that you should have sent in for replacement way earlier.

Other Stuff

Q: How do I perform a full clean uninstall of the AMD Driver?

When everything else fails and you still experience issues with the AMD encoder, a full clean uninstall and reinstall will often help. Here's how to do it:

  1. Uninstall the AMD driver normally.
  2. Reboot to Safe Mode.
  3. Navigate to C:\Windows\System32\DriverStore\FileRepository
  4. Search for ativce, amdave or ATIOD.
  5. If you get any results, right click on them and click "Open file location".
  6. Go up one directory, you should now have the directory selected that contains the file.
  7. If the directory starts with "c030", change the Security settings to allow "Everyone" full control.
  8. Delete the directory.
  9. Repeat 3-8 until no more results show up.
  10. Reboot to Normal Mode and hope you didn't mess up.
  11. Install the AMD Driver normally again.

This didn't help!

Then continue on with the Troubleshooting guide!

Clone this wiki locally