Question / Help I can't get to stream properly.

Trixz111

New Member
Using twitch.tv, my stream is extremely laggy and choppy.

I've tried varying bitrates and varying resolutions and everything. Nothing has worked at all.

I looked at the stickies in this forum and I tried the log analyzer and it told me about how the resolution/FPS is too high for my CPU. Could someone please give me a hand?

My latest stream attempt log:

Code:
22:02:55: Open Broadcaster Software v0.584b - 64bit ( ^ω^)
22:02:55: -------------------------------
22:02:55: CPU Name: Intel(R) Pentium(R) CPU B950 @ 2.10GHz
22:02:55: CPU Speed: 2095MHz
22:02:55: Physical Memory:  3932MB Total, 1392MB Free
22:02:55: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 2, total cores 2
22:02:55: monitor 1: pos={0, 0}, size={1366, 768}
22:02:55: Windows Version: 6.2 Build 9200 
22:02:55: Aero is Enabled
22:02:55: -------------------------------
22:02:55: OBS Modules:
22:02:55: Base Address     Module
22:02:55: 000000002E550000 OBS.exe
22:02:55: 0000000092090000 OBSApi.dll
22:02:55: 000000009F170000 DShowPlugin.dll
22:02:55: 00000000A12B0000 GraphicsCapture.dll
22:02:55: 00000000A8150000 NoiseGate.dll
22:02:55: 00000000A68B0000 PSVPlugin.dll
22:02:55: ------------------------------------------
22:02:55: Adapter 1
22:02:55:   Video Adapter: Intel(R) HD Graphics
22:02:55:   Video Adapter Dedicated Video Memory: 134217728
22:02:55:   Video Adapter Shared System Memory: 1711276032
22:02:55:   Video Adapter Output 1: pos={0, 0}, size={1366, 768}, attached=true
22:02:55: =====Stream Start: 2013-12-04, 22:02:55===============================================
22:02:55:   Multithreaded optimizations: On
22:02:55:   Base resolution: 1366x768
22:02:55:   Output resolution: 1364x768
22:02:55: ------------------------------------------
22:02:55: Loading up D3D10 on Intel(R) HD Graphics...
22:02:55: ------------------------------------------
22:02:55: Audio Format: 44100hz
22:02:55: Playback device Default
22:02:55: ------------------------------------------
22:02:55: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:02:55: ------------------------------------------
22:02:55: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:02:55: ------------------------------------------
22:02:55: Audio Encoding: AAC
22:02:55:     bitrate: 160
22:02:55: Using Monitor Capture
22:02:55: Scene buffering time set to 400
22:02:55: ------------------------------------------
22:02:55: Video Encoding: x264
22:02:55:     fps: 25
22:02:55:     width: 1364, height: 768
22:02:55:     preset: veryfast
22:02:55:     profile: main
22:02:55:     keyint: 50
22:02:55:     CBR: yes
22:02:55:     CFR: yes
22:02:55:     max bitrate: 3500
22:02:55:     buffer size: 3500
22:02:55: ------------------------------------------
22:02:55: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
22:02:55: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 352800, samples per sec is 44100
22:02:57: Using RTMP service: Twitch / Justin.tv
22:02:57:   Server selection: rtmp://live-jfk.justin.tv/app
22:02:57:   Interface: Broadcom NetLink (TM) Gigabit Ethernet (ethernet, 1000 mbps)
22:02:57: Completed handshake with rtmp://live-jfk.justin.tv/app in 257 ms.
22:02:58: SO_SNDBUF was at 65536
22:02:58: SO_SNDBUF is now 65536
22:03:00: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 201986 / 467968)
22:03:01: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 467968)
22:03:11: RTMPPublisher::SocketLoop: Stalled for 4829 ms to write 87713 bytes (buffer: 0 / 467968), unstable connection?
22:03:17: RTMPPublisher::SocketLoop: Received FD_CLOSE, 5155 ms since last send (buffer: 0 / 467968)
22:03:17: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 0
22:03:19: Total frames encoded: 247, total frames duplicated: 153 (61.94%)
22:03:19: Number of frames skipped due to encoder lag: 150 (60.73%)
22:03:19: Total frames rendered: 101, number of late frames: 2 (1.98%) (it's okay for some frames to be late)
22:03:20: Average send payload: 25325 bytes, average send interval: 122 ms
22:03:20: Number of times waited to send: 0, Waited for a total of 0 bytes
22:03:20: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:03:20: Number of bytes sent: 2456574
22:03:20: 
22:03:20: Profiler time results:
22:03:20: 
22:03:20: ==============================================================
22:03:20: video thread frame - [100%] [avg time: 3.269 ms] [children: 61.4%] [unaccounted: 38.6%]
22:03:20: | scene->Preprocess - [13.9%] [avg time: 0.454 ms]
22:03:20: | GPU download and conversion - [47.5%] [avg time: 1.553 ms] [children: 19.7%] [unaccounted: 27.8%]
22:03:20: | | flush - [12.2%] [avg time: 0.4 ms]
22:03:20: | | CopyResource - [7.28%] [avg time: 0.238 ms]
22:03:20: | | conversion to 4:2:0 - [0.184%] [avg time: 0.006 ms]
22:03:20: Convert444Thread - [100%] [avg time: 2.754 ms] [children: 99.1%] [unaccounted: 0.944%]
22:03:20: | Convert444toNV12 - [99.1%] [avg time: 2.728 ms]
22:03:20: encoder thread frame - [100%] [avg time: 85.342 ms]
22:03:20: ==============================================================
22:03:20: 
22:03:20: 
22:03:20: Profiler CPU results:
22:03:20: 
22:03:20: ==============================================================
22:03:20: video thread frame - [cpu time: avg 1.701 ms, total 171.875 ms] [avg calls per frame: 1]
22:03:20: | scene->Preprocess - [cpu time: avg 0.154 ms, total 15.625 ms] [avg calls per frame: 1]
22:03:20: | GPU download and conversion - [cpu time: avg 0.464 ms, total 46.875 ms] [avg calls per frame: 1]
22:03:20: | | flush - [cpu time: avg 0.464 ms, total 46.875 ms] [avg calls per frame: 1]
22:03:20: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:03:20: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:03:20: Convert444Thread - [cpu time: avg 2.13 ms, total 187.5 ms] [avg calls per frame: 1]
22:03:20: | Convert444toNV12 - [cpu time: avg 2.13 ms, total 187.5 ms] [avg calls per frame: 1]
22:03:20: encoder thread frame - [cpu time: avg 2.043 ms, total 484.375 ms] [avg calls per frame: 1]
22:03:20: ==============================================================
22:03:20: 
22:03:20: =====Stream End: 2013-12-04, 22:03:20=================================================
22:03:30: =====Stream Start: 2013-12-04, 22:03:30===============================================
22:03:30:   Multithreaded optimizations: On
22:03:30:   Base resolution: 1366x768
22:03:30:   Output resolution: 1364x768
22:03:30: ------------------------------------------
22:03:30: Loading up D3D10 on Intel(R) HD Graphics...
22:03:30: ------------------------------------------
22:03:30: Audio Format: 44100hz
22:03:30: Playback device Default
22:03:30: ------------------------------------------
22:03:30: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:03:30: ------------------------------------------
22:03:30: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:03:31: ------------------------------------------
22:03:31: Audio Encoding: AAC
22:03:31:     bitrate: 160
22:03:31: Using Monitor Capture
22:03:31: Scene buffering time set to 400
22:03:31: ------------------------------------------
22:03:31: Video Encoding: x264
22:03:31:     fps: 25
22:03:31:     width: 1364, height: 768
22:03:31:     preset: veryfast
22:03:31:     profile: main
22:03:31:     keyint: 50
22:03:31:     CBR: yes
22:03:31:     CFR: yes
22:03:31:     max bitrate: 3500
22:03:31:     buffer size: 3500
22:03:31: ------------------------------------------
22:03:31: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
22:03:32: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 352800, samples per sec is 44100
22:03:37: Using RTMP service: Twitch / Justin.tv
22:03:37:   Server selection: rtmp://live-jfk.justin.tv/app
22:03:37:   Interface: Broadcom NetLink (TM) Gigabit Ethernet (ethernet, 1000 mbps)
22:03:37: Completed handshake with rtmp://live-jfk.justin.tv/app in 243 ms.
22:03:38: SO_SNDBUF was at 65536
22:03:38: SO_SNDBUF is now 65536
22:03:38: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 70172 / 467968)
22:03:43: RTMPPublisher::SocketLoop: Stalled for 2142 ms to write 464774 bytes (buffer: 0 / 467968), unstable connection?
22:03:45: RTMPPublisher::SocketLoop: Stalled for 2160 ms to write 467395 bytes (buffer: 0 / 467968), unstable connection?
22:03:47: RTMPPublisher::SocketLoop: Stalled for 2260 ms to write 465561 bytes (buffer: 0 / 467968), unstable connection?
22:03:51: RTMPPublisher::SocketLoop: Stalled for 3325 ms to write 464925 bytes (buffer: 0 / 467968), unstable connection?
22:03:54: RTMPPublisher::SocketLoop: Stalled for 1890 ms to write 466709 bytes (buffer: 0 / 467968), unstable connection?
22:03:56: RTMPPublisher::SocketLoop: Stalled for 2091 ms to write 467961 bytes (buffer: 0 / 467968), unstable connection?
22:04:01: RTMPPublisher::SocketLoop: Stalled for 1778 ms to write 466492 bytes (buffer: 0 / 467968), unstable connection?
22:04:02: RTMPPublisher::SocketLoop: Stalled for 1570 ms to write 464024 bytes (buffer: 0 / 467968), unstable connection?
22:04:04: RTMPPublisher::SocketLoop: Stalled for 1753 ms to write 467164 bytes (buffer: 0 / 467968), unstable connection?
22:04:06: RTMPPublisher::SocketLoop: Stalled for 1995 ms to write 465853 bytes (buffer: 0 / 467968), unstable connection?
22:04:08: RTMPPublisher::SocketLoop: Stalled for 1844 ms to write 467581 bytes (buffer: 0 / 467968), unstable connection?
22:04:10: RTMPPublisher::SocketLoop: Stalled for 1611 ms to write 465444 bytes (buffer: 0 / 467968), unstable connection?
22:04:17: RTMPPublisher::SocketLoop: Stalled for 1846 ms to write 464289 bytes (buffer: 0 / 467968), unstable connection?
22:04:20: RTMPPublisher::SocketLoop: Stalled for 1718 ms to write 248152 bytes (buffer: 0 / 467968), unstable connection?
22:04:24: RTMPPublisher::SocketLoop: Stalled for 1503 ms to write 330664 bytes (buffer: 0 / 467968), unstable connection?
22:04:27: RTMPPublisher::SocketLoop: Stalled for 1576 ms to write 464086 bytes (buffer: 0 / 467968), unstable connection?
22:04:29: RTMPPublisher::SocketLoop: Stalled for 2042 ms to write 464298 bytes (buffer: 0 / 467968), unstable connection?
22:04:31: RTMPPublisher::SocketLoop: Stalled for 2048 ms to write 228039 bytes (buffer: 0 / 467968), unstable connection?
22:04:37: RTMPPublisher::SocketLoop: Stalled for 3092 ms to write 464774 bytes (buffer: 0 / 467968), unstable connection?
22:04:39: RTMPPublisher::SocketLoop: Stalled for 2335 ms to write 467231 bytes (buffer: 0 / 467968), unstable connection?
22:04:41: RTMPPublisher::SocketLoop: Stalled for 2063 ms to write 466346 bytes (buffer: 0 / 467968), unstable connection?
22:04:43: RTMPPublisher::SocketLoop: Stalled for 2344 ms to write 465047 bytes (buffer: 0 / 467968), unstable connection?
22:04:46: RTMPPublisher::SocketLoop: Stalled for 2106 ms to write 9738 bytes (buffer: 0 / 467968), unstable connection?
22:04:49: RTMPPublisher::SocketLoop: Stalled for 3495 ms to write 15 bytes (buffer: 0 / 467968), unstable connection?
22:04:56: RTMPPublisher::SocketLoop: Stalled for 4991 ms to write 8212 bytes (buffer: 0 / 467968), unstable connection?
22:05:13: RTMPPublisher::SocketLoop: Received FD_CLOSE, 15000 ms since last send (buffer: 0 / 467968)
22:05:13: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 0
22:05:32: Total frames encoded: 1680, total frames duplicated: 1003 (59.70%)
22:05:32: Number of frames skipped due to encoder lag: 956 (56.90%)
22:05:32: Total frames rendered: 714, number of late frames: 8 (1.12%) (it's okay for some frames to be late)
22:05:32: Average send payload: 79782 bytes, average send interval: 339 ms
22:05:32: Number of times waited to send: 37, Waited for a total of 144584 bytes
22:05:32: Number of b-frames dropped: 269 (17%), Number of p-frames dropped: 260 (16%), Total 529 (33%)
22:05:32: Number of bytes sent: 18748947
22:05:32: 
22:05:32: Profiler time results:
22:05:32: 
22:05:32: ==============================================================
22:05:32: video thread frame - [100%] [avg time: 3.672 ms] [children: 65%] [unaccounted: 35%]
22:05:32: | scene->Preprocess - [10.5%] [avg time: 0.387 ms]
22:05:32: | GPU download and conversion - [54.4%] [avg time: 1.999 ms] [children: 24.7%] [unaccounted: 29.7%]
22:05:32: | | flush - [11.1%] [avg time: 0.407 ms]
22:05:32: | | CopyResource - [13.4%] [avg time: 0.492 ms]
22:05:32: | | conversion to 4:2:0 - [0.218%] [avg time: 0.008 ms]
22:05:32: Convert444Thread - [100%] [avg time: 3.133 ms] [children: 98%] [unaccounted: 1.98%]
22:05:32: | Convert444toNV12 - [98%] [avg time: 3.071 ms]
22:05:32: encoder thread frame - [100%] [avg time: 57.023 ms]
22:05:32: ==============================================================
22:05:32: 
22:05:32: 
22:05:32: Profiler CPU results:
22:05:32: 
22:05:32: ==============================================================
22:05:32: video thread frame - [cpu time: avg 1.488 ms, total 1062.5 ms] [avg calls per frame: 1]
22:05:32: | scene->Preprocess - [cpu time: avg 0.131 ms, total 93.75 ms] [avg calls per frame: 1]
22:05:32: | GPU download and conversion - [cpu time: avg 0.306 ms, total 218.75 ms] [avg calls per frame: 1]
22:05:32: | | flush - [cpu time: avg 0.153 ms, total 109.375 ms] [avg calls per frame: 1]
22:05:32: | | CopyResource - [cpu time: avg 0.109 ms, total 78.125 ms] [avg calls per frame: 1]
22:05:32: | | conversion to 4:2:0 - [cpu time: avg 0.022 ms, total 15.625 ms] [avg calls per frame: 1]
22:05:32: Convert444Thread - [cpu time: avg 1.76 ms, total 1250 ms] [avg calls per frame: 1]
22:05:32: | Convert444toNV12 - [cpu time: avg 1.76 ms, total 1250 ms] [avg calls per frame: 1]
22:05:32: encoder thread frame - [cpu time: avg 1.749 ms, total 2921.88 ms] [avg calls per frame: 1]
22:05:32: ==============================================================
22:05:32: 
22:05:32: =====Stream End: 2013-12-04, 22:05:32=================================================
22:05:43: =====Stream Start: 2013-12-04, 22:05:43===============================================
22:05:43:   Multithreaded optimizations: On
22:05:43:   Base resolution: 1366x768
22:05:43:   Output resolution: 1364x768
22:05:43: ------------------------------------------
22:05:43: Loading up D3D10 on Intel(R) HD Graphics...
22:05:43: ------------------------------------------
22:05:43: Audio Format: 44100hz
22:05:43: Playback device Default
22:05:43: ------------------------------------------
22:05:43: Using desktop audio input: Speakers (Realtek High Definition Audio)
22:05:43: ------------------------------------------
22:05:43: Using auxilary audio input: Microphone (Realtek High Definition Audio)
22:05:43: ------------------------------------------
22:05:43: Audio Encoding: AAC
22:05:43:     bitrate: 160
22:05:43: Using Monitor Capture
22:05:43: Scene buffering time set to 400
22:05:43: ------------------------------------------
22:05:43: Video Encoding: x264
22:05:43:     fps: 25
22:05:43:     width: 1364, height: 768
22:05:43:     preset: veryfast
22:05:43:     profile: main
22:05:43:     keyint: 50
22:05:43:     CBR: yes
22:05:43:     CFR: yes
22:05:43:     max bitrate: 3500
22:05:43:     buffer size: 3500
22:05:43: ------------------------------------------
22:05:43: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 384000, samples per sec is 48000
22:05:43: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 352800, samples per sec is 44100
22:05:45: Using RTMP service: Twitch / Justin.tv
22:05:45:   Server selection: rtmp://live-jfk.justin.tv/app
22:05:45:   Interface: Broadcom NetLink (TM) Gigabit Ethernet (ethernet, 1000 mbps)
22:05:45: Completed handshake with rtmp://live-jfk.justin.tv/app in 217 ms.
22:05:46: SO_SNDBUF was at 65536
22:05:46: SO_SNDBUF is now 65536
22:05:48: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 244 / 467968)
22:06:00: RTMPPublisher::SocketLoop: Received FD_CLOSE, 5056 ms since last send (buffer: 0 / 467968)
22:06:00: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 0
22:06:03: Total frames encoded: 242, total frames duplicated: 202 (83.47%)
22:06:03: Number of frames skipped due to encoder lag: 190 (78.51%)
22:06:03: Total frames rendered: 57, number of late frames: 4 (7.02%) (it's okay for some frames to be late)
22:06:03: Average send payload: 18653 bytes, average send interval: 60 ms
22:06:03: Number of times waited to send: 0, Waited for a total of 0 bytes
22:06:03: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:06:03: Number of bytes sent: 2368977
22:06:03: 
22:06:03: Profiler time results:
22:06:03: 
22:06:03: ==============================================================
22:06:03: video thread frame - [100%] [avg time: 9.852 ms] [children: 74.9%] [unaccounted: 25.1%]
22:06:03: | scene->Preprocess - [20.6%] [avg time: 2.028 ms]
22:06:03: | GPU download and conversion - [54.4%] [avg time: 5.355 ms] [children: 7.36%] [unaccounted: 47%]
22:06:03: | | flush - [3.87%] [avg time: 0.381 ms]
22:06:03: | | CopyResource - [3.18%] [avg time: 0.313 ms]
22:06:03: | | conversion to 4:2:0 - [0.315%] [avg time: 0.031 ms]
22:06:03: Convert444Thread - [100%] [avg time: 3.15 ms] [children: 95.3%] [unaccounted: 4.7%]
22:06:03: | Convert444toNV12 - [95.3%] [avg time: 3.002 ms]
22:06:03: encoder thread frame - [100%] [avg time: 77.767 ms]
22:06:03: ==============================================================
22:06:03: 
22:06:03: 
22:06:03: Profiler CPU results:
22:06:03: 
22:06:03: ==============================================================
22:06:03: video thread frame - [cpu time: avg 1.918 ms, total 109.375 ms] [avg calls per frame: 1]
22:06:03: | scene->Preprocess - [cpu time: avg 0.548 ms, total 31.25 ms] [avg calls per frame: 1]
22:06:03: | GPU download and conversion - [cpu time: avg 0.274 ms, total 15.625 ms] [avg calls per frame: 1]
22:06:03: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:06:03: | | CopyResource - [cpu time: avg 0.355 ms, total 15.625 ms] [avg calls per frame: 1]
22:06:03: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
22:06:03: Convert444Thread - [cpu time: avg 1.816 ms, total 78.125 ms] [avg calls per frame: 1]
22:06:03: | Convert444toNV12 - [cpu time: avg 1.816 ms, total 78.125 ms] [avg calls per frame: 1]
22:06:03: encoder thread frame - [cpu time: avg 1.414 ms, total 328.125 ms] [avg calls per frame: 1]
22:06:03: ==============================================================
22:06:03: 
22:06:03: =====Stream End: 2013-12-04, 22:06:03=================================================

If you need any other information, let me know.

Thanks for the help in advance!
 

dodgepong

Administrator
Community Helper
Your CPU is extremely underpowered. There's no way you can record at 768p with it. You're going to need to downscale by at least 2x, if not more, and raise the x264 preset to ultrafast. Even then, the encoding settings might still be too high, since that's a very old processor.
 

Trixz111

New Member
Wow, thanks for the help! Seriously.

It really helped. I can stream flawlessly now with the ultrafast setting and the 2x downscaling. The quality isn't anything to shake a stick at but I can deal with that.

The main reason I didn't touch the x264 preset settings is because OBS told me not to touch them unless I knew what I was doing.


Everything works perfectly! Thanks a bunch!
 
Top