Question / Help Dropping Frames since updating OBS

Slowlyawesome

New Member
So I updated my OBS recently and since then all of my streams have had lag and stuttering video problems.


Here's the log of my last stream ~5 minutes ago.
Open Broadcaster Software v0.472b - 64bit ( ^ω^)
-------------------------------
CPU Name: AMD Phenom(tm) II X6 1100T Processor
CPU Speed: 3322MHz
Physical Memory: 16381MB Total, 12370MB Free
stepping id: 0, model 10, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 6, total cores 6
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
Video Adapter: AMD Radeon HD 6800 Series
Video Adapter Dedicated Video Memory: 1051422720
Video Adapter Shared System Memory: 4025085952
=====Stream Start=====================================================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Logitech G35 Headset)
------------------------------------------
Using auxilary audio input: Microphone (2- Producer USB)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
Using bitmap image
x264: using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
x264: profile High, level 4.0
------------------------------------------
Video Encoding: x264
fps: 30
width: 1920, height: 1080
preset: veryfast
CBR: no
CFR: no
max bitrate: 1000
buffer size: 1000
quality: 8
------------------------------------------
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using Monitor Capture
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using Monitor Capture
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using Monitor Capture
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using bitmap image
Using bitmap image
Using bitmap image
Using bitmap image
Using Monitor Capture
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
Using Monitor Capture
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
++++++++++++++++++++++++++++++++++++++++++++++++++++++
New Scene
Using bitmap image
------------------------------------------
device: Logitech HD Pro Webcam C910,
device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: RGB24, usingFourCC: false, res: 1920x1080 - 1920x1080, fps: 5-30, fourCC: 00000000

Using directshow input
Using Monitor Capture
Total frames rendered: 15452, number of frames that lagged: 3803 (24.61%) (it's okay for some frames to lag)
x264: frame I:71 Avg QP:19.88 size: 38055
x264: frame P:4256 Avg QP:20.19 size: 2951
x264: frame B:11084 Avg QP:20.90 size: 329
x264: consecutive B-frames: 3.8% 0.4% 1.3% 94.5%
x264: mb I I16..4: 76.2% 14.8% 9.0%
x264: mb P I16..4: 1.0% 0.3% 0.1% P16..4: 3.6% 0.6% 0.3% 0.0% 0.0% skip:94.1%
x264: mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.3% 0.1% 0.0% direct: 0.1% skip:99.4% L0:38.6% L1:50.7% BI:10.6%
x264: 8x8 transform intra:19.1% inter:25.0%
x264: coded y,uvDC,uvAC intra: 21.8% 21.1% 9.5% inter: 0.4% 0.5% 0.1%
x264: i16 v,h,dc,p: 75% 17% 5% 2%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 22% 38% 2% 5% 4% 5% 3% 4%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 30% 18% 3% 8% 4% 5% 4% 5%
x264: i8c dc,h,v,p: 75% 14% 9% 1%
x264: Weighted P-Frames: Y:0.6% UV:0.5%
x264: kb/s:250.82
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 21.307 ms] [avg calls per frame: 1] [children: 93.6%] [unaccounted: 6.43%]
| scene->Preprocess - [60.1%] [avg time: 12.816 ms] [avg calls per frame: 1]
| video encoding and uploading - [33.4%] [avg time: 7.122 ms] [avg calls per frame: 1] [children: 22.2%] [unaccounted: 11.3%]
| | CopyResource - [0.0798%] [avg time: 0.017 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.333%] [avg time: 0.071 ms] [avg calls per frame: 0]
| | call to encoder - [21.7%] [avg time: 4.633 ms] [avg calls per frame: 0]
| | sending stuff out - [0.00939%] [avg time: 0.002 ms] [avg calls per frame: 0]
==============================================================

and I ran got this for my speed test.
http://testmy.net/F9i4BtD.png

And this is what I got when I used ShaperProbe
http://gyazo.com/2c83fc688372ed78101f92b6d6537512


Any help would be much appreciated.
 

FerretBomb

Active Member
Your bitrate setting appears to have been reset. You aren't going to get a 1920x1080 (no downscale) @ 30fps stream looking like anything but a hot mess at 1000kbps. You appear to have plenty of upload, I'd recommend bumping to 3000kbps, and 3000 buffer. You can handle more, but 3000-3500 is a good limit, to avoid saturating your viewers' connections (and getting complaints about a choppy, laggy stream caused by THEIR connection not being able to handle the bitrate).

