Question / Help stream lag

melancholyx3

New Member
For some reason, my vod shows some lag in between (it's just a little). It doens't look smooth like when I am playnig it. I have no clue what is causing this. My down/up is 19mbps/2.5mbps (on test.net). I've played with many settings trying to fix it but I have no clue which setting is incorrect. Here is the log and the vod:

http://www.twitch.tv/melancholyx3/b/424192961

Code:
23:49:11: Open Broadcaster Software v0.522b - 32bit (´・ω・`)
23:49:11: -------------------------------
23:49:11: CPU Name: AMD FX(tm)-4100 Quad-Core Processor
23:49:11: CPU Speed: 4017MHz
23:49:11: Physical Memory:  4093MB Total, 1248MB Free
23:49:11: stepping id: 2, model 1, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 4, total cores 2
23:49:11: monitor 1: pos={0, 0}, size={1920, 1080}
23:49:11: Windows Version: 6.1 Build 7601 S
23:49:11: Aero is Disabled
23:49:11: -------------------------------
23:49:11: OBS Modules:
23:49:11: Base Address     Module
23:49:11: 013B0000         OBS.exe
23:49:11: 61530000         OBSApi.dll
23:49:11: 71EB0000         DShowPlugin.dll
23:49:11: 74E70000         GraphicsCapture.dll
23:49:11: 75250000         NoiseGate.dll
23:49:11: 74D30000         scenesw.dll
23:49:11: ------------------------------------------
23:49:11: Adapter 1
23:49:11:   Video Adapter: AMD Radeon HD 7700 Series
23:49:11:   Video Adapter Dedicated Video Memory: 1058213888
23:49:11:   Video Adapter Shared System Memory: 1877766144
23:49:11: =====Stream Start: 2013-06-30, 23:49:11===============================================
23:49:11:   Multithreaded optimizations: On
23:49:11:   Base resolution: 1920x1080
23:49:11:   Output resolution: 1920x1080
23:49:11: ------------------------------------------
23:49:11: Loading up D3D10...
23:49:11: Playback device Default
23:49:11: ------------------------------------------
23:49:11: Using desktop audio input: Speakers (Realtek High Definition Audio)
23:49:11: ------------------------------------------
23:49:11: Using auxilary audio input: Microphone (Realtek High Definition Audio)
23:49:11: ------------------------------------------
23:49:11: Audio Encoding: AAC
23:49:11:     bitrate: 128
23:49:11: Using graphics capture
23:49:11: ------------------------------------------
23:49:11: Video Encoding: x264
23:49:11:     fps: 30
23:49:11:     width: 1920, height: 1080
23:49:11:     preset: veryfast
23:49:11:     CBR: no
23:49:11:     CFR: no
23:49:11:     max bitrate: 2000
23:49:11:     buffer size: 2000
23:49:11:     quality: 6
23:49:11: ------------------------------------------
23:49:11: SharedTexCapture hooked
23:49:19: Total frames rendered: 225, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
23:49:19: =====Stream End: 2013-06-30, 23:49:19=================================================
23:49:19: =====Stream Start: 2013-06-30, 23:49:19===============================================
23:49:19:   Multithreaded optimizations: On
23:49:19:   Base resolution: 1920x1080
23:49:19:   Output resolution: 1920x1080
23:49:19: ------------------------------------------
23:49:19: Loading up D3D10...
23:49:19: Playback device Default
23:49:19: ------------------------------------------
23:49:19: Using desktop audio input: Speakers (Realtek High Definition Audio)
23:49:19: ------------------------------------------
23:49:19: Using auxilary audio input: Microphone (Realtek High Definition Audio)
23:49:19: ------------------------------------------
23:49:19: Audio Encoding: AAC
23:49:19:     bitrate: 128
23:49:19: Using graphics capture
23:49:19: ------------------------------------------
23:49:19: Video Encoding: x264
23:49:19:     fps: 30
23:49:19:     width: 1920, height: 1080
23:49:19:     preset: veryfast
23:49:19:     CBR: no
23:49:19:     CFR: no
23:49:19:     max bitrate: 2000
23:49:19:     buffer size: 2000
23:49:19:     quality: 6
23:49:19: ------------------------------------------
23:49:19: SharedTexCapture hooked
23:49:21: Using RTMP service: Twitch / Justin.tv
23:49:21:   Server selection: rtmp://live-iad-backup.justin.tv/app
23:49:22: SO_SNDBUF was at 8192
23:49:22: SO_SNDBUF is now 65536
23:49:46: Total frames rendered: 805, number of frames that lagged: 7 (0.87%) (it's okay for some frames to lag)
23:49:46: RTMPPublisher::SocketLoop: Aborting due to bStopping
23:49:46: Number of times waited to send: 0, Waited for a total of 0 bytes
23:49:46: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:49:46: =====Stream End: 2013-06-30, 23:49:46=================================================
23:50:37: =====Stream Start: 2013-06-30, 23:50:37===============================================
23:50:37:   Multithreaded optimizations: On
23:50:37:   Base resolution: 1920x1080
23:50:37:   Output resolution: 1920x1080
23:50:37: ------------------------------------------
23:50:37: Loading up D3D10...
23:50:37: Playback device Default
23:50:37: ------------------------------------------
23:50:37: Using desktop audio input: Speakers (Realtek High Definition Audio)
23:50:37: ------------------------------------------
23:50:37: Using auxilary audio input: Microphone (Realtek High Definition Audio)
23:50:37: ------------------------------------------
23:50:37: Audio Encoding: AAC
23:50:37:     bitrate: 128
23:50:37: Using graphics capture
23:50:37: ------------------------------------------
23:50:37: Video Encoding: x264
23:50:37:     fps: 30
23:50:37:     width: 1920, height: 1080
23:50:37:     preset: veryfast
23:50:37:     CBR: no
23:50:37:     CFR: no
23:50:37:     max bitrate: 2000
23:50:37:     buffer size: 2000
23:50:37:     quality: 6
23:50:37: ------------------------------------------
23:50:37: SharedTexCapture hooked
23:50:38: Using RTMP service: Twitch / Justin.tv
23:50:38:   Server selection: rtmp://live-iad-backup.justin.tv/app
23:50:40: SO_SNDBUF was at 8192
23:50:40: SO_SNDBUF is now 65536
23:52:19: Total frames rendered: 3068, number of frames that lagged: 5 (0.16%) (it's okay for some frames to lag)
23:52:19: RTMPPublisher::SocketLoop: Aborting due to bStopping
23:52:19: Number of times waited to send: 0, Waited for a total of 0 bytes
23:52:19: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:52:19: =====Stream End: 2013-06-30, 23:52:19=================================================
23:55:11: 
23:55:11: Profiler results:
23:55:11: 
23:55:11: ==============================================================
23:55:11: frame - [100%] [avg time: 5.317 ms] [avg calls per frame: 1] [children: 97.3%] [unaccounted: 2.71%]
23:55:11: | scene->Preprocess - [0.0376%] [avg time: 0.002 ms] [avg calls per frame: 1]
23:55:11: | video encoding and uploading - [97.3%] [avg time: 5.171 ms] [avg calls per frame: 1] [children: 95.7%] [unaccounted: 1.6%]
23:55:11: | | CopyResource - [0.282%] [avg time: 0.015 ms] [avg calls per frame: 0]
23:55:11: | | conversion to 4:2:0 - [2.18%] [avg time: 0.116 ms] [avg calls per frame: 0]
23:55:11: | | call to encoder - [91.4%] [avg time: 4.859 ms] [avg calls per frame: 0]
23:55:11: | | sending stuff out - [1.81%] [avg time: 0.096 ms] [avg calls per frame: 0]
23:55:11: ==============================================================
23:55:11:

I did a second test:

http://www.twitch.tv/melancholyx3/b/424204014

Code:
00:28:01: Open Broadcaster Software v0.522b - 32bit (´・ω・`)
00:28:01: -------------------------------
00:28:01: CPU Name: AMD FX(tm)-4100 Quad-Core Processor
00:28:01: CPU Speed: 4017MHz
00:28:01: Physical Memory:  4093MB Total, 1847MB Free
00:28:01: stepping id: 2, model 1, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 4, total cores 2
00:28:01: monitor 1: pos={0, 0}, size={1920, 1080}
00:28:01: Windows Version: 6.1 Build 7601 S
00:28:01: Aero is Disabled
00:28:01: -------------------------------
00:28:01: OBS Modules:
00:28:01: Base Address     Module
00:28:01: 00ED0000         OBS.exe
00:28:01: 630A0000         OBSApi.dll
00:28:01: 74DD0000         DShowPlugin.dll
00:28:01: 74E70000         GraphicsCapture.dll
00:28:01: 75250000         NoiseGate.dll
00:28:01: 74DB0000         scenesw.dll
00:28:01: ------------------------------------------
00:28:01: Adapter 1
00:28:01:   Video Adapter: AMD Radeon HD 7700 Series
00:28:01:   Video Adapter Dedicated Video Memory: 1058213888
00:28:01:   Video Adapter Shared System Memory: 1877766144
00:28:01: =====Stream Start: 2013-07-01, 00:28:01===============================================
00:28:01:   Multithreaded optimizations: On
00:28:01:   Base resolution: 1920x1080
00:28:01:   Output resolution: 1280x720
00:28:01: ------------------------------------------
00:28:01: Loading up D3D10...
00:28:01: Playback device Default
00:28:01: ------------------------------------------
00:28:01: Using desktop audio input: Speakers (Realtek High Definition Audio)
00:28:01: ------------------------------------------
00:28:01: Using auxilary audio input: Microphone (Realtek High Definition Audio)
00:28:01: ------------------------------------------
00:28:01: Audio Encoding: AAC
00:28:01:     bitrate: 128
00:28:01: Using graphics capture
00:28:01: ------------------------------------------
00:28:01: Video Encoding: x264
00:28:01:     fps: 25
00:28:01:     width: 1280, height: 720
00:28:01:     preset: veryfast
00:28:01:     CBR: no
00:28:01:     CFR: no
00:28:01:     max bitrate: 1530
00:28:01:     buffer size: 1530
00:28:01:     quality: 5
00:28:01: ------------------------------------------
00:28:01: SharedTexCapture hooked
00:28:02: Total frames rendered: 26, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
00:28:02: =====Stream End: 2013-07-01, 00:28:02=================================================
00:28:47: =====Stream Start: 2013-07-01, 00:28:47===============================================
00:28:47:   Multithreaded optimizations: On
00:28:47:   Base resolution: 1920x1080
00:28:47:   Output resolution: 1280x720
00:28:47: ------------------------------------------
00:28:47: Loading up D3D10...
00:28:47: Playback device Default
00:28:47: ------------------------------------------
00:28:47: Using desktop audio input: Speakers (Realtek High Definition Audio)
00:28:47: ------------------------------------------
00:28:47: Using auxilary audio input: Microphone (Realtek High Definition Audio)
00:28:47: ------------------------------------------
00:28:47: Audio Encoding: AAC
00:28:47:     bitrate: 128
00:28:47: Using graphics capture
00:28:47: ------------------------------------------
00:28:47: Video Encoding: x264
00:28:47:     fps: 25
00:28:47:     width: 1280, height: 720
00:28:47:     preset: veryfast
00:28:47:     CBR: no
00:28:47:     CFR: no
00:28:47:     max bitrate: 1530
00:28:47:     buffer size: 1530
00:28:47:     quality: 5
00:28:47: ------------------------------------------
00:28:47: SharedTexCapture hooked
00:28:49: Using RTMP service: Twitch / Justin.tv
00:28:49:   Server selection: rtmp://live-iad-backup.justin.tv/app
00:28:49: SO_SNDBUF was at 8192
00:28:49: SO_SNDBUF is now 65536
00:29:15: Total frames rendered: 707, number of frames that lagged: 1 (0.14%) (it's okay for some frames to lag)
00:29:15: RTMPPublisher::SocketLoop: Aborting due to bStopping
00:29:15: Number of times waited to send: 0, Waited for a total of 0 bytes
00:29:15: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
00:29:15: =====Stream End: 2013-07-01, 00:29:15=================================================
00:30:42: 
00:30:42: Profiler results:
00:30:42: 
00:30:42: ==============================================================
00:30:42: frame - [100%] [avg time: 2.317 ms] [avg calls per frame: 1] [children: 96.4%] [unaccounted: 3.63%]
00:30:42: | scene->Preprocess - [0.0432%] [avg time: 0.001 ms] [avg calls per frame: 1]
00:30:42: | video encoding and uploading - [96.3%] [avg time: 2.232 ms] [avg calls per frame: 1] [children: 95%] [unaccounted: 1.38%]
00:30:42: | | CopyResource - [0.604%] [avg time: 0.014 ms] [avg calls per frame: 0]
00:30:42: | | conversion to 4:2:0 - [1.08%] [avg time: 0.025 ms] [avg calls per frame: 0]
00:30:42: | | call to encoder - [83.6%] [avg time: 1.937 ms] [avg calls per frame: 0]
00:30:42: | | sending stuff out - [9.67%] [avg time: 0.224 ms] [avg calls per frame: 0]
00:30:42: ==============================================================
00:30:42:
 

melancholyx3

New Member
compare my vod with this person's

http://www.twitch.tv/dexus136/b/423623031

the "circle" that approaches looks laggy (probably the most obvious sign of some lag) on mine but not the other person's.

PwRKkyq.png
 

dodgepong

Administrator
Community Helper
What do you mean by "lag"? Most people when they say lag are talking about lagging frames. Are you talking about lagging (or desynced) audio?
 
D

Deleted member 3892

Ofcourse you can try streaming at 60FPS, but it can be too much for your PC.
 

dodgepong

Administrator
Community Helper
Then it's possible your system can't handle 60fps. Can you post your latest log from that 60fps test session?
 

melancholyx3

New Member
Here is the log:

Code:
13:13:09: Open Broadcaster Software v0.522b - 32bit (´・ω・`)
13:13:09: -------------------------------
13:13:09: CPU Name: AMD FX(tm)-4100 Quad-Core Processor
13:13:09: CPU Speed: 4017MHz
13:13:09: Physical Memory:  4093MB Total, 1623MB Free
13:13:09: stepping id: 2, model 1, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 4, total cores 2
13:13:09: monitor 1: pos={0, 0}, size={1920, 1080}
13:13:09: Windows Version: 6.1 Build 7601 S
13:13:09: Aero is Disabled
13:13:09: -------------------------------
13:13:09: OBS Modules:
13:13:09: Base Address     Module
13:13:09: 00DB0000         OBS.exe
13:13:09: 61740000         OBSApi.dll
13:13:09: 720A0000         DShowPlugin.dll
13:13:09: 72AF0000         GraphicsCapture.dll
13:13:09: 72060000         NoiseGate.dll
13:13:09: 6AFD0000         scenesw.dll
13:13:09: ------------------------------------------
13:13:09: Adapter 1
13:13:09:   Video Adapter: AMD Radeon HD 7700 Series
13:13:09:   Video Adapter Dedicated Video Memory: 1058213888
13:13:09:   Video Adapter Shared System Memory: 1877766144
13:13:09: =====Stream Start: 2013-07-01, 13:13:09===============================================
13:13:09:   Multithreaded optimizations: On
13:13:09:   Base resolution: 1920x1080
13:13:09:   Output resolution: 1920x1080
13:13:09: ------------------------------------------
13:13:09: Loading up D3D10...
13:13:09: Playback device Default
13:13:09: ------------------------------------------
13:13:09: Using desktop audio input: Speakers (Realtek High Definition Audio)
13:13:09: ------------------------------------------
13:13:09: Using auxilary audio input: Microphone (Realtek High Definition Audio)
13:13:09: ------------------------------------------
13:13:09: Audio Encoding: AAC
13:13:09:     bitrate: 128
13:13:09: Using graphics capture
13:13:09: ------------------------------------------
13:13:09: Video Encoding: x264
13:13:09:     fps: 60
13:13:09:     width: 1920, height: 1080
13:13:09:     preset: veryfast
13:13:09:     CBR: no
13:13:09:     CFR: no
13:13:09:     max bitrate: 1530
13:13:09:     buffer size: 1530
13:13:09:     quality: 5
13:13:09: ------------------------------------------
13:13:09: SharedTexCapture hooked
13:13:10: Using RTMP service: Twitch / Justin.tv
13:13:10:   Server selection: rtmp://live-iad-backup.justin.tv/app
13:13:11: SO_SNDBUF was at 8192
13:13:11: SO_SNDBUF is now 65536
13:49:16: Total frames rendered: 100468, number of frames that lagged: 35788 (35.62%) (it's okay for some frames to lag)
13:49:16: RTMPPublisher::SocketLoop: Aborting due to bStopping
13:49:16: Number of times waited to send: 0, Waited for a total of 0 bytes
13:49:16: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
13:49:16: =====Stream End: 2013-07-01, 13:49:16=================================================
13:49:18: 
13:49:18: Profiler results:
13:49:18: 
13:49:18: ==============================================================
13:49:18: frame - [100%] [avg time: 13.235 ms] [avg calls per frame: 1] [children: 98.6%] [unaccounted: 1.41%]
13:49:18: | scene->Preprocess - [0.0151%] [avg time: 0.002 ms] [avg calls per frame: 1]
13:49:18: | video encoding and uploading - [98.6%] [avg time: 13.046 ms] [avg calls per frame: 1] [children: 89.1%] [unaccounted: 9.49%]
13:49:18: | | CopyResource - [10.5%] [avg time: 1.39 ms] [avg calls per frame: 0]
13:49:18: | | conversion to 4:2:0 - [2.1%] [avg time: 0.278 ms] [avg calls per frame: 0]
13:49:18: | | call to encoder - [75.7%] [avg time: 10.013 ms] [avg calls per frame: 0]
13:49:18: | | sending stuff out - [0.824%] [avg time: 0.109 ms] [avg calls per frame: 0]
13:49:18: ==============================================================
13:49:18:
 

dodgepong

Administrator
Community Helper
Yep, that's a ton of lagged frames due to long encoding times. You might be able to do 48fps, or 40fps, or you might be able to do 60fps with a downscaled resolution. In general, 1080p60 is not recommended because of how demanding it is to watch in Flash as well as encode.
 

Bensam123

Member
At that resolution you're probably bumping against your bit rate. Even more so when running at 60fps (it uses more bandwidth). So you'd probably have to turn down your resolution in order to compensate for your low bit rate. Your quality setting of five probably isn't helping anything, but you'll get dropped frames if you turn it up and it can't handle it.
 
Top