Question / Help Every few seconds, my stream freezes for a second or two.

Monkeys

New Member
Hi guys!

I used the estimator and applied the settings properly but I think I'm doing something wrong, so if someone could help me figure out why I'm experiencing this issue, I'd appreciate it a lot!

Basically the stream will work fine but every about 10-20 seconds, it will freeze for 1 second. I do stream my webcam too but in small. I tend to stream FPS games.

I'm using Twitch.TV
I've got 25 Mbits download, 10 Mbits upload but effectively get around 23 and 8 (sometimes 25/9 but usually speaking 23/8 is the minimum average).

If anyone could give me the right settings to go for, I'd appreciate it. I even reduced quality down to 5 and still had the issue. Here is my current setup;

3LQd0.png

3LQdx.png


Everything else (besides broadcast settings) is left to default.

I don't understand why with such a low quality I'm still getting these weird momentary lag spikes. I've got a pretty good upload speed I think. Am I doing something wrong?

 

Kharay

Member
Re: Every few seconds, my stream freezes for a second or two

A lot faster and far more informative than posting screenshots would be to post a log. ;)

Secondly -- SpeedTest has its uses and merit but for streaming purposes its results are somewhat inaccurate. For streaming purposes TestMy.net is more accurate. http://testmy.net/upload -- Be sure to pick a server near the one you have been streaming to, ideally both should be near yourself obviously.

Third -- Custom Buffer Size is disabled by default, for a good reason. Disable it again.

Forth -- Disabling Aero is really only required if you use Monitor Capture, which I am hoping you're not.
 

Monkeys

New Member
Re: Every few seconds, my stream freezes for a second or two

Sorry, had no clue. Here we go. :)

