Question / Help Help me with settings? Dropping frames

Afflictedtran

New Member
Before the past couple of updates, my stream would be laggy but at least it would still run.
Now, it tells me taking too long to encode, dropping frames. And it would just freeze while I'm streaming.

http://www.twitch.tv/afflictedtran/b/481817759 - recent stream

Code:
11:57:59: Open Broadcaster Software v0.584b - 32bit (´・ω・`)
11:57:59: -------------------------------
11:57:59: CPU Name: Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz
11:57:59: CPU Speed: 2493MHz
11:57:59: Physical Memory:  4094MB Total, 993MB Free
11:57:59: stepping id: 6, model 23, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 2, total cores 2
11:57:59: monitor 1: pos={0, 0}, size={1280, 1024}
11:57:59: Windows Version: 6.0 Build 6002 S
11:57:59: Aero is Disabled
11:57:59: -------------------------------
11:57:59: OBS Modules:
11:57:59: Base Address     Module
11:57:59: 002D0000         OBS.exe
11:57:59: 69B00000         OBSApi.dll
11:57:59: 70E30000         DShowPlugin.dll
11:57:59: 70B60000         GraphicsCapture.dll
11:57:59: 70B40000         NoiseGate.dll
11:57:59: 70710000         PSVPlugin.dll
11:57:59: ------------------------------------------
11:57:59: Adapter 1
11:57:59:   Video Adapter: ATI Radeon HD 5570
11:57:59:   Video Adapter Dedicated Video Memory: 1063727104
11:57:59:   Video Adapter Shared System Memory: 1878618112
11:57:59:   Video Adapter Output 1: pos={0, 0}, size={1280, 1024}, attached=true
11:57:59: =====Stream Start: 2013-11-21, 11:57:59===============================================
11:57:59:   Multithreaded optimizations: On
11:57:59:   Base resolution: 1280x1024
11:57:59:   Output resolution: 852x682
11:57:59: ------------------------------------------
11:57:59: Loading up D3D10 on ATI Radeon HD 5570...
11:58:00: ------------------------------------------
11:58:00: Audio Format: 48000hz
11:58:00: Playback device {0.0.0.00000000}.{71f65fce-6231-468e-beb3-59a046e5da30}
11:58:00: ------------------------------------------
11:58:00: Using desktop audio input: Speakers (Realtek High Definition Audio)
11:58:00: Using 5.1 speaker setup
11:58:00: ------------------------------------------
11:58:00: Using auxilary audio input: Microphone (Realtek High Definition Audio)
11:58:01: ------------------------------------------
11:58:01: Audio Encoding: AAC
11:58:01:     bitrate: 128
11:58:01: Using Window Capture
11:58:01: Using Window Capture
11:58:01: Scene buffering time set to 400
11:58:01: ------------------------------------------
11:58:01: Video Encoding: x264
11:58:01:     fps: 30
11:58:01:     width: 852, height: 682
11:58:01:     preset: veryfast
11:58:01:     profile: high
11:58:01:     keyint: 60
11:58:01:     CBR: yes
11:58:01:     CFR: no
11:58:01:     max bitrate: 3000
11:58:01:     buffer size: 3000
11:58:01: ------------------------------------------
11:58:01: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 1152000, samples per sec is 48000
11:58:01: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 768000, samples per sec is 96000
11:58:03: Using RTMP service: Twitch / Justin.tv
11:58:03:   Server selection: rtmp://live-dfw.justin.tv/app
11:58:03:   Interface: Realtek RTL8102E Family PCI-E Fast Ethernet NIC (NDIS 6.0) (ethernet, 100 mbps)
11:58:03: Completed handshake with rtmp://live-dfw.justin.tv/app in 129 ms.
11:58:04: SO_SNDBUF was at 8192
11:58:04: SO_SNDBUF is now 65536
12:07:44: RTMPPublisher::SocketLoop: Stalled for 3103 ms to write 25431 bytes (buffer: 0 / 400384), unstable connection?
12:26:58: Total frames encoded: 48565, total frames duplicated: 47199 (97.19%)
12:26:58: Number of frames skipped due to encoder lag: 46701 (96.16%)
12:26:58: Total frames rendered: 1702, number of late frames: 134 (7.87%) (it's okay for some frames to be late)
12:26:58: RTMPPublisher::SocketLoop: Graceful loop exit
12:26:59: Average send payload: 11084 bytes, average send interval: 30 ms
12:26:59: Number of times waited to send: 6, Waited for a total of 21616 bytes
12:26:59: Number of b-frames dropped: 15 (0.031%), Number of p-frames dropped: 14 (0.029%), Total 29 (0.06%)
12:26:59: Number of bytes sent: 633122753
12:26:59: 
12:26:59: Profiler time results:
12:26:59: 
12:26:59: ==============================================================
12:26:59: video thread frame - [100%] [avg time: 25.954 ms] [children: 77.7%] [unaccounted: 22.3%]
12:26:59: | scene->Preprocess - [73.1%] [avg time: 18.972 ms]
12:26:59: | GPU download and conversion - [4.59%] [avg time: 1.19 ms] [children: 4.27%] [unaccounted: 0.312%]
12:26:59: | | flush - [3.31%] [avg time: 0.858 ms]
12:26:59: | | CopyResource - [0.905%] [avg time: 0.235 ms]
12:26:59: | | conversion to 4:2:0 - [0.0616%] [avg time: 0.016 ms]
12:26:59: Convert444Thread - [100%] [avg time: 2.827 ms] [children: 98.5%] [unaccounted: 1.52%]
12:26:59: | Convert444toNV12 - [98.5%] [avg time: 2.784 ms]
12:26:59: encoder thread frame - [100%] [avg time: 34.66 ms]
12:26:59: ==============================================================
12:26:59: 
12:26:59: 
12:26:59: Profiler CPU results:
12:26:59: 
12:26:59: ==============================================================
12:26:59: video thread frame - [cpu time: avg 15.27 ms, total 25989.8 ms] [avg calls per frame: 1]
12:26:59: | scene->Preprocess - [cpu time: avg 12.107 ms, total 20607.7 ms] [avg calls per frame: 1]
12:26:59: | GPU download and conversion - [cpu time: avg 0.174 ms, total 296.4 ms] [avg calls per frame: 1]
12:26:59: | | flush - [cpu time: avg 0.128 ms, total 218.4 ms] [avg calls per frame: 1]
12:26:59: | | CopyResource - [cpu time: avg 0.018 ms, total 31.2 ms] [avg calls per frame: 1]
12:26:59: | | conversion to 4:2:0 - [cpu time: avg 0.009 ms, total 15.6 ms] [avg calls per frame: 1]
12:26:59: Convert444Thread - [cpu time: avg 2.515 ms, total 4258.83 ms] [avg calls per frame: 1]
12:26:59: | Convert444toNV12 - [cpu time: avg 2.506 ms, total 4243.23 ms] [avg calls per frame: 1]
12:26:59: encoder thread frame - [cpu time: avg 2.227 ms, total 108140 ms] [avg calls per frame: 1]
12:26:59: ==============================================================
12:26:59: 
12:26:59: =====Stream End: 2013-11-21, 12:26:59=================================================
12:29:45: =====Stream Start: 2013-11-21, 12:29:45===============================================
12:29:45:   Multithreaded optimizations: On
12:29:45:   Base resolution: 1280x1024
12:29:45:   Output resolution: 852x682
12:29:45: ------------------------------------------
12:29:45: Loading up D3D10 on ATI Radeon HD 5570...
12:29:45: ------------------------------------------
12:29:45: Audio Format: 48000hz
12:29:45: Playback device {0.0.0.00000000}.{71f65fce-6231-468e-beb3-59a046e5da30}
12:29:45: ------------------------------------------
12:29:45: Using desktop audio input: Speakers (Realtek High Definition Audio)
12:29:45: Using 5.1 speaker setup
12:29:45: ------------------------------------------
12:29:45: Using auxilary audio input: Microphone (Realtek High Definition Audio)
12:29:45: ------------------------------------------
12:29:45: Audio Encoding: AAC
12:29:45:     bitrate: 128
12:29:45: Using Window Capture
12:29:45: Using Window Capture
12:29:45: Scene buffering time set to 400
12:29:45: ------------------------------------------
12:29:45: Video Encoding: x264
12:29:45:     fps: 30
12:29:45:     width: 852, height: 682
12:29:45:     preset: veryfast
12:29:45:     profile: high
12:29:45:     keyint: 60
12:29:45:     CBR: yes
12:29:45:     CFR: no
12:29:45:     max bitrate: 1000
12:29:45:     buffer size: 1000
12:29:45: ------------------------------------------
12:29:45: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 1152000, samples per sec is 48000
12:29:45: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 768000, samples per sec is 96000
12:32:56: Total frames encoded: 5712, total frames duplicated: 1135 (19.87%)
12:32:56: Number of frames skipped due to encoder lag: 140 (2.45%)
12:32:56: Total frames rendered: 5498, number of late frames: 73 (1.33%) (it's okay for some frames to be late)
12:32:56: 
12:32:56: Profiler time results:
12:32:56: 
12:32:56: ==============================================================
12:32:56: video thread frame - [100%] [avg time: 18.321 ms] [children: 80.2%] [unaccounted: 19.8%]
12:32:56: | scene->Preprocess - [77.6%] [avg time: 14.224 ms]
12:32:56: | GPU download and conversion - [2.54%] [avg time: 0.465 ms] [children: 2.1%] [unaccounted: 0.442%]
12:32:56: | | flush - [1.69%] [avg time: 0.309 ms]
12:32:56: | | CopyResource - [0.273%] [avg time: 0.05 ms]
12:32:56: | | conversion to 4:2:0 - [0.136%] [avg time: 0.025 ms]
12:32:56: Convert444Thread - [100%] [avg time: 2.653 ms] [children: 99.3%] [unaccounted: 0.678%]
12:32:56: | Convert444toNV12 - [99.3%] [avg time: 2.635 ms]
12:32:56: encoder thread frame - [100%] [avg time: 5.374 ms]
12:32:56: ==============================================================
12:32:56: 
12:32:56: 
12:32:56: Profiler CPU results:
12:32:56: 
12:32:56: ==============================================================
12:32:56: video thread frame - [cpu time: avg 14.377 ms, total 79045.7 ms] [avg calls per frame: 1]
12:32:56: | scene->Preprocess - [cpu time: avg 11.69 ms, total 64272.4 ms] [avg calls per frame: 1]
12:32:56: | GPU download and conversion - [cpu time: avg 0.198 ms, total 1092 ms] [avg calls per frame: 1]
12:32:56: | | flush - [cpu time: avg 0.144 ms, total 795.602 ms] [avg calls per frame: 1]
12:32:56: | | CopyResource - [cpu time: avg 0.025 ms, total 140.401 ms] [avg calls per frame: 1]
12:32:56: | | conversion to 4:2:0 - [cpu time: avg 0.005 ms, total 31.2 ms] [avg calls per frame: 1]
12:32:56: Convert444Thread - [cpu time: avg 2.353 ms, total 12901.3 ms] [avg calls per frame: 1]
12:32:56: | Convert444toNV12 - [cpu time: avg 2.342 ms, total 12838.9 ms] [avg calls per frame: 1]
12:32:56: encoder thread frame - [cpu time: avg 2.093 ms, total 11934.1 ms] [avg calls per frame: 1]
12:32:56: ==============================================================
12:32:56: 
12:32:56: =====Stream End: 2013-11-21, 12:32:56=================================================
 

Boildown

Active Member
Your Pentium Dual-Core E5200 @ 2.50GHz can't keep up with the encoding tasks you're giving it while playing your game at the same time. And its really not even close, your CPU is so slow its barely encoding any frames at all.

First, use a faster preset, your only two options faster than Very Fast are SuperFast or UltraFast. I suggest UltraFast.

Second, use a larger downscaler, to make your stream resolution smaller. You should probably max out the downscale at 3.0.

Third, lower your stream framerate to 15 FPS.

Fourth, set all your audio devices to the same Hz, you have one of them at 96000 and you're streaming at 48000. I'd just set them all to 44100, but alternatively set them all to 48000. You don't want to make OBS do more work than it has to by having it translate from one audio format to another.

Set your stream bitrate a lot smaller because your stream resolution is smaller if you take my advise above. I'd try 1000 for starters, and that may be high.

If you do this and it still lags, then post a new log, but chances are your CPU is just too slow. If it handles it, you may be able to increase the settings back a little (go a little at a time).
 

Afflictedtran

New Member
Boildown said:
Your Pentium Dual-Core E5200 @ 2.50GHz can't keep up with the encoding tasks you're giving it while playing your game at the same time. And its really not even close, your CPU is so slow its barely encoding any frames at all.

First, use a faster preset, your only two options faster than Very Fast are SuperFast or UltraFast. I suggest UltraFast.

Second, use a larger downscaler, to make your stream resolution smaller. You should probably max out the downscale at 3.0.

Third, lower your stream framerate to 15 FPS.

Fourth, set all your audio devices to the same Hz, you have one of them at 96000 and you're streaming at 48000. I'd just set them all to 44100, but alternatively set them all to 48000. You don't want to make OBS do more work than it has to by having it translate from one audio format to another.

Set your stream bitrate a lot smaller because your stream resolution is smaller if you take my advise above. I'd try 1000 for starters, and that may be high.

If you do this and it still lags, then post a new log, but chances are your CPU is just too slow. If it handles it, you may be able to increase the settings back a little (go a little at a time).

Doing none of those helped. A mod in a previous thread said something about my dual core processor?

http://uk.pcpartpicker.com/part/amd-cpu-fd8320frhkbox Would this one allow me to stream?
 
Top