Question / Help nvidia nvenc problem

coltezeu

New Member
hello, on x264 preset everything looks fine but when i switch to nvenc no matter what settings i change bitrate/profile/video/etc it always skips and looks like this
http://www.twitch.tv/coltezeu/b/534346461
i tried reinstalling nvidia driver/ windows/ changing shit and nothing works... any ideeas?

and this is the log:

Code:
15:00:29: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
15:00:29: CUDA loaded successfully
15:00:29: 1 CUDA capable devices found
15:00:29: [ GPU #0 - < GeForce GTX 660 > has Compute SM 3.0, NVENC Available ]
15:01:34: Open Broadcaster Software v0.624b - 32bit (´・ω・`)
15:01:34: -------------------------------
15:01:34: CPU Name: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
15:01:34: CPU Speed: 3192MHz
15:01:34: Physical Memory:  4095MB Total, 4095MB Free
15:01:34: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
15:01:34: monitor 1: pos={0, 0}, size={1680, 1050}
15:01:34: Windows Version: 6.1 Build 7601 S
15:01:34: Aero is Enabled
15:01:34: -------------------------------
15:01:34: OBS Modules:
15:01:34: Base Address     Module
15:01:34: 01050000         OBS.exe
15:01:34: 6A920000         OBSApi.dll
15:01:34: 6A6D0000         DShowPlugin.dll
15:01:34: 6A6A0000         GraphicsCapture.dll
15:01:34: 6A670000         NoiseGate.dll
15:01:34: 6A650000         PSVPlugin.dll
15:01:34: ------------------------------------------
15:01:34: Adapter 1
15:01:34:   Video Adapter: NVIDIA GeForce GTX 660 
15:01:34:   Video Adapter Dedicated Video Memory: 2086469632
15:01:34:   Video Adapter Shared System Memory: 2147807232
15:01:34:   Video Adapter Output 1: pos={0, 0}, size={1680, 1050}, attached=true
15:01:34: =====Stream Start: 2014-06-01, 15:01:34===============================================
15:01:34:   Multithreaded optimizations: Off
15:01:34:   Base resolution: 1280x720
15:01:34:   Output resolution: 1280x720
15:01:34: ------------------------------------------
15:01:34: Loading up D3D10 on NVIDIA GeForce GTX 660 (Adapter 1)...
15:01:34: ------------------------------------------
15:01:34: Audio Format: 48000 Hz
15:01:34: ------------------------------------------
15:01:34: Audio Channels: 2 Ch
15:01:34: Playback device Default
15:01:34: ------------------------------------------
15:01:34: Using desktop audio input: Speakers (SB Audigy)
15:01:34: Global Audio time adjust: 0
15:01:34: ------------------------------------------
15:01:34: Using auxilary audio input: Microphone (SB Audigy)
15:01:34: Mic time offset: 0
15:01:34: ------------------------------------------
15:01:34: Audio Encoding: AAC
15:01:34:     bitrate: 128
15:01:34: Using graphics capture
15:01:34: Trying to hook process: csgo.exe
15:01:34: Scene buffering time set to 700
15:01:34: NVENC internal init finished successfully
15:01:34: NVENC supports 7 h264 presets
15:01:34: ------------------------------------------
15:01:34: Video Encoding: NVENC
15:01:34:     fps: 60
15:01:34:     width: 1280, height: 720
15:01:34:     preset: default
15:01:34:     profile: main
15:01:34:     level: autoselect
15:01:34:     keyint: 30
15:01:34:     CBR: no
15:01:34:     CFR: yes
15:01:34:     max bitrate: 2500
15:01:34:     avg bitrate: 2500
15:01:34:     buffer size: 2500
15:01:34:     quality: 5
15:01:34: ------------------------------------------
15:01:35: Using RTMP service: Twitch / Justin.tv
15:01:35:   Server selection: rtmp://live-fra.justin.tv/app
15:01:35:   Interface: rdd (type 23, 1000 mbps)
15:01:36: Completed handshake with rtmp://live-fra.justin.tv/app in 429 ms.
15:01:36: SO_SNDBUF was at 8192
15:01:36: SO_SNDBUF is now 65536
15:01:40: SharedTexCapture hooked
15:01:42: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 335872)
15:01:44: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 335872)
15:04:20: Capture window 0x000404FA invalid or changing, terminating capture
15:04:24: Total frames encoded: 10142, total frames duplicated: 40 (0.39%)
15:04:24: Number of frames skipped due to encoder lag: 1 (0.01%)
15:04:24: Total frames rendered: 10130, number of late frames: 9 (0.09%) (it's okay for some frames to be late)
15:04:24: RTMPPublisher::SocketLoop: Graceful loop exit
15:04:26: Average send payload: 5981 bytes, average send interval: 19 ms
15:04:26: Number of times waited to send: 0, Waited for a total of 0 bytes
15:04:26: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
15:04:26: Number of bytes sent: 50534260
15:04:26: Encoder closed
15:04:26: NVENC deinitialized
15:04:26:
15:04:26: Profiler time results:
15:04:26:
15:04:26: ==============================================================
15:04:26: video thread frame - [100%] [avg time: 1.078 ms] [children: 88.4%] [unaccounted: 11.6%]
15:04:26: | scene->Preprocess - [0.186%] [avg time: 0.002 ms]
15:04:26: | GPU download and conversion - [88.2%] [avg time: 0.951 ms] [children: 79.6%] [unaccounted: 8.63%]
15:04:26: | | flush - [10.9%] [avg time: 0.117 ms]
15:04:26: | | CopyResource - [0.0928%] [avg time: 0.001 ms]
15:04:26: | | conversion to 4:2:0 - [68.6%] [avg time: 0.74 ms] [children: 59.1%] [unaccounted: 9.55%]
15:04:26: | | | Convert444toNV12 - [59.1%] [avg time: 0.637 ms]
15:04:26: encoder thread frame - [100%] [avg time: 3.5 ms] [children: 0.457%] [unaccounted: 99.5%]
15:04:26: | sending stuff out - [0.457%] [avg time: 0.016 ms]
15:04:26: ==============================================================
15:04:26:
15:04:26:
15:04:26: Profiler CPU results:
15:04:26:
15:04:26: ==============================================================
15:04:26: video thread frame - [cpu time: avg 0.351 ms, total 3556.82 ms] [avg calls per frame: 1]
15:04:26: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
15:04:26: | GPU download and conversion - [cpu time: avg 0.341 ms, total 3463.22 ms] [avg calls per frame: 1]
15:04:26: | | flush - [cpu time: avg 0.06 ms, total 608.403 ms] [avg calls per frame: 1]
15:04:26: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
15:04:26: | | conversion to 4:2:0 - [cpu time: avg 0.278 ms, total 2808.02 ms] [avg calls per frame: 1]
15:04:26: | | | Convert444toNV12 - [cpu time: avg 0.261 ms, total 2636.42 ms] [avg calls per frame: 1]
15:04:26: encoder thread frame - [cpu time: avg 0.135 ms, total 1372.81 ms] [avg calls per frame: 1]
15:04:26: | sending stuff out - [cpu time: avg 0.012 ms, total 124.801 ms] [avg calls per frame: 1]
15:04:26: ==============================================================
15:04:26:
15:04:26: =====Stream End: 2014-06-01, 15:04:26=================================================
 
Last edited by a moderator:

BtbN

Member
You have to use CBR for streaming. Also, your keyint is extremely low, Twitch recommends 2 seconds, not 0.5 seconds.
 

coltezeu

New Member
this with the setting you told me to use , it is bit better but still fucked up
http://www.twitch.tv/coltezeu/b/534353926
and the log
Code:
15:43:15: =====Stream Start: 2014-06-01, 15:43:15===============================================
15:43:15:   Multithreaded optimizations: Off
15:43:15:   Base resolution: 1280x720
15:43:15:   Output resolution: 1280x720
15:43:15: ------------------------------------------
15:43:15: Loading up D3D10 on NVIDIA GeForce GTX 660 (Adapter 1)...
15:43:15: ------------------------------------------
15:43:15: Audio Format: 48000 Hz
15:43:15: ------------------------------------------
15:43:15: Audio Channels: 2 Ch
15:43:15: Playback device Default
15:43:15: ------------------------------------------
15:43:15: Using desktop audio input: Speakers (SB Audigy)
15:43:15: Global Audio time adjust: 0
15:43:15: ------------------------------------------
15:43:15: Using auxilary audio input: Microphone (SB Audigy)
15:43:15: Mic time offset: 0
15:43:15: ------------------------------------------
15:43:15: Audio Encoding: AAC
15:43:15:     bitrate: 128
15:43:15: Using graphics capture
15:43:15: Trying to hook process: csgo.exe
15:43:15: Scene buffering time set to 700
15:43:15: NVENC internal init finished successfully
15:43:15: NVENC supports 7 h264 presets
15:43:15: ------------------------------------------
15:43:15: Video Encoding: NVENC
15:43:15:     fps: 60
15:43:15:     width: 1280, height: 720
15:43:15:     preset: default
15:43:15:     profile: high
15:43:15:     level: autoselect
15:43:15:     keyint: 120
15:43:15:     CBR: yes
15:43:15:     CFR: yes
15:43:15:     max bitrate: 2500
15:43:15:     avg bitrate: 2500
15:43:15:     buffer size: 2500
15:43:15: ------------------------------------------
15:43:17: Using RTMP service: Twitch / Justin.tv
15:43:17:   Server selection: rtmp://live-fra.justin.tv/app
15:43:17:   Interface: rdd (type 23, 1000 mbps)
15:43:17: Completed handshake with rtmp://live-fra.justin.tv/app in 419 ms.
15:43:18: SO_SNDBUF was at 8192
15:43:18: SO_SNDBUF is now 65536
15:43:19: SharedTexCapture hooked
15:43:20: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 335872)
15:43:21: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 335872)
15:46:08: Total frames encoded: 10347, total frames duplicated: 25 (0.24%)
15:46:08: Total frames rendered: 10341, number of late frames: 6 (0.06%) (it's okay for some frames to be late)
15:46:09: RTMPPublisher::SocketLoop: Graceful loop exit
15:46:09: Average send payload: 6349 bytes, average send interval: 19 ms
15:46:09: Number of times waited to send: 0, Waited for a total of 0 bytes
15:46:09: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
15:46:09: Number of bytes sent: 55345773
15:46:09: Encoder closed
15:46:09: NVENC deinitialized
15:46:09:
15:46:09: Profiler time results:
15:46:09:
15:46:09: ==============================================================
15:46:09: video thread frame - [100%] [avg time: 0.769 ms] [children: 88.7%] [unaccounted: 11.3%]
15:46:09: | scene->Preprocess - [0.13%] [avg time: 0.001 ms]
15:46:09: | GPU download and conversion - [88.6%] [avg time: 0.681 ms] [children: 79.3%] [unaccounted: 9.23%]
15:46:09: | | flush - [10.8%] [avg time: 0.083 ms]
15:46:09: | | CopyResource - [0.13%] [avg time: 0.001 ms]
15:46:09: | | conversion to 4:2:0 - [68.4%] [avg time: 0.526 ms] [children: 63.6%] [unaccounted: 4.81%]
15:46:09: | | | Convert444toNV12 - [63.6%] [avg time: 0.489 ms]
15:46:09: encoder thread frame - [100%] [avg time: 3.981 ms] [children: 0.301%] [unaccounted: 99.7%]
15:46:09: | sending stuff out - [0.301%] [avg time: 0.012 ms]
15:46:09: ==============================================================
15:46:09:
15:46:09:
15:46:09: Profiler CPU results:
15:46:09:
15:46:09: ==============================================================
15:46:09: video thread frame - [cpu time: avg 0.126 ms, total 1310.41 ms] [avg calls per frame: 1]
15:46:09: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
15:46:09: | GPU download and conversion - [cpu time: avg 0.125 ms, total 1294.81 ms] [avg calls per frame: 1]
15:46:09: | | flush - [cpu time: avg 0.037 ms, total 390.001 ms] [avg calls per frame: 1]
15:46:09: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
15:46:09: | | conversion to 4:2:0 - [cpu time: avg 0.087 ms, total 904.807 ms] [avg calls per frame: 1]
15:46:09: | | | Convert444toNV12 - [cpu time: avg 0.077 ms, total 795.607 ms] [avg calls per frame: 1]
15:46:09: encoder thread frame - [cpu time: avg 0.049 ms, total 514.803 ms] [avg calls per frame: 1]
15:46:09: | sending stuff out - [cpu time: avg 0.006 ms, total 62.4 ms] [avg calls per frame: 1]
15:46:09: ==============================================================
15:46:09:
15:46:09: =====Stream End: 2014-06-01, 15:46:09=================================================
 
Last edited by a moderator:

flavored

Member
Hello,

you need to use CBR for streaming, but that is not the issue here.
Can you monitor your GPU usage during the stream (recording)? What does it show?
You seem to have two separate issues here: a) this is nvenc, it's not meant for low bitrates. 2.5k bitrate WILL look bad on nvenc, no exceptions. b) you're experiencing "skips" and "tearing". Contrary to the popular belief, nvenc does need SOME free gpu resources, if your gpu usage is at 99% without nvenc, there is a pretty possibility of what you're experiencing happening (had experience). What I found to help me is starting the stream BEFORE you launch the game, then enconding on the demanding games seems to be fine. Let me know if anything helps.
 

coltezeu

New Member
tried what you suggested and its still the same
http://www.twitch.tv/coltezeu/b/534449330
how do i monitor my gpu usage?
log:
2:00:17: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
22:00:17: CUDA loaded successfully
22:00:18: 1 CUDA capable devices found
22:00:18: [ GPU #0 - < GeForce GTX 660 > has Compute SM 3.0, NVENC Available ]
22:01:11: Open Broadcaster Software v0.624b - 32bit (´・ω・`)
22:01:11: -------------------------------
22:01:11: CPU Name: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
22:01:11: CPU Speed: 3192MHz
22:01:11: Physical Memory: 4095MB Total, 4095MB Free
22:01:11: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
22:01:11: monitor 1: pos={0, 0}, size={1680, 1050}
22:01:11: Windows Version: 6.1 Build 7601 S
22:01:11: Aero is Enabled
22:01:11: -------------------------------
22:01:11: OBS Modules:
22:01:11: Base Address Module
22:01:11: 010B0000 OBS.exe
22:01:11: 6C450000 OBSApi.dll
22:01:11: 6FCA0000 DShowPlugin.dll
22:01:11: 6CBD0000 GraphicsCapture.dll
22:01:11: 6CBA0000 NoiseGate.dll
22:01:11: 6C430000 PSVPlugin.dll
22:01:11: ------------------------------------------
22:01:11: Adapter 1
22:01:11: Video Adapter: NVIDIA GeForce GTX 660
22:01:11: Video Adapter Dedicated Video Memory: 2086469632
22:01:11: Video Adapter Shared System Memory: 2147807232
22:01:11: Video Adapter Output 1: pos={0, 0}, size={1680, 1050}, attached=true
22:01:11: =====Stream Start: 2014-06-01, 22:01:11===============================================
22:01:11: Multithreaded optimizations: Off
22:01:11: Base resolution: 1280x720
22:01:11: Output resolution: 1280x720
22:01:11: ------------------------------------------
22:01:11: Loading up D3D10 on NVIDIA GeForce GTX 660 (Adapter 1)...
22:01:11: ------------------------------------------
22:01:11: Audio Format: 48000 Hz
22:01:11: ------------------------------------------
22:01:11: Audio Channels: 2 Ch
22:01:11: Playback device Default
22:01:11: ------------------------------------------
22:01:11: Using desktop audio input: Speakers (SB Audigy)
22:01:11: Global Audio time adjust: 0
22:01:11: ------------------------------------------
22:01:11: Using auxilary audio input: Microphone (SB Audigy)
22:01:11: Mic time offset: 0
22:01:11: ------------------------------------------
22:01:11: Audio Encoding: AAC
22:01:11: bitrate: 128
22:01:11: Using graphics capture
22:01:11: Scene buffering time set to 700
22:01:11: NVENC internal init finished successfully
22:01:11: NVENC supports 7 h264 presets
22:01:11: ------------------------------------------
22:01:11: Video Encoding: NVENC
22:01:11: fps: 60
22:01:11: width: 1280, height: 720
22:01:11: preset: default
22:01:11: profile: high
22:01:11: level: autoselect
22:01:11: keyint: 120
22:01:11: CBR: yes
22:01:11: CFR: yes
22:01:11: max bitrate: 4500
22:01:11: avg bitrate: 4500
22:01:11: buffer size: 4500
22:01:11: ------------------------------------------
22:01:13: Using RTMP service: Twitch / Justin.tv
22:01:13: Server selection: rtmp://live-fra.justin.tv/app
22:01:13: Interface: rdd (type 23, 1000 mbps)
22:01:13: Completed handshake with rtmp://live-fra.justin.tv/app in 429 ms.
22:01:14: SO_SNDBUF was at 8192
22:01:14: SO_SNDBUF is now 65536
22:01:17: Trying to hook process: csgo.exe
22:01:18: SharedTexCapture hooked
22:01:21: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 591872)
22:01:22: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 591872)
22:01:23: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 591872)
22:01:29: GraphicsCaptureSource::NewCapture: eliminating old capture
22:01:29: SharedTexCapture hooked
22:04:29: Capture window 0x001F0444 invalid or changing, terminating capture
22:04:33: Total frames encoded: 12039, total frames duplicated: 73 (0.61%)
22:04:33: Total frames rendered: 12006, number of late frames: 13 (0.11%) (it's okay for some frames to be late)
22:04:33: RTMPPublisher::SocketLoop: Graceful loop exit
22:04:33: Average send payload: 9226 bytes, average send interval: 17 ms
22:04:33: Number of times waited to send: 0, Waited for a total of 0 bytes
22:04:33: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:04:33: Number of bytes sent: 104404012
22:04:33: Encoder closed
22:04:33: NVENC deinitialized
22:04:33:
22:04:33: Profiler time results:
22:04:33:
22:04:33: ==============================================================
22:04:33: video thread frame - [100%] [avg time: 0.825 ms] [children: 85.6%] [unaccounted: 14.4%]
22:04:33: | scene->Preprocess - [0.121%] [avg time: 0.001 ms]
22:04:33: | GPU download and conversion - [85.5%] [avg time: 0.705 ms] [children: 76.1%] [unaccounted: 9.33%]
22:04:33: | | flush - [9.94%] [avg time: 0.082 ms]
22:04:33: | | CopyResource - [0.121%] [avg time: 0.001 ms]
22:04:33: | | conversion to 4:2:0 - [66.1%] [avg time: 0.545 ms] [children: 59.8%] [unaccounted: 6.3%]
22:04:33: | | | Convert444toNV12 - [59.8%] [avg time: 0.493 ms]
22:04:33: encoder thread frame - [100%] [avg time: 4.005 ms] [children: 0.35%] [unaccounted: 99.7%]
22:04:33: | sending stuff out - [0.35%] [avg time: 0.014 ms]
22:04:33: ==============================================================
22:04:33:
22:04:33:
22:04:33: Profiler CPU results:
22:04:33:
22:04:33: ==============================================================
22:04:33: video thread frame - [cpu time: avg 0.102 ms, total 1232.41 ms] [avg calls per frame: 1]
22:04:33: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:04:33: | GPU download and conversion - [cpu time: avg 0.097 ms, total 1170.01 ms] [avg calls per frame: 1]
22:04:33: | | flush - [cpu time: avg 0.022 ms, total 265.201 ms] [avg calls per frame: 1]
22:04:33: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:04:33: | | conversion to 4:2:0 - [cpu time: avg 0.074 ms, total 889.206 ms] [avg calls per frame: 1]
22:04:33: | | | Convert444toNV12 - [cpu time: avg 0.069 ms, total 826.806 ms] [avg calls per frame: 1]
22:04:33: encoder thread frame - [cpu time: avg 0.13 ms, total 1560.01 ms] [avg calls per frame: 1]
22:04:33: | sending stuff out - [cpu time: avg 0.011 ms, total 140.4 ms] [avg calls per frame: 1]
22:04:33: ==============================================================
22:04:33:
22:04:33: =====Stream End: 2014-06-01, 22:04:33=================================================
 

coltezeu

New Member
i enabled multi threaded on cpu and set it to normal and it apparently works fine till birate 2000
http://www.twitch.tv/coltezeu/b/534458599

but anything over 2000 looks like this
http://www.twitch.tv/coltezeu/b/534459475

log from 2nd video
==
22:34:40: 1 CUDA capable devices found
22:34:40: [ GPU #0 - < GeForce GTX 660 > has Compute SM 3.0, NVENC Available ]
22:34:46: =====Stream Start: 2014-06-01, 22:34:46===============================================
22:34:46: Multithreaded optimizations: On
22:34:46: Base resolution: 1280x720
22:34:46: Output resolution: 1280x720
22:34:46: ------------------------------------------
22:34:46: Loading up D3D10 on NVIDIA GeForce GTX 660 (Adapter 1)...
22:34:46: ------------------------------------------
22:34:46: Audio Format: 48000 Hz
22:34:46: ------------------------------------------
22:34:46: Audio Channels: 2 Ch
22:34:46: Playback device Default
22:34:46: ------------------------------------------
22:34:46: Using desktop audio input: Speakers (SB Audigy)
22:34:46: Global Audio time adjust: 0
22:34:46: ------------------------------------------
22:34:46: Using auxilary audio input: Microphone (SB Audigy)
22:34:46: Mic time offset: 0
22:34:46: ------------------------------------------
22:34:46: Audio Encoding: AAC
22:34:46: bitrate: 128
22:34:46: Using graphics capture
22:34:46: Trying to hook process: csgo.exe
22:34:46: Scene buffering time set to 700
22:34:46: NVENC internal init finished successfully
22:34:46: NVENC supports 7 h264 presets
22:34:46: ------------------------------------------
22:34:46: Video Encoding: NVENC
22:34:46: fps: 60
22:34:46: width: 1280, height: 720
22:34:46: preset: default
22:34:46: profile: high
22:34:46: level: autoselect
22:34:46: keyint: 120
22:34:46: CBR: yes
22:34:46: CFR: yes
22:34:46: max bitrate: 4500
22:34:46: avg bitrate: 4500
22:34:46: buffer size: 4500
22:34:46: ------------------------------------------
22:34:47: Using RTMP service: Twitch / Justin.tv
22:34:47: Server selection: rtmp://live-fra.justin.tv/app
22:34:47: Interface: rdd (type 23, 1000 mbps)
Warning -- SharedTexCapture::Init: Could not open file mapping: 2
22:34:48: Completed handshake with rtmp://live-fra.justin.tv/app in 726 ms.
22:34:49: SO_SNDBUF was at 8192
22:34:49: SO_SNDBUF is now 65536
22:34:50: SharedTexCapture hooked
22:34:51: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 62944 / 591872)
22:34:56: RTMPPublisher::SocketLoop: Stalled for 2169 ms to write 589162 bytes (buffer: 0 / 591872), unstable connection?
22:34:58: RTMPPublisher::SocketLoop: Stalled for 1986 ms to write 588514 bytes (buffer: 0 / 591872), unstable connection?
22:35:01: RTMPPublisher::SocketLoop: Stalled for 2627 ms to write 588653 bytes (buffer: 0 / 591872), unstable connection?
22:35:04: RTMPPublisher::SocketLoop: Stalled for 2120 ms to write 591309 bytes (buffer: 0 / 591872), unstable connection?
22:35:09: RTMPPublisher::SocketLoop: Stalled for 1530 ms to write 591030 bytes (buffer: 0 / 591872), unstable connection?
22:35:11: RTMPPublisher::SocketLoop: Stalled for 1683 ms to write 591173 bytes (buffer: 0 / 591872), unstable connection?
22:35:13: RTMPPublisher::SocketLoop: Stalled for 1749 ms to write 588665 bytes (buffer: 0 / 591872), unstable connection?
22:35:21: RTMPPublisher::SocketLoop: Stalled for 2820 ms to write 590916 bytes (buffer: 0 / 591872), unstable connection?
22:35:32: RTMPPublisher::SocketLoop: Stalled for 4034 ms to write 590165 bytes (buffer: 0 / 591872), unstable connection?
22:35:36: RTMPPublisher::SocketLoop: Stalled for 2128 ms to write 587960 bytes (buffer: 0 / 591872), unstable connection?
22:35:40: RTMPPublisher::SocketLoop: Stalled for 1922 ms to write 589045 bytes (buffer: 0 / 591872), unstable connection?
22:35:43: RTMPPublisher::SocketLoop: Stalled for 1877 ms to write 587916 bytes (buffer: 0 / 591872), unstable connection?
22:35:49: RTMPPublisher::SocketLoop: Stalled for 1619 ms to write 588922 bytes (buffer: 0 / 591872), unstable connection?
22:35:52: RTMPPublisher::SocketLoop: Stalled for 2285 ms to write 589533 bytes (buffer: 0 / 591872), unstable connection?
22:36:01: RTMPPublisher::SocketLoop: Stalled for 1528 ms to write 591672 bytes (buffer: 0 / 591872), unstable connection?
22:36:02: RTMPPublisher::SocketLoop: Stalled for 1671 ms to write 588265 bytes (buffer: 0 / 591872), unstable connection?
22:36:06: RTMPPublisher::SocketLoop: Stalled for 3565 ms to write 589243 bytes (buffer: 0 / 591872), unstable connection?
22:36:08: RTMPPublisher::SocketLoop: Stalled for 1761 ms to write 590164 bytes (buffer: 0 / 591872), unstable connection?
22:36:13: RTMPPublisher::SocketLoop: Stalled for 4391 ms to write 589275 bytes (buffer: 0 / 591872), unstable connection?
22:36:15: RTMPPublisher::SocketLoop: Stalled for 2180 ms to write 590862 bytes (buffer: 0 / 591872), unstable connection?
22:36:18: RTMPPublisher::SocketLoop: Stalled for 2205 ms to write 591772 bytes (buffer: 0 / 591872), unstable connection?
22:36:23: RTMPPublisher::SocketLoop: Stalled for 1711 ms to write 588078 bytes (buffer: 0 / 591872), unstable connection?
22:36:25: RTMPPublisher::SocketLoop: Stalled for 1564 ms to write 589625 bytes (buffer: 0 / 591872), unstable connection?
22:36:29: Capture window 0x000B0520 invalid or changing, terminating capture
22:36:29: RTMPPublisher::SocketLoop: Stalled for 4766 ms to write 589238 bytes (buffer: 0 / 591872), unstable connection?
22:36:32: Total frames encoded: 6307, total frames duplicated: 24 (0.38%)
22:36:32: Total frames rendered: 6301, number of late frames: 6 (0.10%) (it's okay for some frames to be late)
22:36:32: RTMPPublisher::SocketLoop: Stalled for 1735 ms to write 590159 bytes (buffer: 0 / 591872), unstable connection?
22:36:38: RTMPPublisher::SocketLoop: Stalled for 1736 ms to write 588256 bytes (buffer: 0 / 591872), unstable connection?
22:36:40: RTMPPublisher::SocketLoop: Stalled for 2282 ms to write 588338 bytes (buffer: 0 / 591872), unstable connection?
22:36:42: RTMPPublisher::SocketLoop: Stalled for 1742 ms to write 590051 bytes (buffer: 0 / 591872), unstable connection?
22:36:49: RTMPPublisher::SocketLoop: Stalled for 1956 ms to write 588966 bytes (buffer: 0 / 591872), unstable connection?
22:36:50: RTMPPublisher::SocketLoop: Stalled for 1869 ms to write 591018 bytes (buffer: 0 / 591872), unstable connection?
22:36:54: RTMPPublisher::SocketLoop: Stalled for 3206 ms to write 590798 bytes (buffer: 0 / 591872), unstable connection?
22:36:57: RTMPPublisher::SocketLoop: Stalled for 2348 ms to write 590879 bytes (buffer: 0 / 591872), unstable connection?
22:37:04: RTMPPublisher::SocketLoop: Stalled for 5288 ms to write 589771 bytes (buffer: 0 / 591872), unstable connection?
22:37:07: RTMPPublisher::SocketLoop: Stalled for 1577 ms to write 589708 bytes (buffer: 0 / 591872), unstable connection?
22:37:09: RTMPPublisher::SocketLoop: Stalled for 1931 ms to write 591731 bytes (buffer: 0 / 591872), unstable connection?
22:37:11: RTMPPublisher::SocketLoop: Graceful loop exit
22:37:13: Average send payload: 284220 bytes, average send interval: 704 ms
22:37:13: Number of times waited to send: 97, Waited for a total of 365463 bytes
22:37:13: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:37:13: Number of bytes sent: 57128230
22:37:13: Encoder closed
22:37:13: NVENC deinitialized
22:37:13:
22:37:13: Profiler time results:
22:37:13:
22:37:13: ==============================================================
22:37:13: video thread frame - [100%] [avg time: 0.505 ms] [children: 79.2%] [unaccounted: 20.8%]
22:37:13: | scene->Preprocess - [0.198%] [avg time: 0.001 ms]
22:37:13: | GPU download and conversion - [79%] [avg time: 0.399 ms] [children: 66.5%] [unaccounted: 12.5%]
22:37:13: | | flush - [45.9%] [avg time: 0.232 ms]
22:37:13: | | CopyResource - [16.4%] [avg time: 0.083 ms]
22:37:13: | | conversion to 4:2:0 - [4.16%] [avg time: 0.021 ms]
22:37:13: Convert444Threads - [100%] [avg time: 0.447 ms] [children: 98.4%] [unaccounted: 1.57%]
22:37:13: | Convert444toNV12 - [98.4%] [avg time: 0.44 ms]
22:37:13: encoder thread frame - [100%] [avg time: 4.143 ms] [children: 0.628%] [unaccounted: 99.4%]
22:37:13: | sending stuff out - [0.628%] [avg time: 0.026 ms]
22:37:13: ==============================================================
22:37:13:
22:37:13:
22:37:13: Profiler CPU results:
22:37:13:
22:37:13: ==============================================================
22:37:13: video thread frame - [cpu time: avg 0.054 ms, total 343.202 ms] [avg calls per frame: 1]
22:37:13: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:37:13: | GPU download and conversion - [cpu time: avg 0.047 ms, total 296.402 ms] [avg calls per frame: 1]
22:37:13: | | flush - [cpu time: avg 0.027 ms, total 171.602 ms] [avg calls per frame: 1]
22:37:13: | | CopyResource - [cpu time: avg 0.012 ms, total 78 ms] [avg calls per frame: 1]
22:37:13: | | conversion to 4:2:0 - [cpu time: avg 0.004 ms, total 31.2 ms] [avg calls per frame: 1]
22:37:13: Convert444Threads - [cpu time: avg 0.23 ms, total 2886.02 ms] [avg calls per frame: 2]
22:37:13: | Convert444toNV12 - [cpu time: avg 0.227 ms, total 2839.22 ms] [avg calls per frame: 2]
22:37:13: encoder thread frame - [cpu time: avg 0.174 ms, total 1092.01 ms] [avg calls per frame: 1]
22:37:13: | sending stuff out - [cpu time: avg 0.022 ms, total 140.401 ms] [avg calls per frame: 1]
22:37:13: ==============================================================
22:37:13:
22:37:13: =====Stream End: 2014-06-01, 22:37:13=================================================
 

coltezeu

New Member
this is with multithreads on + priority realtime on cpu on obs settings with 3.9k bitrate
http://www.twitch.tv/coltezeu/b/534469751
i have no ideea wtf is wrong with this shit
log

23:08:01: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
23:08:01: 1 CUDA capable devices found
23:08:01: [ GPU #0 - < GeForce GTX 660 > has Compute SM 3.0, NVENC Available ]
23:08:19: =====Stream Start: 2014-06-01, 23:08:19===============================================
23:08:19: Multithreaded optimizations: On
23:08:19: Base resolution: 1280x720
23:08:19: Output resolution: 1280x720
23:08:19: ------------------------------------------
23:08:19: Loading up D3D10 on NVIDIA GeForce GTX 660 (Adapter 1)...
23:08:19: ------------------------------------------
23:08:19: Audio Format: 48000 Hz
23:08:19: ------------------------------------------
23:08:19: Audio Channels: 2 Ch
23:08:19: Playback device Default
23:08:19: ------------------------------------------
23:08:19: Using desktop audio input: Speakers (SB Audigy)
23:08:19: Global Audio time adjust: 0
23:08:19: ------------------------------------------
23:08:19: Using auxilary audio input: Microphone (SB Audigy)
23:08:19: Mic time offset: 0
23:08:19: ------------------------------------------
23:08:19: Audio Encoding: AAC
23:08:19: bitrate: 128
23:08:19: Using graphics capture
23:08:19: Scene buffering time set to 700
23:08:19: NVENC internal init finished successfully
23:08:19: NVENC supports 7 h264 presets
23:08:19: ------------------------------------------
23:08:19: Video Encoding: NVENC
23:08:19: fps: 60
23:08:19: width: 1280, height: 720
23:08:19: preset: default
23:08:19: profile: high
23:08:19: level: autoselect
23:08:19: keyint: 120
23:08:19: CBR: yes
23:08:19: CFR: yes
23:08:19: max bitrate: 3900
23:08:19: avg bitrate: 3900
23:08:19: buffer size: 3900
23:08:19: ------------------------------------------
23:08:21: Using RTMP service: Twitch / Justin.tv
23:08:21: Server selection: rtmp://live-fra.justin.tv/app
23:08:21: Interface: rdd (type 23, 1000 mbps)
23:08:21: Completed handshake with rtmp://live-fra.justin.tv/app in 513 ms.
23:08:22: SO_SNDBUF was at 8192
23:08:22: SO_SNDBUF is now 65536
23:08:25: Trying to hook process: csgo.exe
23:08:26: SharedTexCapture hooked
23:08:27: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 515072)
23:08:28: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 515072)
23:08:36: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 515072)
23:10:13: Capture window 0x00040486 invalid or changing, terminating capture
23:10:16: Total frames encoded: 6969, total frames duplicated: 23 (0.33%)
23:10:16: Total frames rendered: 6964, number of late frames: 5 (0.07%) (it's okay for some frames to be late)
23:10:16: RTMPPublisher::SocketLoop: Graceful loop exit
23:10:17: Average send payload: 7345 bytes, average send interval: 15 ms
23:10:17: Number of times waited to send: 0, Waited for a total of 0 bytes
23:10:17: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:10:17: Number of bytes sent: 53229113
23:10:17: Encoder closed
23:10:17: NVENC deinitialized
23:10:17:
23:10:17: Profiler time results:
23:10:17:
23:10:17: ==============================================================
23:10:17: video thread frame - [100%] [avg time: 0.331 ms] [children: 79.8%] [unaccounted: 20.2%]
23:10:17: | scene->Preprocess - [0.302%] [avg time: 0.001 ms]
23:10:17: | GPU download and conversion - [79.5%] [avg time: 0.263 ms] [children: 65.6%] [unaccounted: 13.9%]
23:10:17: | | flush - [55.6%] [avg time: 0.184 ms]
23:10:17: | | CopyResource - [3.93%] [avg time: 0.013 ms]
23:10:17: | | conversion to 4:2:0 - [6.04%] [avg time: 0.02 ms]
23:10:17: Convert444Threads - [100%] [avg time: 0.385 ms] [children: 98.7%] [unaccounted: 1.3%]
23:10:17: | Convert444toNV12 - [98.7%] [avg time: 0.38 ms]
23:10:17: encoder thread frame - [100%] [avg time: 3.908 ms] [children: 0.333%] [unaccounted: 99.7%]
23:10:17: | sending stuff out - [0.333%] [avg time: 0.013 ms]
23:10:17: ==============================================================
23:10:17:
23:10:17:
23:10:17: Profiler CPU results:
23:10:17:
23:10:17: ==============================================================
23:10:17: video thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:10:17: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:10:17: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:10:17: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:10:17: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:10:17: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:10:17: Convert444Threads - [cpu time: avg 0.014 ms, total 202.8 ms] [avg calls per frame: 2]
23:10:17: | Convert444toNV12 - [cpu time: avg 0.014 ms, total 202.8 ms] [avg calls per frame: 2]
23:10:17: encoder thread frame - [cpu time: avg 0.069 ms, total 483.603 ms] [avg calls per frame: 1]
23:10:17: | sending stuff out - [cpu time: avg 0.006 ms, total 46.8 ms] [avg calls per frame: 1]
23:10:17: ==============================================================
23:10:17:
23:10:17: =====Stream End: 2014-06-01, 23:10:17=================================================
23:13:40: 1 CUDA capable devices found
23:13:40: [ GPU #0 - < GeForce GTX 660 > has Compute SM 3.0, NVENC Available ]
 

flavored

Member
Just as it says:

"22:35:09: RTMPPublisher::SocketLoop: Stalled for 1530 ms to write 591030 bytes (buffer: 0 / 591872), unstable connection?"
 

rakunvar

Member
Biggest thing Is your X264 CPU preset set to Slower? Make sure its set to Veryfast.

In almost every situation you'll want to keep Multithread opt. On, This will use multiple threads for color space conversion, maximizing benefit from multi-core CPUs. There's almost no need to ever turn this off. Not to mention It'll help with Hyperthreading if your CPU supports it. You most certainly don't need 200FPS in any sense really, I have 1440p Monitors overclocked to 120hz and I know how much 120fps in games looks so much better lol, but if your over either 60-120FPS your fine.

NVENC is abit goofy honestly, and still being worked on for actual streaming use. Instead of your CPU taking the encoding load your using your GPU, so it will put more pressure on it. You are pushing max I'm guessing graphics into CSGO, then also pushing the card to stream 60fps/720p, so you may want to try 30fps and see, the card isn't a huge powerhouse of course.

You dont NEED CBR, you can stream without it, I even do it, but twitch's new recommended settings etc want you to. Make sure your Key int is set to 2.

Try to keep your Bitrate around a max of 3500-4000.

Try out the idea's here as well https://obsproject.com/forum/threads/dropped-frames-disconnecting-lag-read-this-first.8870/ MAKE SURE YOUR NOT USING WIRELESS TO STREAM.



The Analyzer mentions these items as well.
Slower preset in use

You have changed the default preset to default. Using slower presets can result in late frames and high CPU usage / low FPS. You should only change the preset if you are sure you have the CPU power to spare.

Possible slow server

The server you are streaming to (rtmp://live-fra.justin.tv/app) took 513 ms to connect. This may mean your connection or the server is slow, or the server is far away from you. If you are using twitch.tv, you may want to try using JTVPing to find an optimal server.

Connection stalls detected

Your connection is stalling while sending data. This can result in frame drops, stream freezes and disconnects. Try changing the server you are streaming to, or lowering your bitrate

Excessive bitrate

Your bitrate is very high. For live streaming, your viewers must also be able to download at the bitrate you specified. Setting too high of a bitrate will cause your viewers to experience lag and your stream may also drop frames if the streaming service you use does not support such high bitrates.
 

coltezeu

New Member
it appears that is some trouble with my connection , its loosing upload packets but i still dont understand why im able to stream @ 4-5k bitrate with x264 and no more than 2k birate with nvenc but whatever..
 
Last edited:

Boildown

Active Member
Twitch doesn't like people to stream at higher than 3500 bitrate, so they could be limiting your rtmp stream at the ingest, causing your unstable connection errors. Reduce your bitrate to 3500, at the most.

You should be using High Performance for your NVEnc preset if you're having performance issues with it.

Even at 3500 bitrate, NVEnc is going to look pretty bad. Consider using x264 if you want to increase the quality. This will have more of a CPU impact, of course. There's also Quicksync, but for your CPU, its probably no better than NVEnc.
 
Top