You're also running Monitor Capture (the slowest/worst capture option which should be avoided at all possible) with Aero on (which makes monitor capture even slower). Switch to Game Capture if possible, Window Capture if not, and turn Aero off only as a last-ditch effort, if neither of the other two work and you have no other choice but to use monitor capture.
That monitor capture and low bitrate is definitely killing you though. Super high preprocess times (using monitor capture is likely what's causing this), and 1000kbps just isn't enough for even 720p@30. Maybe at 360p@30 it'd look okay enough... if 360p can be called okay.

If you're streaming LoL (just guessing) you'll need to use a Window Capture for the launcher/out-of-game menus, and Game Capture for the actual in-game itself; it's a separate executable, so be aware of that. Also, there's an automatic scene-switcher plugin here on the forums used by lots of LoL streamers to auto-swap to the GameCap scene... it watches for the game executable to start up, changes to the right scene, then back (assuming you set a 'default' scene to switch to when the in-game executable is no longer detected).

Scene switcher - http://obsproject.com/forum/viewtopic.php?f=11&t=1785

Also, is that a full log? I don't see any dropped-frame stats in there (though I doubt there would be any; that's network dependent, and as established, you appear to have plenty of throughput to spare).
 

Slowlyawesome

New Member
Well thats embarrassing. That was a log from about 3 months ago. -.-

Here is my stream from last night. Dropped about 25% of frames

