Question / Help Failed to start recording with AMD encoder

VolTorian

New Member
So I recently installed the latest version of OBS Studio (20.0.1) and the AMD encoder plugin from https://obsproject.com/forum/resour...-framework-encoder-plugin-for-obs-studio.427/. However, every time I try to record using the H264/AVC Encoder (AMD Advanced Media Framework) encoder, it tells me "Failed to start recording
Starting the output failed. Please check the log for details.

NOTE: If you are using the NVENC or AMD encoders, make sure your video drivers are up to date."

I have updated my AMD drivers to the latest (17.8.1) and reinstalling OBS Studio and the plugin (a lot), but none of that worked. Sometimes when I reinstall the plugin, it lets me record once. However, when I stop the recording and start again, it gives me the error message.

Code:
21:49:48.533: CPU Name: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz
21:49:48.533: CPU Speed: 2594MHz
21:49:48.533: Physical Cores: 2, Logical Cores: 4
21:49:48.533: Physical Memory: 8112MB Total, 3850MB Free
21:49:48.533: Windows Version: 10.0 Build 14393 (revision: 1198; 64-bit)
21:49:48.533: Running as administrator: false
21:49:48.533: Aero is Enabled (Aero is always on for windows 8 and above)
21:49:48.534: Portable mode: false
21:49:48.549: OBS 20.0.1 (64bit, windows)
21:49:48.549: ---------------------------------
21:49:48.551: ---------------------------------
21:49:48.551: audio settings reset:
21:49:48.551:     samples per sec: 44100
21:49:48.551:     speakers:        2
21:49:48.557: ---------------------------------
21:49:48.557: Initializing D3D11...
21:49:48.557: Available Video Adapters:
21:49:48.561:     Adapter 1: AMD Radeon R9 M275X
21:49:48.561:       Dedicated VRAM: 2126692352
21:49:48.561:       Shared VRAM:    4253528064
21:49:48.561:       output 1: pos={0, 0}, size={1680, 1050}, attached=true
21:49:48.561:     Adapter 2: Intel(R) HD Graphics Family
21:49:48.561:       Dedicated VRAM: 117964800
21:49:48.561:       Shared VRAM:    2147483648
21:49:48.563: Loading up D3D11 on adapter AMD Radeon R9 M275X (0)
21:49:49.203: D3D11 loaded successfully, feature level used: 45056
21:49:50.508: ---------------------------------
21:49:50.508: video settings reset:
21:49:50.508:     base resolution:   1280x720
21:49:50.508:     output resolution: 1280x720
21:49:50.508:     downscale filter:  Bilinear
21:49:50.508:     fps:               30/1
21:49:50.508:     format:            NV12
21:49:50.510: Audio monitoring device:
21:49:50.510:     name: Default
21:49:50.510:     id: default
21:49:50.510: ---------------------------------
21:49:50.527: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
21:49:50.539: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
21:49:50.557: [AMF] Version 2.2.3 loaded (Compiled: 1.4.4.0, Runtime: 1.4.4.0, Library: 1;4;4;0;17.30.1051;201708151445;CL#1447505).
21:49:50.755: [AMF] <Id: 2> Unable to create H265/HEVC encoder, error AMF_ENCODER_NOT_PRESENT (code 36)
21:49:50.882: [AMF] <Id: 4> Unable to create H265/HEVC encoder, error AMF_ENCODER_NOT_PRESENT (code 36)
21:49:50.882: [AMF] [H265/HEVC] Not supported by any GPU, disabling...
21:49:50.917: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
21:49:50.924: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
21:49:50.932: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
21:49:50.940: Failed to load 'en-US' text for module: 'obs-browser.dll'
21:49:50.940: [browser_source: 'Version: 1.29.0']
21:49:50.958: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
21:49:50.958:  (126)
21:49:51.084: Couldn't find VLC installation, VLC video source disabled
21:49:51.114: No blackmagic support
21:49:51.492: ---------------------------------
21:49:51.492:   Loaded Modules:
21:49:51.492:     win-wasapi.dll
21:49:51.492:     win-mf.dll
21:49:51.492:     win-dshow.dll
21:49:51.492:     win-decklink.dll
21:49:51.492:     win-capture.dll
21:49:51.492:     vlc-video.dll
21:49:51.492:     text-freetype2.dll
21:49:51.492:     rtmp-services.dll
21:49:51.492:     obs-x264.dll
21:49:51.492:     obs-vst.dll
21:49:51.492:     obs-transitions.dll
21:49:51.492:     obs-text.dll
21:49:51.492:     obs-qsv11.dll
21:49:51.492:     obs-outputs.dll
21:49:51.492:     obs-filters.dll
21:49:51.492:     obs-ffmpeg.dll
21:49:51.492:     obs-browser.dll
21:49:51.492:     image-source.dll
21:49:51.492:     frontend-tools.dll
21:49:51.492:     enc-amf.dll
21:49:51.492:     coreaudio-encoder.dll
21:49:51.492: ---------------------------------
21:49:51.492: ==== Startup complete ===============================================
21:49:51.505: All scene data cleared
21:49:51.505: ------------------------------------------------
21:49:51.540: WASAPI: Device 'Headset (High Definition Audio Device)' initialized
21:49:51.563: WASAPI: Device 'Headset Mic (High Definition Audio Device)' initialized
21:49:51.593: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
21:49:51.612: [WASAPISource::WASAPISource] Device '{0.0.1.00000000}.{2e64790f-ecb5-4d44-adf0-fa298b668912}' not found.  Waiting for device
21:49:51.764: Switched to scene 'SceneMinecraft'
21:49:51.768: ------------------------------------------------
21:49:51.768: Loaded scenes:
21:49:51.768: - scene 'SceneMinecraft':
21:49:51.768:     - source: 'Minecraft/Spiral Knights' (game_capture)
21:49:51.768: - scene 'SceneOverwatch':
21:49:51.768:     - source: 'Overwatch' (game_capture)
21:49:51.768: - scene 'SceneTrove':
21:49:51.768:     - source: 'Trove' (game_capture)
21:49:51.768: - scene 'SceneElsword':
21:49:51.768:     - source: 'Elsword' (window_capture)
21:49:51.768:     - source: 'NohBoard Arrow Keys' (window_capture)
21:49:51.768:         - filter: 'Chroma Key' (chroma_key_filter)
21:49:51.768:     - source: 'APVKP Arrow Keys' (window_capture)
21:49:51.768:         - filter: 'Chroma Key' (chroma_key_filter)
21:49:51.768: - scene 'SceneTF2':
21:49:51.768:     - source: 'Team Fortress 2' (window_capture)
21:49:51.768: - scene 'SceneLoL':
21:49:51.769:     - source: 'League of Legends' (game_capture)
21:49:51.769: - scene 'SceneFocus':
21:49:51.769:     - source: 'Focus' (window_capture)
21:49:51.769:     - source: 'Lenovo Easycamera' (dshow_input)
21:49:51.769: - scene 'Facecam':
21:49:51.769:     - source: 'FaceCam' (dshow_input)
21:49:51.769:     - source: 'Lenovo Easycamera' (dshow_input)
21:49:51.769: - scene 'Whole screen':
21:49:51.769:     - source: 'Google CHrome' (window_capture)
21:49:51.769: - scene 'Recording for Hw':
21:49:51.769: - scene 'Voice only':
21:49:51.769:     - source: 'Mic/Aux' (wasapi_input_capture)
21:49:51.769: ------------------------------------------------
21:49:51.814: ---------------------------------
21:49:51.814: [DShow Device: 'Lenovo Easycamera'] settings updated:
21:49:51.814:     video device: Lenovo EasyCamera
21:49:51.814:     video path: \\?\usb#vid_174f&pid_14b1&mi_00#6&39a48bba&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
21:49:51.814:     resolution: 800x600
21:49:51.814:     fps: 30.00 (interval: 333333)
21:49:51.814:     format: MJPEG
21:49:51.815: DShow: HDevice::ConnectPins: failed to connect pins (0x80040207): The owner SID on a per-user subscription doesn't exist
21:49:51.815:
21:49:51.817: ---------------------------------
21:49:51.817: [DShow Device: 'FaceCam'] settings updated:
21:49:51.817:     video device: Lenovo EasyCamera
21:49:51.817:     video path: \\?\usb#vid_174f&pid_14b1&mi_00#6&39a48bba&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
21:49:51.817:     resolution: 1280x720
21:49:51.817:     fps: 30.00 (interval: 333333)
21:49:51.817:     format: MJPEG
21:49:51.818: DShow: HDevice::ConnectPins: failed to connect pins (0x80040207): The owner SID on a per-user subscription doesn't exist
21:49:51.818:
21:49:51.890: DShow: Run failed (0x800705AA): Insufficient system resources exist to complete the requested service.
21:49:51.890:
21:49:56.469: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
21:50:11.962: [AMF] <Id: 9> Failed to initialize encoder, error AMF_ENCODER_NOT_PRESENT (code 36)
21:50:16.977: ==== Shutting down ==================================================
21:50:17.004: Switched to scene '(null)'
21:50:17.036: WASAPI: Device 'Headset (High Definition Audio Device)' Terminated
21:50:17.040: WASAPI: Device 'Headset Mic (High Definition Audio Device)' Terminated
21:50:17.046: All scene data cleared
21:50:17.046: ------------------------------------------------
21:50:17.148: Freeing OBS context data
21:50:17.200: == Profiler Results =============================
21:50:17.200: run_program_init: 3516.82 ms
21:50:17.200:  ┣OBSApp::AppInit: 18.699 ms
21:50:17.200:  ┃ ┗OBSApp::InitLocale: 4.909 ms
21:50:17.200:  ┗OBSApp::OBSInit: 3478.5 ms
21:50:17.200:    ┣obs_startup: 2.091 ms
21:50:17.200:    ┗OBSBasic::OBSInit: 3422.71 ms
21:50:17.200:      ┣OBSBasic::InitBasicConfig: 2.339 ms
21:50:17.200:      ┣OBSBasic::ResetAudio: 0.428 ms
21:50:17.200:      ┣OBSBasic::ResetVideo: 1958.16 ms
21:50:17.200:      ┣OBSBasic::InitOBSCallbacks: 0.01 ms
21:50:17.200:      ┣OBSBasic::InitHotkeys: 0.078 ms
21:50:17.200:      ┣obs_load_all_modules: 981.372 ms
21:50:17.200:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 1.009 ms
21:50:17.200:      ┃ ┣obs_init_module(enc-amf.dll): 329.035 ms
21:50:17.200:      ┃ ┣obs_init_module(frontend-tools.dll): 1.642 ms
21:50:17.200:      ┃ ┣obs_init_module(image-source.dll): 0.006 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-browser.dll): 0.098 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.828 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-filters.dll): 0.018 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-outputs.dll): 0.013 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-qsv11.dll): 13.862 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-text.dll): 0.542 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-transitions.dll): 0.008 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-vst.dll): 0.003 ms
21:50:17.200:      ┃ ┣obs_init_module(obs-x264.dll): 0.004 ms
21:50:17.200:      ┃ ┣obs_init_module(rtmp-services.dll): 3.764 ms
21:50:17.200:      ┃ ┣obs_init_module(text-freetype2.dll): 0.078 ms
21:50:17.200:      ┃ ┣obs_init_module(vlc-video.dll): 0.06 ms
21:50:17.200:      ┃ ┣obs_init_module(win-capture.dll): 0.122 ms
21:50:17.200:      ┃ ┣obs_init_module(win-decklink.dll): 3.354 ms
21:50:17.200:      ┃ ┣obs_init_module(win-dshow.dll): 2.27 ms
21:50:17.200:      ┃ ┣obs_init_module(win-mf.dll): 334.244 ms
21:50:17.200:      ┃ ┣obs_init_module(win-wasapi.dll): 0.009 ms
21:50:17.200:      ┃ ┗reset_win32_symbol_paths: 0.21 ms
21:50:17.200:      ┣OBSBasic::ResetOutputs: 5.222 ms
21:50:17.200:      ┣OBSBasic::CreateHotkeys: 0.334 ms
21:50:17.200:      ┣OBSBasic::InitService: 1.758 ms
21:50:17.200:      ┣OBSBasic::InitPrimitives: 0.366 ms
21:50:17.200:      ┗OBSBasic::Load: 268.823 ms
21:50:17.200: obs_hotkey_thread(25 ms): min=0.004 ms, median=0.011 ms, max=19.511 ms, 99th percentile=8.731 ms, 100% below 25 ms
21:50:17.200: audio_thread(Audio): min=0 ms, median=0.056 ms, max=2.813 ms, 99th percentile=0.432 ms
21:50:17.200: obs_video_thread(33.3333 ms): min=0.341 ms, median=1.15 ms, max=183.183 ms, 99th percentile=17.013 ms, 99.8742% below 33.333 ms
21:50:17.200:  ┣tick_sources: min=0.001 ms, median=0.017 ms, max=182.618 ms, 99th percentile=1.611 ms
21:50:17.200:  ┣render_displays: min=0.001 ms, median=0.563 ms, max=29.968 ms, 99th percentile=15.411 ms
21:50:17.200:  ┗output_frame: min=0.334 ms, median=0.525 ms, max=5.88 ms, 99th percentile=1.624 ms
21:50:17.200:    ┣gs_context(video->graphics): min=0.141 ms, median=0.217 ms, max=5.606 ms, 99th percentile=0.951 ms
21:50:17.200:    ┃ ┣render_video: min=0.038 ms, median=0.058 ms, max=5.435 ms, 99th percentile=0.3 ms
21:50:17.200:    ┃ ┃ ┣render_main_texture: min=0.005 ms, median=0.008 ms, max=5.319 ms, 99th percentile=0.05 ms
21:50:17.200:    ┃ ┃ ┣render_output_texture: min=0.004 ms, median=0.023 ms, max=2.387 ms, 99th percentile=0.138 ms
21:50:17.201:    ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.015 ms, max=0.18 ms, 99th percentile=0.047 ms
21:50:17.201:    ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.008 ms, max=0.137 ms, 99th percentile=0.038 ms
21:50:17.201:    ┃ ┣download_frame: min=0 ms, median=0.006 ms, max=1.239 ms, 99th percentile=0.038 ms
21:50:17.201:    ┃ ┗gs_flush: min=0.06 ms, median=0.143 ms, max=1.597 ms, 99th percentile=0.497 ms
21:50:17.201:    ┗output_video_data: min=0.193 ms, median=0.294 ms, max=1.689 ms, 99th percentile=0.844 ms
21:50:17.201: video_thread(video): min=0 ms, median=0.002 ms, max=0.049 ms, 99th percentile=0.006 ms
21:50:17.201: =================================================
21:50:17.201: == Profiler Time Between Calls ==================
21:50:17.201: obs_hotkey_thread(25 ms): min=24.656 ms, median=25.129 ms, max=44.748 ms, 82.9616% within ±2% of 25 ms (0% lower, 17.0384% higher)
21:50:17.201: obs_video_thread(33.3333 ms): min=16.857 ms, median=33.333 ms, max=183.194 ms, 96.5995% within ±2% of 33.333 ms (1.63728% lower, 1.76322% higher)
21:50:17.201: =================================================
21:50:17.220: Number of memory leaks: 1

