Question / Help Having stream lag issues with OBS, help?

Sorry if my questions are stupid, or obvious.

The issue: I recently downloaded and installed OBS to live stream myself playing World Of Warcraft with the hope of streaming it smoothly. I looked up tutorials online in case I missed certain things. I thought I set up my OBS quite well, however when I live stream - the stream/OBS lags. World Of Warcraft is quite smooth even while live streaming (40-55 FPS) but OBS is streaming at 14-19 FPS (It says in the corner of OBS). Also, the square in the lower-right corner of OBS is always green, and it always says there are 0 dropped frames.
-----------------------------------------------------------------------------
My specs:

OS: Windows 7 Ultimate x64
CPU: Intel Pentium E5300 Dual-core @ 2.60 GHz (Stock)
Mobo: Intel DG35EC
RAM: 8GB DDR2 (6/8 are GDDR2)
Video Card: GT 440 Standard GDDR3 (Small Overclock)

Internet Speed (All done using testmy.net with precise speeds):
19.4 Mbps
2.3 Mbps
----------------------------------------------------------------------------
OBS Settings:

Encoding:

Quality Balance - 10
Max Bitrate (kb/s): 1000
Buffer Size (kbit): 1200

Broadcast Settings:

Server: US East: Ashburn, VA (Secondary)
Using JTVPing, that server (On average) has a last/average ping of 40-50ms with a jitter of 1-9ms.

Auto-reconnect: Unchecked
Minimize Network Impact: Unchecked

Video:

Base resolution is custom @ 1920x1080 (Resets to a lower resolution while I livestream)
Resolution Downscale: 2.00
FPS: 40

Disable Aero at startup: Unchecked

Advanced:

Use Multithreaded Optimizations: Checked
Process Priority Class: High
x264 CPU Preset: veryfast
No options under the "Video" section are checked.
Force audio to sync to video time: Checked
Automatic Low Latency Mode: Unchecked
-------------------------------------------------------------------------
Demonstration:

I have recorded a video of my problem. There is an FPS counter in-game, above my action bars. The FPS it displays is certainly not the FPS that I was live streaming.

The video link: http://www.twitch.tv/trogdor8freebird/b/391627860
-------------------------------------------------------------------------
Final Comments:

I'm somewhat new to how forums work and what is/isn't socially acceptable in them. If I do anything incorrectly, then some positive criticism will be appreciated over negative criticism. I'm simply attempting to resolve this issue, not to put any emotional investment (Other than gratitude) in this forum, so please keep that in mind when responding.

Any help would be greatly appreciated :)
 

Aelfric

New Member
Trogdor8freebird said:
Sorry if my questions are stupid, or obvious.

The issue: I recently downloaded and installed OBS to live stream myself playing World Of Warcraft with the hope of streaming it smoothly. I looked up tutorials online in case I missed certain things. I thought I set up my OBS quite well, however when I live stream - the stream/OBS lags. World Of Warcraft is quite smooth even while live streaming (40-55 FPS) but OBS is streaming at 14-19 FPS (It says in the corner of OBS). Also, the square in the lower-right corner of OBS is always green, and it always says there are 0 dropped frames.
-----------------------------------------------------------------------------
My specs:

OS: Windows 7 Ultimate x64
CPU: Intel Pentium E5300 Dual-core @ 2.60 GHz (Stock)
Mobo: Intel DG35EC
RAM: 8GB DDR2 (6/8 are GDDR2)
Video Card: GT 440 Standard GDDR3 (Small Overclock)

Internet Speed (All done using testmy.net with precise speeds):
19.4 Mbps
2.3 Mbps
----------------------------------------------------------------------------
OBS Settings:

Encoding:

Quality Balance - 10
Max Bitrate (kb/s): 1000
Buffer Size (kbit): 1200

Broadcast Settings:

Server: US East: Ashburn, VA (Secondary)
Using JTVPing, that server (On average) has a last/average ping of 40-50ms with a jitter of 1-9ms.

Auto-reconnect: Unchecked
Minimize Network Impact: Unchecked

Video:

Base resolution is custom @ 1920x1080 (Resets to a lower resolution while I livestream)
Resolution Downscale: 2.00
FPS: 40

Disable Aero at startup: Unchecked

Advanced:

Use Multithreaded Optimizations: Checked
Process Priority Class: High
x264 CPU Preset: veryfast
No options under the "Video" section are checked.
Force audio to sync to video time: Checked
Automatic Low Latency Mode: Unchecked
-------------------------------------------------------------------------
Demonstration:

