Question / Help viewer has lag watching the stream

Karol401

Member
hello. and again i have a problem i need help with. Some ppl i know said that my strean lagged for them when i stream league of legends with screen capture but doesnt when i stream crysis3 or tomb raider with game capture...i have 0 dropped frames and they have suffisent internet. What could be the problem here? Thank you in advance.
 

Krazy

Town drunk
Please post a log file, preferably one from streaming LoL and one from streaming one of the other games that works fine.
 

Karol401

Member
Code:
Open Broadcaster Software v0.473b (magnificant test build 11) - 64bit ( ^ω^)
-------------------------------
CPU Name: AMD FX(tm)-8350 Eight-Core Processor
CPU Speed: 4616MHz
Physical Memory:  16298MB Total, 13218MB Free
stepping id: 0, model 2, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1680, 1050}
Windows Version: 6.2 Build 9200 
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: AMD Radeon HD 7900 Series
  Video Adapter Dedicated Video Memory: 3193106432
  Video Adapter Shared System Memory: 3981936640
------------------------------------------
Adapter 2
  Video Adapter: Microsoft Basic Render Driver
  Video Adapter Dedicated Video Memory: 0
  Video Adapter Shared System Memory: 268435456
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using bitmap image
------------------------------------------
    device: USB2.0_Camera,
    device id \\?\usb#vid_093a&pid_2700&mi_00#7&39f58552&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-10000000, fourCC: 'YUY2'

Using directshow input
Using bitmap image
Using bitmap image
Using bitmap image
Using bitmap image
------------------------------------------
------------------------------------------
Using Monitor Capture
Using graphics capture
Using graphics capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 SSEMisalign LZCNT BMI1
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 45
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 2600
    buffer size: 7800
    quality: 7
------------------------------------------
Total frames rendered: 436, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
Total duplicated frames: 0 (0.00%)
x264: frame I:2     Avg QP:25.25  size: 51664
x264: frame P:94    Avg QP:27.92  size:   477
x264: frame B:278   Avg QP:33.44  size:    48
x264: consecutive B-frames:  0.8%  0.0%  0.0% 99.2%
x264: mb I  I16..4: 65.5%  4.7% 29.8%
x264: mb P  I16..4:  0.2%  0.0%  0.0%  P16..4:  0.6%  0.4%  0.2%  0.0%  0.0%    skip:98.5%
x264: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.3%  0.0%  0.0%  direct: 0.0%  skip:99.7%  L0:47.4% L1:51.1% BI: 1.5%
x264: 8x8 transform intra:4.9% inter:18.6%
x264: coded y,uvDC,uvAC intra: 25.6% 21.4% 17.2% inter: 0.1% 0.1% 0.0%
x264: i16 v,h,dc,p: 66% 32%  2%  0%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 64%  8%  1%  1%  2%  3%  1%  3%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 47% 10%  2%  3%  3%  4%  2%  4%
x264: i8c dc,h,v,p: 67% 22% 10%  1%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: ref P L0: 79.9% 20.1%
x264: ref B L0: 81.5% 18.5%
x264: ref B L1: 90.6%  9.4%
x264: kb/s:155.49
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using bitmap image
------------------------------------------
    device: USB2.0_Camera,
    device id \\?\usb#vid_093a&pid_2700&mi_00#7&39f58552&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
    chosen type: YUY2, usingFourCC: false, res: 640x480 - 640x480, frameIntervals: 333333-10000000, fourCC: 'YUY2'

Using directshow input
Using bitmap image
Using bitmap image
Using bitmap image
Using bitmap image
------------------------------------------
------------------------------------------
Using Monitor Capture
Using graphics capture
Using graphics capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 SSEMisalign LZCNT BMI1
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 45
    width: 1280, height: 720
    preset: faster
    CBR: no
    CFR: no
    max bitrate: 2600
    buffer size: 7800
    quality: 7
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-fra.justin.tv/app
SO_SNDBUF was at 65536
SO_SNDBUF is now 65536
RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 262144
Total frames rendered: 452028, number of frames that lagged: 14 (0.00%) (it's okay for some frames to lag)
Total duplicated frames: 3914 (0.87%)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 92, Waited for a total of 322370 bytes
Number of b-frames dropped: 337 (0.075%), Number of p-frames dropped: 259 (0.057%), Total 596 (0.13%)
x264: frame I:2012  Avg QP:22.86  size: 97727
x264: frame P:146006 Avg QP:26.70  size:  7422
x264: frame B:304031 Avg QP:33.48  size:  1163
x264: consecutive B-frames:  6.4%  8.1% 10.7% 74.8%
x264: mb I  I16..4: 27.0% 21.9% 51.1%
x264: mb P  I16..4:  2.2%  2.8%  1.7%  P16..4: 13.8%  3.8%  1.3%  0.0%  0.0%    skip:74.3%
x264: mb B  I16..4:  0.1%  0.1%  0.1%  B16..8:  4.1%  1.1%  0.1%  direct: 0.7%  skip:93.7%  L0:34.5% L1:56.0% BI: 9.5%
x264: 8x8 transform intra:37.9% inter:26.7%
x264: coded y,uvDC,uvAC intra: 62.9% 61.3% 34.6% inter: 2.9% 2.4% 0.4%
x264: i16 v,h,dc,p: 32% 35% 23% 10%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 17% 29%  7%  7%  6%  8%  6%  9%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 23% 17%  7%  8%  7%  8%  6%  8%
x264: i8c dc,h,v,p: 57% 23% 14%  6%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: ref P L0: 83.9% 16.1%
x264: ref B L0: 88.2% 11.8%
x264: ref B L1: 95.4%  4.6%
x264: kb/s:1301.12
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 2.73 ms] [avg calls per frame: 1] [children: 88.9%] [unaccounted: 11.1%]
| scene->Preprocess - [7.62%] [avg time: 0.208 ms] [avg calls per frame: 1]
| video encoding and uploading - [81.2%] [avg time: 2.218 ms] [avg calls per frame: 1] [children: 49.3%] [unaccounted: 31.9%]
| | CopyResource - [1.1%] [avg time: 0.03 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.183%] [avg time: 0.005 ms] [avg calls per frame: 0]
| | call to encoder - [47.6%] [avg time: 1.299 ms] [avg calls per frame: 1]
| | sending stuff out - [0.44%] [avg time: 0.012 ms] [avg calls per frame: 1]
==============================================================
(today lol....dunno if it lagged for them but i didnt change any settings)
and i cannot find any crysis 3 logs srry
 