Earlier this year I was using an OBS Studio version from January(?) and the encoder settings had AMD Video Coding Engine H.264 Encoder (Media Foundation) on the list. Nothing happened when I used it, so in July, I installed an earlier version of the plugin, and using AMD Video Coding Engine H.264 Encoder (Media Foundation) worked. More recently, something came up that led to me reinstalling OBS Studio and the plugin, but having done that, the encoder settings now listed both H264/AVC Encoder (AMD Advanced Media Framework) AND AMD Video Coding Engine H.264 Encoder (Media Foundation). After I chose H264/AVC Encoder (AMD Advanced Media Framework), applied, and exited the settings, AMD Video Coding Engine H.264 Encoder (Media Foundation) no longer showed up on the list. Unfortunately I do not have the log files for the previous versions of OBS Studio and the plugin.

I don't understand how this could have worked a month ago and then break after updating. I have used the same laptop.
 
I am having the same issue, and have gone through the steps of ensuring up-to-date drivers and uninstall/reinstall, but I am still getting the "Failed to start recording. Starting the output failed. Please check the log for details. NOTE: If you are using the NVENC or AMD encoders, make sure your video drivers are up to date." error message.
 
Update your GPU drivers if you haven't already, or better yet perform a clean install for them.
 
I updated to the recommended (17.7.1 or 17.1.2) and it wouldn't work, so i updated to the optional drivers 17.8.1. still doesn't work

