Question / Help Nvidia NVENC

iiCey

New Member
Hi,

I have been using OBS quite a lot, recently I had been forced to reboot my Windows to a fresh one instead, now, when I installed OBS I have encountered errors whilst trying to stream with Nvidia NVENC as encoder, since my CPU is quite bad and my GPU is better I have always used it to encode, another thing I've noticed is framerate drops in stream, my ingame fps is around 80-90 while stream fps drops to even 5 fps. Now all my drivers are up-to-date (checked it twice) and I'm using latest stable version of OBS, can't seem to remember if it was the same version I had before but I know for sure I didn't encounter "Encoder initialization failed!".

This is my log file from OBS:
Code:
16:23:35: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
16:23:35: CUDA loaded successfully
16:23:35: 1 CUDA capable devices found
16:23:35: [ GPU #0 - < GeForce GT 740 > has Compute SM 3.0, NVENC Available ]
16:23:36: Open Broadcaster Software v0.658b - 32bit (´・ω・`)
16:23:36: -------------------------------
16:23:36: CPU Name: AMD A6-6400K APU with Radeon(tm) HD Graphics
16:23:36: CPU Speed: 3919MHz
16:23:36: Physical Memory:  4095MB Total, 4095MB Free
16:23:36: stepping id: 1, model 19, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 2, total cores 2
16:23:36: monitor 1: pos={0, 0}, size={1920, 1080}
16:23:36: Windows Version: 6.1 Build 7601 (revision 17514)
16:23:36: Aero is Disabled
16:23:36: -------------------------------
16:23:36: OBS Modules:
16:23:36: Base Address     Module
16:23:36: 01240000         OBS.exe
16:23:36: 60680000         OBSApi.dll
16:23:36: 744F0000         DShowPlugin.dll
16:23:36: 74590000         GraphicsCapture.dll
16:23:36: 71F80000         NoiseGate.dll
16:23:36: 745E0000         PSVPlugin.dll
16:23:36: 74460000         scenesw.dll
16:23:36: ------------------------------------------
16:23:36: Adapter 1
16:23:36:   Video Adapter: NVIDIA GeForce GT 740
16:23:36:   Video Adapter Dedicated Video Memory: 2087387136
16:23:36:   Video Adapter Shared System Memory: 2147807232
16:23:36:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
16:23:36: ------------------------------------------
16:23:36: Adapter 2
16:23:36:   Video Adapter: AMD Radeon HD 8470D
16:23:36:   Video Adapter Dedicated Video Memory: 503173120
16:23:36:   Video Adapter Shared System Memory: 3729471488
16:23:36: =====Stream Start: 2016-08-14, 16:23:36===============================================
16:23:36:   Multithreaded optimizations: On
16:23:36:   Base resolution: 1920x1080
16:23:36:   Output resolution: 1280x720
16:23:36: ------------------------------------------
16:23:36: Loading up D3D10 on NVIDIA GeForce GT 740 (Adapter 1)...
16:23:37: ------------------------------------------
16:23:37: Audio Format: 48000 Hz
16:23:37: ------------------------------------------
16:23:37: Audio Channels: 2 Ch
16:23:37: Playback device {0.0.0.00000000}.{4abe2616-94d9-4161-9ed3-76564760253e}
16:23:37: ------------------------------------------
16:23:37: Using desktop audio input: Speakers (Realtek High Definition Audio)
16:23:37: Global Audio time adjust: 0
16:23:37: ------------------------------------------
16:23:37: Using auxilary audio input: Microphone (Realtek High Definition Audio)
16:23:37: Mic time offset: 0
16:23:37: ------------------------------------------
16:23:37: Audio Encoding: AAC
16:23:37:     bitrate: 128
Warning -- OBS::CreateImageSource: Could not find image source class 'CLRBrowserSource'
Warning -- Could not create image source 'Latest' in scene 'LoL Client'
Warning -- OBS::CreateImageSource: Could not find image source class 'CLRBrowserSource'
Warning -- Could not create image source 'Chat' in scene 'LoL Client'
Warning -- OBS::CreateImageSource: Could not find image source class 'CLRBrowserSource'
Warning -- Could not create image source 'Alerts' in scene 'LoL Client'
16:23:37: Using text output
16:23:37: Using bitmap image
16:23:37: Using graphics capture
16:23:37: Scene buffering time set to 700
16:23:37: Failed to get nvenc instance
16:23:37: NVENC internal init failed
16:23:37: Couldn't initialize encoder
16:23:37: =====Stream End: 2016-08-14, 16:23:37=================================================


Last game capture log:
2016-08-14, 15:40:31: we're booting up:
15:40:31: CaptureThread: attached to process League of Legends.exe
15:40:31: D3D9 Present
15:40:31: DXGI Present
15:40:31: GL Present
15:40:31: DirectDraw Present
15:40:31: (half life scientist) everything..  seems to be in order
15:40:31: D3D9EndScene called
15:40:31: D3DPRESENT_PARAMETERS {
15:40:31:     BackBufferWidth: 1920
15:40:31:     BackBufferHeight: 1080
15:40:31:     BackBufferFormat: D3DFMT_X8R8G8B8
15:40:31:     BackBufferCount: 1
15:40:31:     MultiSampleType: D3DMULTISAMPLE_NONE
15:40:31:     MultiSampleQuality: 0
15:40:31:     SwapEffect: D3DSWAPEFFECT_DISCARD
15:40:31:     hDeviceWindow: 6947266
15:40:31:     Windowed: true
15:40:31:     EnableAutoDepthStencil: false
15:40:31:     AutoDepthStencilFormat: D3DFMT_D24S8
15:40:31:     Flags: None
15:40:31:     FullScreen_RefreshRateInHz: 0
15:40:31:     PresentationInterval: 2147483648
15:40:31: };
15:40:31: successfully set up d3d9 hooks
15:40:31: D3D9Present called
15:40:31: DoD3D9GPUHook: success
15:40:31: D3DSURFACE_DESC {
15:40:31:     Format: D3DFMT_X8R8G8B8
15:40:31:     Type: D3DRTYPE_SURFACE
15:40:31:     Usage: D3DUSAGE_RENDERTARGET
15:40:31:     Pool: D3DPOOL_DEFAULT
15:40:31:     MultiSampleType: D3DMULTISAMPLE_NONE
15:40:31:     MultiSampleQuality: 0
15:40:31:     Width: 1920
15:40:31:     Height: 1080
15:40:31: };
15:40:31: successfully capturing d3d9 frames via GPU
15:45:01: ---------------------- Cleared D3D9 Ca15:55:59: D3D9Reset called
15:55:59: ---------------------- Cleared D3D9 Capture ----------------------
15:55:59: D3DPRESENT_PARAMETERS {
15:55:59:     BackBufferWidth: 16
15:55:59:     BackBufferHeight: 16
15:55:59:     BackBufferFormat: D3DFMT_X8R8G8B8
15:55:59:     BackBufferCount: 1
15:55:59:     MultiSampleType: D3DMULTISAMPLE_NONE
15:55:59:     MultiSampleQuality: 0
15:55:59:     SwapEffect: D3DSWAPEFFECT_COPY
15:55:59:     hDeviceWindow: 1311232
15:55:59:     Windowed: true
15:55:59:     EnableAutoDepthStencil: false
15:55:59:     AutoDepthStencilFormat: D3DFMT_UNKNOWN
15:55:59:     Flags: None
15:55:59:     FullScreen_RefreshRateInHz: 0
15:55:59:     PresentationInterval: 1
15:55:59: };
15:55:59: successfully set up d3d9 hooks
15:55:59: D3D9EndScene called
15:55:59: D3D9SwapPresent called
16:07:02: D3D9Reset called
16:07:02: ---------------------- Cleared D3D9 Capture ----------------------
16:07:03: successfully set up d3d9 hooks
16:07:03: D3D9EndScene called
16:07:03: D3D9SwapPresent called
16:08:06: received restart event, capturing
16:08:06: DoD3D9GPUHook: success
16:08:11: Keepalive no longer found on d3d9, freeing capture data
16:08:11: ---------------------- Cleared D3D9 Capture ----------------------
16:08:11: D3D9EndScene called
16:08:11: D3D9SwapPresent called
 

iiCey

New Member
How come? As I said, last time I used the OBS it was probably the previous version and it has been running on Nvidia NVENC just normally didn't have different GPU or anything but it worked fine
 

c3r1c3

Member
Actually it does support NVENC... contrary to what NVidia said day 1. (Don't know when they unlocked it).

The issue is that NVENC is broken in 0.658b. Seeing as that Classic is dead, you'll need to update to Studio 0.15.4.
 
Last edited:

iiCey

New Member
Thank you very much c3r1c3 I had OBS Studio but I've lost myself into it couldn't make it setup properly, anyways thank you very much for your help, I'll look out for some guides for setting up, there's another thing I wanted to ask, I'm planning to upgrade my PC, now, since recent upgrade (GT 740 and additional 4GB of RAM) I was thinking of upgrading my CPU. But the problem now is, I'm clueless as what to do next.

My setup is:
CPU: AMD A6-6400k 3.9GHz with Radeon
GPU: Nvidia GeForce 740 2GB DDR5
MB: Asus F2A85-M
RAM: 1 Kingston 4GB (833MHz) + 1 Kingston 4GB (1600MHz) [Yea i know both are now 833]
PSU: No-name PSU with 450W Power

Now, I'll probably have to get PSU aswell since it is low if I am correct, but apart from that, what would be the best thing to do first?
Again can't thank you guys enough for the help you provided in such short notice. :)
 

c3r1c3

Member
The Power Supply should be good for what you have. All AMD APUs are weak, so even if you upgrade the CPU to the most powerful available ( AMD A10-6700 Richland Quad-Core 3.7 GHz - if you're limited to a FM2 CPU, and an AMD A10-7890K with Quad-Core - if your MB supports a FM2+ CPU) is still fairly weak.

That said those CPU upgrades would basically double your CPU power.

Moving to Intel would require a new Motherboard, and possibly ram.

http://www.anandtech.com/bench/CPU/53 Gives you some idea of what CPUs would be more powerful for encoding x264, so take a look at that and see if there's something in your price range that you can afford.
 

iiCey

New Member
Thank you again for you answer, I am aware that APU's don't give out that much of CPU power as regular CPU's that is why I intend to remove completely A6 APU with a brand new CPU. Was considering AMD FX 8350 since in my country it's currently on discount and it is veeeeery cheap, gonna look do research about that topic a bit more before making a purchase, but thank you for everything :) you really helped me today :D
 

c3r1c3

Member
The only AMD FX-chip worth upgrading to is the 8xxx or 9xxx series.

Even then they are still weak, but at least they'll double+ your current CPU power.
 
Top