Question / Help Nvenc / Twitch / Green screen

tiphergane

New Member
Hello all,

First, if I missed the answer in an other thread, I would like to apologyze.

Ok, my problem is when I want to stream with OBS and nvenc, my stream show a crappy green video

http://www.twitch.tv/tiphergane/b/532612251

My GPU is in the compat list, so normaly I must use nvenc ...

Code:
10:52:43: CLR host plugin strings not found, dynamically loading 4 strings
10:52:43: CLRHost::Initialize() attempting to load and start the .NET runtime (null)
10:52:43: CLRHost::Initialize() Found version v2.0.50727 .NET runtime
10:52:43: CLRHost::Initialize() Found version v4.0.30319 .NET runtime
10:52:43: CLRHost::Initialize() attempting to use v4.0.30319 .NET runtime
10:52:43: CLRHost::LoadInteropLibrary() load the assembly plugins\CLRHostPlugin\CLRHost.Interop.dll
10:52:43: CLRHost::LoadPlugins() attempting to load the plugin assembly CLRBrowserSourcePlugin
10:52:43: CLRHost::LoadPlugins() successfully added CLR plugin [Type: CLRBrowserSourcePlugin.CLRBrowserSourcePlugin, Name: CLR Browser Source Plugin]
10:52:45: Open Broadcaster Software v0.624b - 64bit ( ^ω^)
10:52:45: -------------------------------
10:52:45: CPU Name: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
10:52:45: CPU Speed: 3400MHz
10:52:45: Physical Memory:  16327MB Total, 8436MB Free
10:52:45: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
10:52:45: monitor 1: pos={0, 0}, size={1920, 1080}
10:52:45: monitor 2: pos={-1440, 180}, size={1440, 900}
10:52:45: Windows Version: 6.1 Build 7601 S
10:52:45: Aero is Enabled
10:52:45: -------------------------------
10:52:45: OBS Modules:
10:52:45: Base Address     Module
10:52:45: 000000003FF70000 OBS.exe
10:52:45: 00000000F0C90000 OBSApi.dll
10:52:45: 00000000F9200000 CLRHostPlugin.dll
10:52:45: 00000000F25E0000 DShowPlugin.dll
10:52:45: 00000000F25B0000 GraphicsCapture.dll
10:52:45: 00000000F1F70000 NoiseGate.dll
10:52:45: 00000000F1F40000 PSVPlugin.dll
10:52:45: ------------------------------------------
10:52:45: Adapter 1
10:52:45:   Video Adapter: NVIDIA GeForce GTX 660 
10:52:45:   Video Adapter Dedicated Video Memory: 2086469632
10:52:45:   Video Adapter Shared System Memory: 2147807232
10:52:45:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
10:52:45:   Video Adapter Output 2: pos={-1440, 180}, size={1440, 900}, attached=true
10:52:45: Using automatic low latency mode
10:52:45: =====Stream Start: 2014-05-27, 10:52:45===============================================
10:52:45:   Multithreaded optimizations: On
10:52:45:   Base resolution: 1920x1080
10:52:45:   Output resolution: 960x540
10:52:45: ------------------------------------------
10:52:45: Loading up D3D10 on NVIDIA GeForce GTX 660 (Adapter 1)...
10:52:45: ------------------------------------------
10:52:45: Audio Format: 48000 Hz
10:52:45: ------------------------------------------
10:52:45: Audio Channels: 2 Ch
10:52:45: Playback device {0.0.0.00000000}.{e6ff39db-df90-4b16-8991-065825dd8d19}
10:52:45: ------------------------------------------
10:52:45: Using desktop audio input: Line 1 (Virtual Audio Cable)
10:52:45: Global Audio time adjust: 0
10:52:45: ------------------------------------------
10:52:45: Using auxilary audio input: Microphone (Realtek High Definition Audio)
10:52:45: Mic time offset: 0
10:52:45: ------------------------------------------
10:52:45: Audio Encoding: AAC
10:52:45:     bitrate: 128
10:52:45: Using bitmap image
10:52:45: Using text output
10:52:45: Using bitmap image
10:52:45: Using text output
10:52:45: Using bitmap image
10:52:45: Using bitmap image
10:52:45: Scene buffering time set to 900
10:52:45: Successfully loaded ObsNvenc.dll
10:52:45: ObsNvenc initialized successfully
10:52:45: CUDA loaded successfully
10:52:45: 1 CUDA capable devices found
10:52:45: [ GPU #0 - < GeForce GTX 660 > has Compute SM 3.0, NVENC Available ]
10:52:45: NVENC internal init finished successfully
10:52:45: NVENC supports 8 h264 presets
10:52:45: ------------------------------------------
10:52:45: Video Encoding: NVENC
10:52:45:     fps: 60
10:52:45:     width: 852, height: 480
10:52:45:     preset: hq
10:52:45:     profile: main
10:52:45:     level: autoselect
10:52:45:     keyint: 120
10:52:45:     CBR: yes
10:52:45:     CFR: yes
10:52:45:     max bitrate: 867
10:52:45:     avg bitrate: 867
10:52:45:     buffer size: 519
10:52:45: ------------------------------------------
10:52:47: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
10:52:47:   New Scene
10:52:47: Using bitmap image
10:52:47: Using bitmap image
10:52:47: Using text output
10:52:47: Using graphics capture
10:52:47: Using bitmap image
10:52:47: Using bitmap image
10:52:47: Trying to hook process: GhostReconPhantoms.exe
10:52:48: Using RTMP service: Twitch / Justin.tv
10:52:48:   Server selection: rtmp://live-cdg.justin.tv/app
10:52:48:   Interface: Killer e2200 PCI-E Gigabit Ethernet Controller (NDIS 6.20) (ethernet, 1000 mbps)
10:52:48: Completed handshake with rtmp://live-cdg.justin.tv/app in 526 ms.
10:52:49: SO_SNDBUF was at 8192
10:52:49: SO_SNDBUF is now 65536
10:52:51: SharedTexCapture hooked
10:53:14: Total frames encoded: 825, total frames duplicated: 34 (4.12%)
10:53:14: Number of frames skipped due to encoder lag: 7 (0.85%)
10:53:14: Total frames rendered: 799, number of late frames: 8 (1.00%) (it's okay for some frames to be late)
10:53:19: RTMPPublisher::SocketLoop: Received FD_CLOSE, 5109 ms since last send (buffer: 881 / 131072)
10:53:19: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE during shutdown, 881 bytes lost, error 0
10:53:19: Average send payload: 1318 bytes, average send interval: 12 ms
10:53:19: Number of times waited to send: 0, Waited for a total of 0 bytes
10:53:19: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
10:53:19: Number of bytes sent: 2729017
10:53:19: Encoder closed
10:53:19: NVENC deinitialized
10:53:19:
10:53:19: Profiler time results:
10:53:19:
10:53:19: ==============================================================
10:53:19: video thread frame - [100%] [avg time: 2.567 ms] [children: 13.2%] [unaccounted: 86.8%]
10:53:19: | scene->Preprocess - [0.623%] [avg time: 0.016 ms]
10:53:19: | GPU download and conversion - [12.6%] [avg time: 0.324 ms] [children: 9.89%] [unaccounted: 2.73%]
10:53:19: | | flush - [7.44%] [avg time: 0.191 ms]
10:53:19: | | CopyResource - [1.36%] [avg time: 0.035 ms]
10:53:19: | | conversion to 4:2:0 - [1.09%] [avg time: 0.028 ms]
10:53:19: Convert444Threads - [100%] [avg time: 0.192 ms] [children: 97.4%] [unaccounted: 2.6%]
10:53:19: | Convert444toNV12 - [97.4%] [avg time: 0.187 ms]
10:53:19: encoder thread frame - [100%] [avg time: 1.665 ms] [children: 0.601%] [unaccounted: 99.4%]
10:53:19: | sending stuff out - [0.601%] [avg time: 0.01 ms]
10:53:19: ==============================================================
10:53:19:
10:53:19:
10:53:19: Profiler CPU results:
10:53:19:
10:53:19: ==============================================================
10:53:19: video thread frame - [cpu time: avg 0.41 ms, total 327.602 ms] [avg calls per frame: 1]
10:53:19: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
10:53:19: | GPU download and conversion - [cpu time: avg 0.117 ms, total 93.602 ms] [avg calls per frame: 1]
10:53:19: | | flush - [cpu time: avg 0.039 ms, total 31.2 ms] [avg calls per frame: 1]
10:53:19: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
10:53:19: | | conversion to 4:2:0 - [cpu time: avg 0.02 ms, total 15.6 ms] [avg calls per frame: 1]
10:53:19: Convert444Threads - [cpu time: avg 0.162 ms, total 249.601 ms] [avg calls per frame: 2]
10:53:19: | Convert444toNV12 - [cpu time: avg 0.152 ms, total 234.001 ms] [avg calls per frame: 2]
10:53:19: encoder thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
10:53:19: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
10:53:19: ==============================================================
10:53:19:
10:53:19: =====Stream End: 2014-05-27, 10:53:19=================================================
 
Last edited by a moderator:

Boildown

Active Member
Use the sticky posts in the guides forum to set up your stream. Don't use NVEnc for streaming, its only really suitable for saving to disk only, not streaming.

If you have the same problem with x264 encoding after following the guides to set up OBS, then post again with a new log file from that attempt.
 

flavored

Member
Please set buffer back to default. Please use x264 encoder, as NVENC requires a huge bitrate to output in a decent quality, thus is not suitable for online broadcasts.
Have you tried removing all the other sources except your game capture as well as not downscaling your resolution? Does the problem still persist?
 
Top