As a clean install? That's impressive if you managed to do that in less than 2 minutes. Your issue is that the encoder is available, but can't be initialized:
Code:
21:50:11.962: [AMF] <Id: 9> Failed to initialize encoder, error AMF_ENCODER_NOT_PRESENT (code 36)

I would need a more verbose log from OBS, enable the "Debug" option in the encoder settings and then start OBS with --verbose --unfiltered_log appended to the shortcut. Be aware that the produced log will likely be several megabytes big, so you will have to compress in using WinRar, 7-zip or similar before uploading.
 
As a clean install? That's impressive if you managed to do that in less than 2 minutes. Your issue is that the encoder is available, but can't be initialized:
Code:
21:50:11.962: [AMF] <Id: 9> Failed to initialize encoder, error AMF_ENCODER_NOT_PRESENT (code 36)

I would need a more verbose log from OBS, enable the "Debug" option in the encoder settings and then start OBS with --verbose --unfiltered_log appended to the shortcut. Be aware that the produced log will likely be several megabytes big, so you will have to compress in using WinRar, 7-zip or similar before uploading.
no i had already updated drivers from before. they weren't clean installs though, they were just updates from older driver versions. i updated them because of this problem, and that didn't work, so i made this post

i enabled the debug thing in both the streaming and recording settings and added "--verbose --unfiltered_log" to the end of Target in the shortcut options. the file isn't actually big though, 42kb. did i miss something?
 