I have recorded a video of my problem. There is an FPS counter in-game, above my action bars. The FPS it displays is certainly not the FPS that I was live streaming.

The video link: http://www.twitch.tv/trogdor8freebird/b/391627860
-------------------------------------------------------------------------
Final Comments:

I'm somewhat new to how forums work and what is/isn't socially acceptable in them. If I do anything incorrectly, then some positive criticism will be appreciated over negative criticism. I'm simply attempting to resolve this issue, not to put any emotional investment (Other than gratitude) in this forum, so please keep that in mind when responding.

Any help would be greatly appreciated :)

Your CPU is not good enough even for OBS. A Dual core cpu below E8500 is way too hard to stream even in 720p and you have know what you are doing to tweak things and get it working. E5300 is way outdated cpu and dual core is not the way to go for this kind of work.
 
@Aelfric

I understand your assumption of my cpu not being good enough. However, does the CPU really have much to do with stream lag? I would think that a bottlenecked CPU would deal with in-game lag whereas internet connection and live stream application (OBS) settings would deal with stream lag. Remember, even when I live stream, there isn't any significant lag while I play WoW. Although my CPU is quite bad for live streaming as it normally slows down in-game speed, it actually streamed faster than when I used XSplit. It lagged more than OBS whilst in-game, but I assumed that was due to my processor, because the live stream didn't lag much more at all.

Edit: To be clear, I'm not attempting to say that I know a lot about computers and networking - I'm simply saying it doesn't make sense to me because of the reasons I've given.
 

Aelfric

New Member
Disable sync, lower quality balance to 6 and set your stream fps to 20 fps with 480p streaming. It might work but i can't promise. Your cpu just can't produce too many frames while letting you play the game. Wow uses a lot of gpu and not cpu unlike starcraft. So the argument of my in game fps is high would not really matter much.
 

ThoNohT

Developer
Please post a log file (viewtopic.php?f=5&t=97). The issue could be in the GPU, the CPU, or the connection. We will need a bit more information.

Quality 10 should only be used in very low motion scenes, but that's unrelated to your lag problem.
 