05:01:43: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
05:01:43: -------------------------------
05:01:43: CPU Name: AMD Phenom(tm) II X6 1100T Processor
05:01:43: CPU Speed: 3322MHz
05:01:43: Physical Memory: 16381MB Total, 10940MB Free
05:01:43: stepping id: 0, model 10, family 15, type 0, extmodel 8, extfamily 0, HTT 1, logical cores 6, total cores 6
05:01:43: monitor 1: pos={0, 0}, size={1920, 1080}
05:01:43: monitor 2: pos={1920, 0}, size={1920, 1080}
05:01:43: Windows Version: 6.1 Build 7601 S
05:01:43: Aero is Enabled
05:01:43: -------------------------------
05:01:43: OBS Modules:
05:01:43: Base Address Module
05:01:43: 000000003F350000 OBS.exe
05:01:43: 00000000EAB10000 OBSApi.dll
05:01:43: 00000000FA320000 DShowPlugin.dll
05:01:43: 00000000F7330000 GraphicsCapture.dll
05:01:43: 00000000FA2E0000 NoiseGate.dll
05:01:43: ------------------------------------------
05:01:43: Adapter 1
05:01:43: Video Adapter: AMD Radeon HD 6800 Series
05:01:43: Video Adapter Dedicated Video Memory: 1051422720
05:01:43: Video Adapter Shared System Memory: 4025085952
05:01:43: =====Stream Start: 2013-06-11, 05:01:43===============================================
05:01:43: Multithreaded optimizations: On
05:01:43: Base resolution: 1920x1080
05:01:43: Output resolution: 1280x720
05:01:43: ------------------------------------------
05:01:43: Loading up D3D10...
05:01:43: Playback device Default
05:01:43: ------------------------------------------
05:01:43: Using desktop audio input: Speakers (High Definition Audio Device)
05:01:43: ------------------------------------------
05:01:43: Using auxilary audio input: Microphone (High Definition Audio Device)
05:01:44: ------------------------------------------
05:01:44: Audio Encoding: AAC
05:01:44: bitrate: 128
05:01:44: Using bitmap image
05:01:44: Using Window Capture
05:01:44: ------------------------------------------
05:01:44: Video Encoding: x264
05:01:44: fps: 30
05:01:44: width: 1280, height: 720
05:01:44: preset: veryfast
05:01:44: CBR: no
05:01:44: CFR: no
05:01:44: max bitrate: 3500
05:01:44: buffer size: 2500
05:01:44: quality: 10
05:01:44: ------------------------------------------
05:01:44: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
05:01:46: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
05:01:46: New Scene
05:01:46: ------------------------------------------
05:01:46: device: Logitech HD Pro Webcam C910,
05:01:46: device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
05:01:46: chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
05:01:46: audio device: (null),
05:01:46: audio device id (null),
05:01:46:
05:01:46: Using directshow input
05:01:46: Using Monitor Capture
05:01:48: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
05:01:48: New Scene
05:01:49: Using bitmap image
05:01:49: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
05:01:49: New Scene
05:01:49: Using text output
05:01:49: Using bitmap image
05:01:49: ------------------------------------------
05:01:49: device: Logitech HD Pro Webcam C910,
05:01:49: device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
05:01:49: chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
05:01:49: audio device: Disable,
05:01:49: audio device id Disabled,
05:01:49:
05:01:50: Using directshow input
05:01:50: Using Monitor Capture
05:01:51: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
05:01:51: New Scene
05:01:51: Using bitmap image
05:01:52: ------------------------------------------
05:01:52: device: Logitech HD Pro Webcam C910,
05:01:52: device id \\?\usb#vid_046d&pid_0821&mi_02#6&1f79877&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
05:01:52: chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
05:01:52: audio device: (null),
05:01:52: audio device id (null),
05:01:52:
05:01:52: Using directshow input
05:01:52: Using Monitor Capture
05:01:53: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
05:01:53: New Scene
05:01:53: Using Window Capture
05:02:01: Total frames rendered: 299, number of frames that lagged: 75 (25.08%) (it's okay for some frames to lag)
05:02:01: =====Stream End: 2013-06-11, 05:02:01=================================================
05:02:01: =====Stream Start: 2013-06-11, 05:02:01===============================================
05:02:01: Multithreaded optimizations: On
05:02:01: Base resolution: 1920x1080
05:02:01: Output resolution: 1280x720
05:02:01: ------------------------------------------
05:02:01: Loading up D3D10...
05:02:01: Playback device Default
05:02:01: ------------------------------------------
05:02:01: Using desktop audio input: Speakers (High Definition Audio Device)
05:02:01: ------------------------------------------
05:02:01: Using auxilary audio input: Microphone (High Definition Audio Device)
05:02:01: ------------------------------------------
05:02:01: Audio Encoding: AAC
05:02:01: bitrate: 128
05:02:01: Using Window Capture
05:02:01: ------------------------------------------
05:02:01: Video Encoding: x264
05:02:01: fps: 30
05:02:01: width: 1280, height: 720
05:02:01: preset: veryfast
05:02:01: CBR: no
05:02:01: CFR: no
05:02:01: max bitrate: 3500
05:02:01: buffer size: 2500
05:02:01: quality: 10
05:02:01: ------------------------------------------
05:02:01: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
05:02:03: Using RTMP service: Twitch / Justin.tv
05:02:03: Server selection: rtmp://live.justin.tv/app
05:02:03: SO_SNDBUF was at 8192
05:02:03: SO_SNDBUF is now 65536
05:06:16: Total frames rendered: 6099, number of frames that lagged: 345 (5.66%) (it's okay for some frames to lag)
05:06:16: RTMPPublisher::SocketLoop: Aborting due to bStopping
05:06:16: Number of times waited to send: 0, Waited for a total of 0 bytes
05:06:16: Number of b-frames dropped: 16 (0.27%), Number of p-frames dropped: 62 (1%), Total 78 (1.3%)
05:06:16: =====Stream End: 2013-06-11, 05:06:16=================================================
05:20:01:
05:20:01: Profiler results:
05:20:01:
05:20:01: ==============================================================
05:20:01: frame - [100%] [avg time: 18.012 ms] [avg calls per frame: 1] [children: 92.4%] [unaccounted: 7.55%]
05:20:01: | scene->Preprocess - [80.5%] [avg time: 14.508 ms] [avg calls per frame: 1]
05:20:01: | video encoding and uploading - [11.9%] [avg time: 2.144 ms] [avg calls per frame: 1] [children: 11.7%] [unaccounted: 0.183%]
05:20:01: | | CopyResource - [0.0777%] [avg time: 0.014 ms] [avg calls per frame: 0]
05:20:01: | | conversion to 4:2:0 - [0.0888%] [avg time: 0.016 ms] [avg calls per frame: 0]
05:20:01: | | call to encoder - [11.2%] [avg time: 2.025 ms] [avg calls per frame: 0]
05:20:01: | | sending stuff out - [0.311%] [avg time: 0.056 ms] [avg calls per frame: 0]
05:20:01: ==============================================================
05:20:01:
 

FerretBomb

Active Member
That looks MUCH better.
Only issue appears to be your Preprocess time, which is likely being caused by that Monitor Capture. Seriously, DON'T use monitor capture! Game cap, Window cap (Aero On), Window cap (Aero Off), Monitor cap. In that order. Monitor capture should be viewed as an absolute LAST RESORT ONLY. It's super-slow at best, and with aero on (as you have) it's even worse.

Network throughput seems to be an issue as well, but not as much as you appear to think. Nowhere near the 25% dropped frames you listed... look near the bottom. 'Total 78 (1.3%)'. It looks like you're getting a bunch of lagged frames (monitor capture to blame, #1 most likely reason) which would cause some stuttering/hitching in the stream and look like dropped frames to your viewers, but not actual dropped frames.

If the 1.3% dropped still bothers you (it would bother me!), you may want to try another server to see if you get better results, or better yet, drop to 3000 or 2500 bitrate and see if maybe that testmy result may have been a bit off. If you're streaming over WiFi, DEFINITELY cut that out. Get on a wired ethernet connection; wifi can easily cause framedrops due to local interference (EM noise, neighbors on the same channel transferring files, LOTS of variables that can be nipped in the bud by just dealing with the cat-5 cable).
 
Top