Attachments

Last edited:
That log is weird. It manages to successfully create a H264 encoder on both DirectX 11 and DirectX 9, but when it comes to actual encoding it fails. This is very likely a driver bug, by what it's caused is hard to say.
 
That log is weird. It manages to successfully create a H264 encoder on both DirectX 11 and DirectX 9, but when it comes to actual encoding it fails. This is very likely a driver bug, by what it's caused is hard to say.
alright i'll try an actual clean reinstall of drivers and see if it works
 
That log is weird. It manages to successfully create a H264 encoder on both DirectX 11 and DirectX 9, but when it comes to actual encoding it fails. This is very likely a driver bug, by what it's caused is hard to say.
ok so i used AMD's clean uninstall thing, then reinstalled the drivers. it installed driver version 17.7.2, but when i tried obs, the AMD encoding option wasn't there, and it wouldn't appear after reinstalling obs studio and the plugin. so i updated from 17.7.2 to 17.8.1. the amd encoding option is there again.

i was able to record ONCE after reinstalling and updating the drivers to 17.8.1, as my log file will hopefully show (i don't know how to read them lol) but then it wouldn't start recording again after i stopped it
 

Attachments

Code:
22:30:03.634: [AMF Runtime] [22:30:03.634][AMFEncoderVCE]    Error: ..\..\..\..\..\runtime\src\components\EncoderVCE\EncoderVCEImpl.cpp(843):AMF_ERROR 1 : AMF_FAIL: Init() - Could not change encoder state

Looks like an actual driver bug, report it through the driver report form. I will open an issue on the AMF issue tracker for this too.
 
Last edited:
Code:
22:30:03.634: [AMF Runtime] [22:30:03.634][AMFEncoderVCE]    Error: ..\..\..\..\..\runtime\src\components\EncoderVCE\EncoderVCEImpl.cpp(843):AMF_ERROR 1 : AMF_FAIL: Init() - Could not change encoder state

Looks like an actual driver bug, report it through the driver report form. I will open an issue on the AMF issue tracker for this too.
how/where do i do that?
 
So, i had the same problem on my hp laptop, i installed the latest version of the graphics driver, and when the laptop restarted, obs wouldn't open, it would just crash. So, i right-clicked on the shortcut on the desktop, and ran the compatibility checker, it ran its course, and optimized the settings for obs, and obs runs perfectly now.
 
Back
Top