Code:
Open Broadcaster Software v0.472b - 32bit (´・ω・`)
-------------------------------
CPU Name: Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz
CPU Speed: 2587MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 10, model 7, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 2, total cores 2
monitor 1: pos={0, 0}, size={1280, 720}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GT 440 
  Video Adapter Dedicated Video Memory: 1025966080
  Video Adapter Shared System Memory: 3221106688
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1585x727
  Output resolution: 792x362
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{060dbe9d-9af8-44b5-8ab1-380e5be75693}
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 256
Using Window Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64
x264: profile High, level 3.0
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 792, height: 362
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 800
    buffer size: 1000
    quality: 8
------------------------------------------
Syncing audio to video time
Total frames rendered: 7501, number of frames that lagged: 6434 (85.78%) (it's okay for some frames to lag)
x264: frame I:37    Avg QP:19.47  size: 56694
x264: frame P:2622  Avg QP:22.60  size:  4848
x264: frame B:4807  Avg QP:25.78  size:  1178
x264: consecutive B-frames: 12.8%  2.3%  5.1% 79.8%
x264: mb I  I16..4: 27.4% 15.3% 57.3%
x264: mb P  I16..4:  2.3%  2.1%  0.8%  P16..4: 17.9%  4.7%  3.6%  0.0%  0.0%    skip:68.7%
x264: mb B  I16..4:  0.1%  0.1%  0.0%  B16..8:  4.8%  2.7%  0.5%  direct: 3.4%  skip:88.3%  L0:30.4% L1:41.7% BI:27.9%
x264: 8x8 transform intra:36.6% inter:31.6%
x264: coded y,uvDC,uvAC intra: 82.2% 69.9% 50.6% inter: 7.3% 8.5% 4.0%
x264: i16 v,h,dc,p: 30% 15% 44% 12%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9% 18% 34%  4%  8%  5%  8%  5%  9%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 19% 19%  7%  9%  7% 10%  7% 10%
x264: i8c dc,h,v,p: 46% 29% 12% 13%
x264: Weighted P-Frames: Y:0.3% UV:0.1%
x264: kb/s:391.21
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 960x540
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{060dbe9d-9af8-44b5-8ab1-380e5be75693}
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 256
Using Window Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
    fps: 40
    width: 960, height: 540
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 1000
    buffer size: 1200
    quality: 10
------------------------------------------
Syncing audio to video time
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
Total frames rendered: 60, number of frames that lagged: 47 (78.33%) (it's okay for some frames to lag)
SO_SNDBUF already at 172032
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
x264: frame I:1     Avg QP:18.42  size: 62962
x264: frame P:9     Avg QP:22.61  size:  8261
x264: frame B:21    Avg QP:28.03  size:  1439
x264: consecutive B-frames:  5.9%  0.0%  0.0% 94.1%
x264: mb I  I16..4: 51.0% 15.8% 33.2%
x264: mb P  I16..4:  1.4%  1.6%  0.7%  P16..4: 14.6%  3.2%  3.3%  0.0%  0.0%    skip:75.1%
x264: mb B  I16..4:  0.0%  0.1%  0.0%  B16..8:  3.3%  1.8%  0.4%  direct: 2.3%  skip:92.0%  L0:29.5% L1:44.0% BI:26.5%
x264: 8x8 transform intra:23.3% inter:34.0%
x264: coded y,uvDC,uvAC intra: 65.5% 58.7% 45.5% inter: 5.7% 6.4% 3.1%
x264: i16 v,h,dc,p: 66%  8% 21%  5%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9% 19% 33%  4%  8%  4%  8%  4% 11%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 22% 16%  8%  8%  7% 10%  7% 11%
x264: i8c dc,h,v,p: 58% 24%  8% 10%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:758.46
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device {0.0.0.00000000}.{060dbe9d-9af8-44b5-8ab1-380e5be75693}
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 256
Using Window Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64
x264: profile High, level 4.2
------------------------------------------
Video Encoding: x264
    fps: 40
    width: 1920, height: 1080
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 1000
    buffer size: 1200
    quality: 10
------------------------------------------
Syncing audio to video time
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-iad-backup.justin.tv/app
SO_SNDBUF already at 172032
bufferTime: 1779, outputRateWindowTime: 1000, dropThreshold: 2279
Total frames rendered: 434, number of frames that lagged: 394 (90.78%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 5 (1.3%), Number of p-frames dropped: 31 (7.9%), Total 36 (9.2%)
x264: frame I:3     Avg QP:34.39  size: 50848
x264: frame P:201   Avg QP:35.30  size: 20018
x264: frame B:200   Avg QP:34.80  size:  2036
x264: consecutive B-frames: 29.6% 11.3%  3.0% 56.2%
x264: mb I  I16..4: 55.7% 34.3% 10.1%
x264: mb P  I16..4: 14.5% 11.9%  0.4%  P16..4: 16.6%  2.8%  1.0%  0.0%  0.0%    skip:52.9%
x264: mb B  I16..4:  0.5%  0.4%  0.0%  B16..8:  3.6%  0.7%  0.0%  direct: 1.6%  skip:93.1%  L0:44.6% L1:49.8% BI: 5.7%
x264: 8x8 transform intra:43.9% inter:40.3%
x264: coded y,uvDC,uvAC intra: 38.8% 27.7% 9.0% inter: 4.0% 5.8% 0.9%
x264: i16 v,h,dc,p: 36% 23% 33%  8%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  9% 13% 49%  3%  7%  4%  6%  3%  5%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 20% 20%  6%  7%  7%  8%  6%  6%
x264: i8c dc,h,v,p: 78% 12%  7%  2%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:981.01
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 56.324 ms] [avg calls per frame: 1] [children: 98.4%] [unaccounted: 1.57%]
| scene->Preprocess - [62.6%] [avg time: 35.283 ms] [avg calls per frame: 1]
| video encoding and uploading - [35.8%] [avg time: 20.157 ms] [avg calls per frame: 1] [children: 4.08%] [unaccounted: 31.7%]
| | CopyResource - [0.225%] [avg time: 0.127 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.107%] [avg time: 0.06 ms] [avg calls per frame: 0]
| | call to encoder - [3.73%] [avg time: 2.103 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0107%] [avg time: 0.006 ms] [avg calls per frame: 0]
==============================================================
 

paibox

heros in an halfshel
At the moment, the logs only show that your video card is under too heavy load (either the GPU core itself, or the memory bus), and you're going to have to lower your ingame graphics settings (probably by a lot) to give OBS some video card processing power to work with.

Once you manage to get rid of your lagged frames, the load on the CPU is going to be much heavier, and it's quite likely that you're also going to have to lower your encoding settings to get a desirable frame rate out of both the game and the stream once that happens.
 
Top