Krazy

Town drunk
While you aren't really dropping/lagging frames, using Monitor Capture with 45fps and Faster preset really isn't doing you any favors here. If you must use Monitor Capture for the Champion select, it's best to put it in a completely separate scene. Capture the actual gameplay with Game Capture. There is a scene switcher plugin in the Plugins forum that will change scenes for you automagically.

I really don't recommend changing your preset from veryfast, though. 2500 bitrate is actually more than plenty for 720p45fps. Setting your buffer so high is also not very necessary either.
 

hilalpro

Member
Krazy said:
hilalpro said:
you're dropping frames. change the server from frankfurt to something else first.

Not nearly enough to be causing viewer lag.
doesn't matter how many frames out of how much frames you drop you want a green indicator at all times, and a stable server . changing the server has fixed the problem for him before.
 
Try to change following things in OBS since they might be the cause of the issues .

try different twitch servers to stream to,

Video Encoding: x264
fps: 45
width: 1280, height: 720
preset: faster (use "very fast" , the quality gain you get by using the "fast" preset is not that big and causes more trouble than it does good for 1 pc setups)
CBR: no
CFR: no
max bitrate: 2600
buffer size: 7800 (is there a specific reason why you use 3 times the bitrate buffer as your max bitrate? just use the same as max bitrate!!! = 2600)
quality: 7

Using Monitor Capture
Using graphics capture
Using graphics capture why do you use monitor capture and 2 times graphics capture?
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 SSEMisalign LZCNT BMI1
x264: profile High, level 3.2

On a sidenote you can stream Lol in 720p @ 2000 bitrate and it looks good. Also Game Capture is highly recommended for Lol!

if that doesn't help set up a comparison stream on hashd.tv. If it is not lagging on hashd but on twitch it is, you know whats up!

I have similar problems streaming and watching on twitch , even more since everyone converted from Own3d to twitch (especially during League of Legends tournaments and increased viewers watching on Twitch)!

Some days i can watch some high bitrate streams and on other days those streams stutter horribly for me even though they haven't changed anything. My internet isn't the problem either, i have tested it multiple times(and i am pretty sure 150 down and 50 up is more than enough to use twitch.tv as a viewer or streamer).

I am not saying twitch.tv is bad.
 

DazUki

New Member
As hilalpro said; Try Amsterdam or London #2 server instead as a start. Frankfurt cause alot of lag for my viewers for some reason even if ping/jitter is very low(according to JTVPing).
 

Karol401

Member
i am writing from a phone so srry for mistakes etc...if i remember correctly i had my server set to amsterdam not frankfurt...i wasnt using hashdtv but twitch...maybe i posted a bad log but i am bot sure...sorry ill check it when i get back home
 

dodgepong

Administrator
Community Helper
Holy [moley] that is a lot of scenes

Anyway, your log doesn't seem to indicate a huge amount of dropped frames...0.85% is not too bad, though if there were grouped up over the course of a 3-hour stream then you might have had worse performance at isolated moments. Is there a certain part of the VOD we should be looking at?

Dropped frames result from network problems...try decreasing your bit rate, changing Twitch servers, not downloading things in the background, etc.

What is your upload speed?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Make your webcam a global source, otherwise it will lag your stream every time you switch to/away from it, which can cause frame drops. Every time you switch scenes right now, your device has to turn off/on. This is really bad for the stream, and why I made global sources in the first place. Perhaps I should have designed it better to be more automatic for devices, not entirely sure.

If you still have problems with dropped frames after making it a global source, then you may have to also lower the bitrate.
 

Warchamp7

Forum Admin
Just your webcam and any other sources that have a 'load' time that you have in multiple scenes (Like a capture card)
 

Karol401

Member
ok i think it fixed my problem.....but sometimes my camera lags when i stream and sometimes it dont.....what could be the problem?
 

Karol401

Member
sooo.....today i tried streaming and i got about 1% dropped frames log:http://pastebin.com/VFMGzAQf
then i tried changing preset back to faster and even more dropped frames log:http://pastebin.com/vjM85cFj

what can i do
 

hilalpro

Member
Karol401 said:
sooo.....today i tried streaming and i got about 1% dropped frames log:http://pastebin.com/VFMGzAQf
then i tried changing preset back to faster and even more dropped frames log:http://pastebin.com/vjM85cFj

what can i do
run this test viewtopic.php?f=18&t=2613 and try it on all 3 servers (uk,uk2,amesterdam) see which one gives you a green indicator at the highest bitrate. keep lowering the bitrate by 100 and restarting the stream until you find just that.
 
Top