25/07/2013
Code:
19:08:23: Open Broadcaster Software v0.542b - 64bit ( ^ω^)
19:08:23: -------------------------------
19:08:23: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
19:08:23: CPU Speed: 3292MHz
19:08:23: Physical Memory:  8103MB Total, 5119MB Free
19:08:23: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
19:08:23: monitor 1: pos={0, 0}, size={1680, 1050}
19:08:23: monitor 2: pos={1680, 0}, size={1920, 1080}
19:08:23: Windows Version: 6.1 Build 7601 S
19:08:23: Aero is Disabled
19:08:23: -------------------------------
19:08:23: OBS Modules:
19:08:23: Base Address     Module
19:08:23: 000000003F460000 OBS.exe
19:08:23: 00000000F3680000 OBSApi.dll
19:08:23: 00000000F98F0000 DShowPlugin.dll
19:08:23: 00000000F9A70000 GraphicsCapture.dll
19:08:23: 00000000F98D0000 NoiseGate.dll
19:08:23: 00000000F9B10000 PSVPlugin.dll
19:08:23: ------------------------------------------
19:08:23: Adapter 1
19:08:23:   Video Adapter: AMD Radeon HD 7900 Series
19:08:23:   Video Adapter Dedicated Video Memory: 3202543616
19:08:23:   Video Adapter Shared System Memory: 3980144640
19:08:23: =====Stream Start: 2013-07-25, 19:08:23===============================================
19:08:23:   Multithreaded optimizations: On
19:08:23:   Base resolution: 1680x1050
19:08:23:   Output resolution: 1680x1050
19:08:23: ------------------------------------------
19:08:23: Loading up D3D10...
19:08:23: Playback device Default
19:08:23: ------------------------------------------
19:08:23: Using desktop audio input: Speakers (Logitech G930 Headset)
19:08:23: ------------------------------------------
19:08:23: Using auxilary audio input: Microphone (Logitech G930 Headset)
19:08:23: ------------------------------------------
19:08:23: Audio Encoding: AAC
19:08:23:     bitrate: 128
19:08:23: ------------------------------------------
19:08:23:     device: VF0410 Live! Cam Video IM Pro,
19:08:23:     device id \\?\usb#vid_041e&pid_4063&mi_00#7&26ed8e5b&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
19:08:23:     chosen type: YUY2, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000, fourCC: 'YUY2'
19:08:23:     audio device: Disable,
19:08:23:     audio device id Disabled,
19:08:23: 
19:08:23: Using directshow input
19:08:23: Using Monitor Capture
19:08:23: ------------------------------------------
19:08:23: Video Encoding: x264
19:08:23:     fps: 60
19:08:23:     width: 1680, height: 1050
19:08:23:     preset: veryfast
19:08:23:     CBR: no
19:08:23:     CFR: no
19:08:23:     max bitrate: 4000
19:08:23:     buffer size: 4000
19:08:23:     quality: 8
19:08:23: ------------------------------------------
19:08:35: Using graphics capture
19:08:50: SharedTexCapture hooked
19:09:34: Total frames rendered: 4221, number of frames that lagged: 8 (0.19%) (it's okay for some frames to lag)
19:09:35: =====Stream End: 2013-07-25, 19:09:35=================================================
19:09:36: =====Stream Start: 2013-07-25, 19:09:36===============================================
19:09:36:   Multithreaded optimizations: On
19:09:36:   Base resolution: 1680x1050
19:09:36:   Output resolution: 1680x1050
19:09:36: ------------------------------------------
19:09:36: Loading up D3D10...
19:09:36: Playback device Default
19:09:36: ------------------------------------------
19:09:36: Using desktop audio input: Speakers (Logitech G930 Headset)
19:09:36: ------------------------------------------
19:09:36: Using auxilary audio input: Microphone (Logitech G930 Headset)
19:09:36: ------------------------------------------
19:09:36: Audio Encoding: AAC
19:09:36:     bitrate: 128
19:09:36: ------------------------------------------
19:09:36:     device: VF0410 Live! Cam Video IM Pro,
19:09:36:     device id \\?\usb#vid_041e&pid_4063&mi_00#7&26ed8e5b&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
19:09:36:     chosen type: YUY2, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000, fourCC: 'YUY2'
19:09:36:     audio device: Disable,
19:09:36:     audio device id Disabled,
19:09:36: 
19:09:36: Using directshow input
19:09:36: Using graphics capture
19:09:36: ------------------------------------------
19:09:36: Video Encoding: x264
19:09:36:     fps: 60
19:09:36:     width: 1680, height: 1050
19:09:36:     preset: veryfast
19:09:36:     CBR: no
19:09:36:     CFR: no
19:09:36:     max bitrate: 4000
19:09:36:     buffer size: 4000
19:09:36:     quality: 8
19:09:36: ------------------------------------------
19:09:37: Using RTMP service: Twitch / Justin.tv
19:09:37:   Server selection: rtmp://live-mia.justin.tv/app
19:09:40: SO_SNDBUF was at 8192
19:09:40: SO_SNDBUF is now 65536
19:11:18: Using Monitor Capture
19:18:05: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
20:09:14: Using graphics capture
20:09:19: SharedTexCapture hooked
20:09:35: GraphicsCaptureSource::NewCapture:  eliminating old capture
20:09:35: SharedTexCapture hooked
20:15:18: Total frames rendered: 235063, number of frames that lagged: 7103 (3.02%) (it's okay for some frames to lag)
20:15:18: okay, this is strange
20:15:18: RTMPPublisher::SocketLoop: Aborting due to loop exit
20:15:18: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
20:15:18: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
20:15:18: Number of times waited to send: 1124, Waited for a total of 4075200 bytes
20:15:18: Number of b-frames dropped: 37327 (16%), Number of p-frames dropped: 48717 (21%), Total 86044 (37%)
20:15:18: =====Stream End: 2013-07-25, 20:15:18=================================================
20:15:36: =====Stream Start: 2013-07-25, 20:15:36===============================================
20:15:36:   Multithreaded optimizations: On
20:15:36:   Base resolution: 1680x1050
20:15:36:   Output resolution: 1120x700
20:15:36: ------------------------------------------
20:15:36: Loading up D3D10...
20:15:36: Playback device Default
20:15:36: ------------------------------------------
20:15:36: Using desktop audio input: Speakers (Logitech G930 Headset)
20:15:36: ------------------------------------------
20:15:36: Using auxilary audio input: Microphone (Logitech G930 Headset)
20:15:36: ------------------------------------------
20:15:36: Audio Encoding: AAC
20:15:36:     bitrate: 128
20:15:36: ------------------------------------------
20:15:36:     device: VF0410 Live! Cam Video IM Pro,
20:15:36:     device id \\?\usb#vid_041e&pid_4063&mi_00#7&26ed8e5b&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
20:15:36:     chosen type: YUY2, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000, fourCC: 'YUY2'
20:15:36:     audio device: Disable,
20:15:36:     audio device id Disabled,
20:15:36: 
20:15:36: Using directshow input
20:15:36: Using graphics capture
20:15:36: ------------------------------------------
20:15:36: Video Encoding: x264
20:15:36:     fps: 30
20:15:36:     width: 1120, height: 700
20:15:36:     preset: veryfast
20:15:36:     CBR: no
20:15:36:     CFR: no
20:15:36:     max bitrate: 4000
20:15:36:     buffer size: 4000
20:15:36:     quality: 8
20:15:36: ------------------------------------------
20:15:36: SharedTexCapture hooked
20:15:38: Using RTMP service: Twitch / Justin.tv
20:15:38:   Server selection: rtmp://live-mia.justin.tv/app
20:15:40: SO_SNDBUF was at 8192
20:15:40: SO_SNDBUF is now 65536
20:15:45: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
20:27:24: Total frames rendered: 21243, number of frames that lagged: 2 (0.01%) (it's okay for some frames to lag)
20:27:25: RTMPPublisher::SocketLoop: Aborting due to bStopping
20:27:25: Number of times waited to send: 268, Waited for a total of 1010893 bytes
20:27:25: Number of b-frames dropped: 3382 (16%), Number of p-frames dropped: 5887 (28%), Total 9269 (44%)
20:27:25: =====Stream End: 2013-07-25, 20:27:25=================================================
20:27:48: =====Stream Start: 2013-07-25, 20:27:48===============================================
20:27:48:   Multithreaded optimizations: On
20:27:48:   Base resolution: 1680x1050
20:27:48:   Output resolution: 1120x700
20:27:48: ------------------------------------------
20:27:48: Loading up D3D10...
20:27:49: Playback device Default
20:27:49: ------------------------------------------
20:27:49: Using desktop audio input: Speakers (Logitech G930 Headset)
20:27:49: ------------------------------------------
20:27:49: Using auxilary audio input: Microphone (Logitech G930 Headset)
20:27:49: ------------------------------------------
20:27:49: Audio Encoding: AAC
20:27:49:     bitrate: 128
20:27:49: ------------------------------------------
20:27:49:     device: VF0410 Live! Cam Video IM Pro,
20:27:49:     device id \\?\usb#vid_041e&pid_4063&mi_00#7&26ed8e5b&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
20:27:49:     chosen type: YUY2, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000, fourCC: 'YUY2'
20:27:49:     audio device: Disable,
20:27:49:     audio device id Disabled,
20:27:49: 
20:27:49: Using directshow input
20:27:49: ------------------------------------------
20:27:49: Video Encoding: x264
20:27:49:     fps: 30
20:27:49:     width: 1120, height: 700
20:27:49:     preset: veryfast
20:27:49:     CBR: no
20:27:49:     CFR: no
20:27:49:     max bitrate: 4000
20:27:49:     buffer size: 4000
20:27:49:     quality: 8
20:27:49: ------------------------------------------
20:27:50: Using RTMP service: Twitch / Justin.tv
20:27:50:   Server selection: rtmp://live-mia.justin.tv/app
20:27:52: SO_SNDBUF was at 8192
20:27:52: SO_SNDBUF is now 65536
20:28:59: Using graphics capture
20:28:59: SharedTexCapture hooked
20:32:59: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
20:35:45: Using graphics capture
20:35:45: SharedTexCapture hooked
20:48:24: Total frames rendered: 37041, number of frames that lagged: 2 (0.01%) (it's okay for some frames to lag)
20:48:24: RTMPPublisher::SocketLoop: Aborting due to bStopping
20:48:24: Number of times waited to send: 378, Waited for a total of 1439065 bytes
20:48:24: Number of b-frames dropped: 4985 (14%), Number of p-frames dropped: 10223 (28%), Total 15208 (41%)
20:48:24: =====Stream End: 2013-07-25, 20:48:24=================================================
20:48:43: =====Stream Start: 2013-07-25, 20:48:43===============================================
20:48:43:   Multithreaded optimizations: On
20:48:43:   Base resolution: 1680x1050
20:48:43:   Output resolution: 960x600
20:48:43: ------------------------------------------
20:48:43: Loading up D3D10...
20:48:44: Playback device Default
20:48:44: ------------------------------------------
20:48:44: Using desktop audio input: Speakers (Logitech G930 Headset)
20:48:44: ------------------------------------------
20:48:44: Using auxilary audio input: Microphone (Logitech G930 Headset)
20:48:44: ------------------------------------------
20:48:44: Audio Encoding: AAC
20:48:44:     bitrate: 128
20:48:44: Using graphics capture
20:48:44: ------------------------------------------
20:48:44: Video Encoding: x264
20:48:44:     fps: 30
20:48:44:     width: 960, height: 600
20:48:44:     preset: veryfast
20:48:44:     CBR: no
20:48:44:     CFR: no
20:48:44:     max bitrate: 4000
20:48:44:     buffer size: 4000
20:48:44:     quality: 6
20:48:44: ------------------------------------------
20:48:44: SharedTexCapture hooked
20:48:45: Using RTMP service: Twitch / Justin.tv
20:48:45:   Server selection: rtmp://live-mia.justin.tv/app
20:48:47: SO_SNDBUF was at 8192
20:48:47: SO_SNDBUF is now 65536
20:50:08: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
20:50:37: ------------------------------------------
20:50:37:     device: VF0410 Live! Cam Video IM Pro,
20:50:37:     device id \\?\usb#vid_041e&pid_4063&mi_00#7&26ed8e5b&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
20:50:37:     chosen type: YUY2, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000, fourCC: 'YUY2'
20:50:37:     audio device: Disable,
20:50:37:     audio device id Disabled,
20:50:37: 
20:50:37: Using directshow input
21:05:24: ------------------------------------------
21:05:24:     device: VF0410 Live! Cam Video IM Pro,
21:05:24:     device id \\?\usb#vid_041e&pid_4063&mi_00#7&26ed8e5b&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
21:05:24:     chosen type: YUY2, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000, fourCC: 'YUY2'
21:05:24:     audio device: Disable,
21:05:24:     audio device id Disabled,
21:05:24: 
21:05:24: Using directshow input
21:05:26: Total frames rendered: 30058, number of frames that lagged: 6 (0.02%) (it's okay for some frames to lag)
21:05:26: RTMPPublisher::SocketLoop: Aborting due to bStopping
21:05:26: Number of times waited to send: 173, Waited for a total of 620978 bytes
21:05:26: Number of b-frames dropped: 1581 (5.3%), Number of p-frames dropped: 2267 (7.6%), Total 3848 (13%)
21:05:26: =====Stream End: 2013-07-25, 21:05:26=================================================
21:07:33: =====Stream Start: 2013-07-25, 21:07:33===============================================
21:07:33:   Multithreaded optimizations: On
21:07:33:   Base resolution: 1680x1050
21:07:33:   Output resolution: 840x524
21:07:33: ------------------------------------------
21:07:33: Loading up D3D10...
21:07:33: Playback device Default
21:07:33: ------------------------------------------
21:07:33: Using desktop audio input: Speakers (Logitech G930 Headset)
21:07:33: ------------------------------------------
21:07:33: Using auxilary audio input: Microphone (Logitech G930 Headset)
21:07:33: ------------------------------------------
21:07:33: Audio Encoding: AAC
21:07:33:     bitrate: 128
21:07:33: ------------------------------------------
21:07:33:     device: VF0410 Live! Cam Video IM Pro,
21:07:33:     device id \\?\usb#vid_041e&pid_4063&mi_00#7&26ed8e5b&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
21:07:33:     chosen type: YUY2, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000, fourCC: 'YUY2'
21:07:33:     audio device: Disable,
21:07:33:     audio device id Disabled,
21:07:33: 
21:07:33: Using directshow input
21:07:33: Using graphics capture
21:07:33: ------------------------------------------
21:07:33: Video Encoding: x264
21:07:33:     fps: 30
21:07:33:     width: 840, height: 524
21:07:33:     preset: veryfast
21:07:33:     CBR: no
21:07:33:     CFR: no
21:07:33:     max bitrate: 3000
21:07:33:     buffer size: 3000
21:07:33:     quality: 6
21:07:33: ------------------------------------------
21:07:33: SharedTexCapture hooked
21:07:35: Using RTMP service: Twitch / Justin.tv
21:07:35:   Server selection: rtmp://live-mia.justin.tv/app
21:07:37: SO_SNDBUF was at 8192
21:07:37: SO_SNDBUF is now 65536
21:08:42: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
21:12:09: Capture window 0x00BF0394 invalid or changing, terminating capture
21:12:14: Using Monitor Capture
21:12:28: Total frames rendered: 8828, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
21:12:28: RTMPPublisher::SocketLoop: Aborting due to bStopping
21:12:28: Number of times waited to send: 91, Waited for a total of 335585 bytes
21:12:28: Number of b-frames dropped: 648 (7.5%), Number of p-frames dropped: 1019 (12%), Total 1667 (19%)
21:12:28: =====Stream End: 2013-07-25, 21:12:28=================================================
21:12:42: 
21:12:42: Profiler results:
21:12:42: 
21:12:42: ==============================================================
21:12:42: frame - [100%] [avg time: 5.754 ms (cpu time: avg 3.781 ms, total 1.2723e+006 ms)] [avg calls per frame: 1] [children: 99.9%] [unaccounted: 0.0869%]
21:12:42: | frame preprocessing and rendering - [63.1%] [avg time: 3.628 ms (cpu time: avg 2.145 ms, total 721817 ms)] [avg calls per frame: 1] [children: 50.7%] [unaccounted: 12.3%]
21:12:42: | | scene->Preprocess - [50.7%] [avg time: 2.919 ms (cpu time: avg 1.811 ms, total 609496 ms)] [avg calls per frame: 1]
21:12:42: | video encoding and uploading - [36.9%] [avg time: 2.121 ms (cpu time: avg 1.634 ms, total 549872 ms)] [avg calls per frame: 1] [children: 35.7%] [unaccounted: 1.18%]
21:12:42: | | flush - [5.39%] [avg time: 0.31 ms (cpu time: avg 0.053 ms, total 18158.5 ms)] [avg calls per frame: 1]
21:12:42: | | CopyResource - [0.156%] [avg time: 0.009 ms (cpu time: avg 0.008 ms, total 2730.01 ms)] [avg calls per frame: 0]
21:12:42: | | conversion to 4:2:0 - [0.122%] [avg time: 0.007 ms (cpu time: avg 0.004 ms, total 1419.61 ms)] [avg calls per frame: 0]
21:12:42: | | call to encoder - [29.7%] [avg time: 1.711 ms (cpu time: avg 1.544 ms, total 519499 ms)] [avg calls per frame: 0]
21:12:42: | | sending stuff out - [0.278%] [avg time: 0.016 ms (cpu time: avg 0.011 ms, total 3946.82 ms)] [avg calls per frame: 0]
21:12:42: | Convert444Threads - [749%] [avg time: 43.096 ms (cpu time: avg 1.467 ms, total 493774 ms)] [avg calls per frame: 1]
21:12:42: ==============================================================
21:12:42: 
21:12:42: Memory Leaks Were Detected.
21:12:42:

Now when it comes to testmy.net - it's being weird. Sometimes I'm getting as low as 2.0, sometimes I'm getting as high as 5.0 while really, it should be around 10 (at least that's what I'm paying for). So I'm not sure what to make of it really.
Averagely it seems to hang around 3.5.

So let me know what settings you suggest. :)
 

Kharay

Member
Re: Every few seconds, my stream freezes for a second or two

My suggestions:
  • Enable Aero -- As I said, the only situation where you'd really need to disable it is when you're trying to Monitor Capture. Which isn't recommended in any situation. Leaving Aero Enabled is a safe bet to ensure that if all else fails you can fall back to Window Capture and still expect a very nice performance.
  • Encoding:
    • Enable CBR
    • Enable CBR Padding
    • Disable Custom Buffer Size
    • Max Bitrate: 2000 Kbps
  • Advanced:
    • Process Priority Class: Above Normal
    • Custom x264 Settings: opencl=true
 

Monkeys

New Member
Re: Every few seconds, my stream freezes for a second or two

Thanks.

I'll give that a whirl and let you know how it goes.
 

FerretBomb

Active Member
Re: Every few seconds, my stream freezes for a second or two

Speedtest tests 'dead file' transfers. Useless for livestreaming, which relies on a constant throughput. Many ISPs will 'burst' connections (normally run at a low throughput level, then run FAR above their rated speed briefly now and then) which will average out to the speed they say they're giving you over the course of a file transfer. Unfortunately, livestreaming only has a certain amount of data available at a given time, so cannot take advantage of these bursts of super high bandwidth.

There's also an argument for multiple TCP connections, but as far as I know, that... doesn't really apply other than a webserver allowing multiple resources to be downloaded in parallel, and does not apply to single-file uploads.

Network throughput can fluctuate (wildly) due to a lot of factors. Short version, testmy is giving you a more accurate view of what you're actually getting as far as baseline connection quality.


Also, Twitch servers will have issues with ANYTHING above 3500kbps (and sometimes even only 3000). So just being at 4000 could have caused some of your problems as well.
 

Monkeys

New Member
Re: Every few seconds, my stream freezes for a second or two

Tried what you suggested, no cigar. Still lags every now and then.

Tried running in 32 bit, administrator mode, with even lower settings as follow, still lagging. I really don't understand what could be causing this.

Code:
17:39:12: Open Broadcaster Software v0.541b - 32bit (´・ω・`)
17:39:12: -------------------------------
17:39:12: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
17:39:12: CPU Speed: 3292MHz
17:39:12: Physical Memory:  4095MB Total, 4095MB Free
17:39:12: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
17:39:12: monitor 1: pos={0, 0}, size={1680, 1050}
17:39:12: monitor 2: pos={1680, 0}, size={1920, 1080}
17:39:12: Windows Version: 6.1 Build 7601 S
17:39:12: Aero is Enabled
17:39:12: -------------------------------
17:39:12: OBS Modules:
17:39:12: Base Address     Module
17:39:12: 00240000         OBS.exe
17:39:12: 72CF0000         OBSApi.dll
17:39:12: 74F50000         DShowPlugin.dll
17:39:12: 75310000         GraphicsCapture.dll
17:39:12: 74F30000         NoiseGate.dll
17:39:12: 74F10000         PSVPlugin.dll
17:39:12: ------------------------------------------
17:39:12: Adapter 1
17:39:12:   Video Adapter: AMD Radeon HD 7900 Series
17:39:12:   Video Adapter Dedicated Video Memory: 3202543616
17:39:12:   Video Adapter Shared System Memory: 1092358144
17:39:12: =====Stream Start: 2013-07-26, 17:39:12===============================================
17:39:12:   Multithreaded optimizations: On
17:39:12:   Base resolution: 1680x1050
17:39:12:   Output resolution: 560x350
17:39:12: ------------------------------------------
17:39:12: Loading up D3D10...
17:39:13: Playback device Default
17:39:13: ------------------------------------------
17:39:13: Using desktop audio input: Speakers (Logitech G930 Headset)
17:39:13: ------------------------------------------
17:39:13: Using auxilary audio input: Microphone (Logitech G930 Headset)
17:39:13: ------------------------------------------
17:39:13: Audio Encoding: AAC
17:39:13:     bitrate: 128
17:39:13: Using graphics capture
17:39:13: Using custom x264 settings: "opencl=true"
17:39:16: ------------------------------------------
17:39:16: Video Encoding: x264
17:39:16:     fps: 30
17:39:16:     width: 560, height: 350
17:39:16:     preset: veryfast
17:39:16:     CBR: yes
17:39:16:     CFR: no
17:39:16:     max bitrate: 2000
17:39:16: ------------------------------------------
17:39:16: SharedTexCapture hooked
17:39:18: Using RTMP service: Twitch / Justin.tv
17:39:18:   Server selection: rtmp://live-mia.justin.tv/app
17:39:20: SO_SNDBUF was at 8192
17:39:20: SO_SNDBUF is now 65536
17:40:33: RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
17:42:32: Total frames rendered: 5864, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
17:42:32: RTMPPublisher::SocketLoop: Aborting due to loop exit
17:42:32: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
17:42:32: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
17:42:32: Number of times waited to send: 108, Waited for a total of 384301 bytes
17:42:32: Number of b-frames dropped: 567 (9.9%), Number of p-frames dropped: 648 (11%), Total 1215 (21%)
17:42:32: =====Stream End: 2013-07-26, 17:42:32=================================================
17:42:48: 
17:42:48: Profiler results:
17:42:48: 
17:42:48: ==============================================================
17:42:48: frame - [100%] [avg time: 0.753 ms (cpu time: avg 0.571 ms, total 3354.02 ms)] [avg calls per frame: 1] [children: 48.7%] [unaccounted: 51.3%]
17:42:48: | scene->Preprocess - [0.133%] [avg time: 0.001 ms (cpu time: avg 0.002 ms, total 15.6 ms)] [avg calls per frame: 1]
17:42:48: | video encoding and uploading - [48.6%] [avg time: 0.366 ms (cpu time: avg 0.321 ms, total 1887.61 ms)] [avg calls per frame: 1] [children: 43.7%] [unaccounted: 4.91%]
17:42:48: | | CopyResource - [1.06%] [avg time: 0.008 ms (cpu time: avg 0.013 ms, total 78 ms)] [avg calls per frame: 0]
17:42:48: | | conversion to 4:2:0 - [0.797%] [avg time: 0.006 ms (cpu time: avg 0.015 ms, total 93.6 ms)] [avg calls per frame: 0]
17:42:48: | | call to encoder - [39.3%] [avg time: 0.296 ms (cpu time: avg 0.268 ms, total 1575.61 ms)] [avg calls per frame: 0]
17:42:48: | | sending stuff out - [2.52%] [avg time: 0.019 ms (cpu time: avg 0.015 ms, total 93.601 ms)] [avg calls per frame: 0]
17:42:48: | Convert444Threads - [8.83e+003%] [avg time: 66.471 ms (cpu time: avg 0.196 ms, total 1154.41 ms)] [avg calls per frame: 1]
17:42:48: ==============================================================
17:42:48:
 

Monkeys

New Member
Re: Every few seconds, my stream freezes for a second or two

Also, my viewers are reporting that it's only the video that freezes. The sound goes on as usual without any interruption (I tend to play music in the bg and comment on the gameplay)
 

Kharay

Member
Re: Every few seconds, my stream freezes for a second or two

Then start dropping the bitrate in steps of 50 kbps until it stops freezing. You're still dropping frames, which does suggest your connection falling behind. 2000 > 1950 > 1900 > 1850 > etc. Given your framedrop, I am expecting it to stop dropping at something like 1650, actually.

Additionally, consider installing this plugin to confirm you're streaming to the best possible server in your situation.
 

Monkeys

New Member
Re: Every few seconds, my stream freezes for a second or two

I don't know if this helps at all and I do not mean to bash OBS, but I just tried FFSplit and with default settings, it streams great and perfect, no lag, good quality.

But I like OBS better, the interface is much simpler/cleaner. I'm not sure if that can help make it work on OBS too?
 

Kharay

Member
Re: Every few seconds, my stream freezes for a second or two

How would that help make it work on OBS? They are not the same piece of software. I don't know what else to say, you're suffering from framedrops according to OBS' log file. This does really suggest your connection is falling behind. It's not about OBS' performance or your PC's performance.

17:42:32: Total frames rendered: 5864, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
This statistic concerns the performance of your PC and of OBS; and that figure is perfect. Not a single lagging frame.
 

Monkeys

New Member
Re: Every few seconds, my stream freezes for a second or two

I thought maybe we could check what the settings were on FFSplit and set them on OBS but I can't figure it out.

In any case, what you're saying is that the issue is related to my PC rather than my internet? Would the specs of my PC help troubleshoot this?
 

Kharay

Member
Re: Every few seconds, my stream freezes for a second or two

No, in reverse... read what I wrote more carefully. Your PC is just fine. The situation is related to your connection. That is what I said. And there is very little more we can do about it as far as settings in OBS are concerned.
 

Monkeys

New Member
Re: Every few seconds, my stream freezes for a second or two

That's disappointing though. What can I do about it then? I'm paying out the ass for 25/10 (I live in Canada) specifically so I could stream.. Shouldn't 25/10 be enough for streaming?
 

Kharay

Member
Re: Every few seconds, my stream freezes for a second or two

You're not getting to that 25/10, not by a long shot. As is obvious from the TestMy.net results. Here, run this to see if your ISP is somehow shaping your real world speeds.
 

Monkeys

New Member
Re: Every few seconds, my stream freezes for a second or two

Turned out that the Twitch server I had chosen wasn't bueno. Picked a closer one and it pretty much solved the issue entirely. :) Thank you Kharay and Jack0r on IRC!
 
I dont know if your suggestion fixed this guys problem but i had to login to THANK YOU becuase it fixed my OBS sticking every 10 seconds problem...was driving me NUTS and my viewers

This is what fixed it!
  • Advanced:
    • Process Priority Class: Above Normal
    • Custom x264 Settings: opencl=true
So Thank You -> Kharay
 

Zylon

New Member
I have the same problem but I feel there is something strange about this.
I tested with a friend on when my stream starts lagging, i don't drop frames but for him it still laggs from time to time.
I put my encoding down by 50kb/s each time untill i hit 1150kb/s it stopped lagging but this ofcourse affects the quality of the video.

these are my testmy.net results:
Code:
:::.. Upload Speed Test Result Details ..:::
Upload Connection Speed:: 8632 Kbps or 8.6 Mbps
Upload Speed Test Size:: 7.9 MB or 8128 kB or 8323072 bytes
Upload Binary File Transfer Speed:: 1079 kB/s or 1.1 MB/s

This is my OBS logg (Note: i have aero disabled for my own windows settings, i dislike the look of aero it has nothing to do with the stream settings)

Code:
23:03:49: Server Ping plugin strings not found, dynamically loading 24 strings
23:04:30: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
23:04:30: CUDA loaded successfully
23:04:30: 1 CUDA capable devices found
23:04:30: [ GPU #0 - < GeForce GTX 770 > has Compute SM 3.0, NVENC Available ]
23:07:05: Open Broadcaster Software v0.651b - 64bit ( ^ω^)
23:07:05: -------------------------------
23:07:05: CPU Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
23:07:05: CPU Speed: 3500MHz
23:07:05: Physical Memory:  8135MB Total, 4682MB Free
23:07:05: stepping id: 3, model 60, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
23:07:05: monitor 1: pos={0, 0}, size={1920, 1080}
23:07:05: monitor 2: pos={1920, 0}, size={1440, 900}
23:07:05: Windows Version: 6.1 Build 7600
23:07:05: Aero is Disabled
23:07:05: -------------------------------
23:07:05: OBS Modules:
23:07:05: Base Address     Module
23:07:05: 000000003FAE0000 OBS.exe
23:07:05: 00000000F4200000 OBSApi.dll
23:07:05: 00000000FAFE0000 DShowPlugin.dll
23:07:05: 00000000FBA40000 GraphicsCapture.dll
23:07:05: 00000000FAF70000 NoiseGate.dll
23:07:05: 00000000F8FA0000 PSVPlugin.dll
23:07:05: 00000000F8F70000 scenesw.dll
23:07:05: 00000000F8F40000 ServerPingPlugin.dll
23:07:05: ------------------------------------------
23:07:05: Adapter 1
23:07:05:   Video Adapter: NVIDIA GeForce GTX 770
23:07:05:   Video Adapter Dedicated Video Memory: 2088435712
23:07:05:   Video Adapter Shared System Memory: 2147807232
23:07:05:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
23:07:05:   Video Adapter Output 2: pos={1920, 0}, size={1440, 900}, attached=true
23:07:05: =====Stream Start: 2015-05-17, 23:07:05===============================================
23:07:05:   Multithreaded optimizations: On
23:07:05:   Base resolution: 1920x1080
23:07:05:   Output resolution: 1280x720
23:07:05: ------------------------------------------
23:07:05: Loading up D3D10 on NVIDIA GeForce GTX 770 (Adapter 1)...
23:07:05: ------------------------------------------
23:07:05: Audio Format: 48000 Hz
23:07:05: ------------------------------------------
23:07:05: Audio Channels: 2 Ch
23:07:05: Playback device {0.0.0.00000000}.{e5242984-6b15-42c6-8119-83b2127c0424}
23:07:05: ------------------------------------------
23:07:05: Using desktop audio input: Luidsprekers (Realtek High Definition Audio)
23:07:05: Global Audio time adjust: 0
23:07:05: ------------------------------------------
23:07:05: Audio Encoding: AAC
23:07:05:     bitrate: 64
23:07:05: Using graphics capture
23:07:05: Trying to hook process: KFGame.exe
23:07:05: Scene buffering time set to 400
23:07:05: Using custom x264 settings: "opencl=true"
23:07:05: ------------------------------------------
23:07:05: Video Encoding: x264
23:07:05:     fps: 30
23:07:05:     width: 1280, height: 720
23:07:05:     preset: veryfast
23:07:05:     profile: high
23:07:05:     keyint: 60
23:07:05:     CBR: yes
23:07:05:     CFR: yes
23:07:05:     max bitrate: 1150
23:07:05:     buffer size: 1150
23:07:05: ------------------------------------------
23:07:07: Using RTMP service: Twitch
23:07:07:   Server selection: rtmp://live-ams.twitch.tv/app
23:07:07:   Interface: Killer e2200 PCI-E Gigabit Ethernet Controller (NDIS 6.20) (ethernet, 100 mbps)
23:07:08: Completed handshake with rtmp://live-ams.twitch.tv/app in 766 ms.
23:07:08: SO_SNDBUF was at 8192
23:07:08: SO_SNDBUF is now 65536
23:07:17: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 199680)
23:07:17: SharedTexCapture hooked
23:07:24: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 199680)
23:08:32: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 199680)
23:21:00: Total frames encoded: 25010, total frames duplicated: 27 (0.11%)
23:21:00: Number of frames skipped due to encoder lag: 2 (0.01%)
23:21:00: Total frames rendered: 25008, number of late frames: 7 (0.03%) (it's okay for some frames to be late)
23:21:00:
23:21:00: Profiler time results:
23:21:00:
23:21:00: ==============================================================
23:21:00: video thread frame - [100%] [avg time: 0.687 ms] [children: 42.6%] [unaccounted: 57.4%]
23:21:00: | scene->Preprocess - [0.291%] [avg time: 0.002 ms]
23:21:00: | GPU download and conversion - [42.4%] [avg time: 0.291 ms] [children: 40.9%] [unaccounted: 1.46%]
23:21:00: | | flush - [40%] [avg time: 0.275 ms]
23:21:00: | | CopyResource - [0.582%] [avg time: 0.004 ms]
23:21:00: | | conversion to 4:2:0 - [0.291%] [avg time: 0.002 ms]
23:21:00: Convert444Threads - [100%] [avg time: 0.877 ms] [children: 99.7%] [unaccounted: 0.342%]
23:21:00: | Convert444toNV12 - [99.7%] [avg time: 0.874 ms]
23:21:00: encoder thread frame - [100%] [avg time: 1.235 ms] [children: 4.05%] [unaccounted: 96%]
23:21:00: | sending stuff out - [4.05%] [avg time: 0.05 ms]
23:21:00: ==============================================================
23:21:00:
23:21:00:
23:21:00: Profiler CPU results:
23:21:00:
23:21:00: ==============================================================
23:21:00: video thread frame - [cpu time: avg 0.018 ms, total 468.003 ms] [avg calls per frame: 1]
23:21:00: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:21:00: | GPU download and conversion - [cpu time: avg 0.011 ms, total 296.402 ms] [avg calls per frame: 1]
23:21:00: | | flush - [cpu time: avg 0.009 ms, total 249.602 ms] [avg calls per frame: 1]
23:21:00: | | CopyResource - [cpu time: avg 0 ms, total 15.6 ms] [avg calls per frame: 1]
23:21:00: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:21:00: Convert444Threads - [cpu time: avg 0.907 ms, total 45380.7 ms] [avg calls per frame: 2]
23:21:00: | Convert444toNV12 - [cpu time: avg 0.906 ms, total 45333.9 ms] [avg calls per frame: 2]
23:21:00: encoder thread frame - [cpu time: avg 0.878 ms, total 21980.5 ms] [avg calls per frame: 1]
23:21:00: | sending stuff out - [cpu time: avg 0.054 ms, total 1357.21 ms] [avg calls per frame: 1]
23:21:00: ==============================================================
23:21:00:
23:21:00: =====Stream End: 2015-05-17, 23:21:00=================================================
23:21:00: ~RTMPPublisher: Packet flush completed in 124 ms
23:21:00: ~RTMPPublisher: Send thread terminated in 0 ms
23:21:00: RTMPPublisher::SocketLoop: Graceful loop exit
23:21:00: ~RTMPPublisher: Socket thread terminated in 0 ms
23:21:10: ~RTMPPublisher: Final socket shutdown completed in 10200 ms
23:21:10: Average send payload: 5382 bytes, average send interval: 26 ms
23:21:10: Number of times waited to send: 0, Waited for a total of 0 bytes
23:21:10: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
23:21:10: Number of bytes sent: 165962029

So my upload speed is 8632 Kbps but if i put my bitrate encoding above 1150 Kbps the stream starts to lagg. I doubt its my pc running behind. any leads?

Thanks in advance.
-Zylon
 
Top