Question / Help lag in my stream.. [fixed]

Dutchtank

New Member
hey everyone!
i recently started streaming, and i always have little lagspikes in my stream, my friends keep telling me it wont go away even if i put the bitrate down to like a 1000.
now i got like 29mb download and 25mb upload,

my computer specs:
Asus M5A99FX Pro R2.0
AMD FX(tm)-8350 Eight-Core Processor
16384MB RAM
NVIDIA GeForce GTX 760
37"inch samsung led TV as my monitor,

i tried streaming, 720p but still the little lagspikes are always there
Also i tried various settings in OBS, still no succes!

if someone knows what im doing wrong, please help me out!

Greetings, Dutchtank!
 

Dutchtank

New Member
Re: lagg in my stream..

sorry, didnt see that! will figure it out right now!

Code:
00:08:57: Open Broadcaster Software v0.584b - 32bit (´・ω・`)
00:08:57: -------------------------------
00:08:57: CPU Name: AMD FX(tm)-8350 Eight-Core Processor
00:08:57: CPU Speed: 4334MHz
00:08:57: Physical Memory:  4095MB Total, 4095MB Free
00:08:57: stepping id: 0, model 2, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 8, total cores 4
00:08:57: monitor 1: pos={0, 0}, size={1920, 1080}
00:08:57: monitor 2: pos={1920, 0}, size={1280, 1024}
00:08:57: Windows Version: 6.1 Build 7601 S
00:08:57: Aero is Enabled
00:08:57: -------------------------------
00:08:57: OBS Modules:
00:08:57: Base Address     Module
00:08:57: 00880000         OBS.exe
00:08:57: 5F610000         OBSApi.dll
00:08:57: 5F8F0000         DShowPlugin.dll
00:08:57: 64410000         GraphicsCapture.dll
00:08:57: 62840000         NoiseGate.dll
00:08:57: 5F8D0000         PSVPlugin.dll
00:08:57: ------------------------------------------
00:08:57: Adapter 1
00:08:57:   Video Adapter: NVIDIA GeForce GTX 760
00:08:57:   Video Adapter Dedicated Video Memory: 2087387136
00:08:57:   Video Adapter Shared System Memory: 2147807232
00:08:57:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
00:08:57:   Video Adapter Output 2: pos={1920, 0}, size={1280, 1024}, attached=true
00:08:57: =====Stream Start: 2013-12-08, 00:08:57===============================================
00:08:57:   Multithreaded optimizations: On
00:08:57:   Base resolution: 1920x1080
00:08:57:   Output resolution: 1280x720
00:08:57: ------------------------------------------
00:08:57: Loading up D3D10 on NVIDIA GeForce GTX 760...
00:08:57: ------------------------------------------
00:08:57: Audio Format: 48000hz
00:08:57: Playback device {0.0.0.00000000}.{cd33ecab-952c-4d54-8aea-6157330dd134}
00:08:57: ------------------------------------------
00:08:57: Using desktop audio input: SAMSUNG-1 (NVIDIA High Definition Audio)
00:08:57: ------------------------------------------
00:08:57: Using auxilary audio input: Microphone (Realtek High Definition Audio)
00:08:57: ------------------------------------------
00:08:57: Audio Encoding: AAC
00:08:57:     bitrate: 128
00:08:57: ------------------------------------------
00:08:57:     device: Logitech HD Webcam C270,
00:08:57:     device id \\?\usb#vid_046d&pid_0825&mi_00#6&57d7a47&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
00:08:57:     chosen type: I420, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000
00:08:57:     use buffering: false - 0, fourCC: 'I420'
00:08:57:     audio device: Disable,
00:08:57:     audio device id Disabled,
00:08:57: 
00:08:57: Using directshow input
00:08:57: Using graphics capture
00:08:57: Scene buffering time set to 700
00:08:58: ------------------------------------------
00:08:58: Video Encoding: x264
00:08:58:     fps: 25
00:08:58:     width: 1280, height: 720
00:08:58:     preset: veryfast
00:08:58:     profile: high
00:08:58:     keyint: 50
00:08:58:     CBR: yes
00:08:58:     CFR: yes
00:08:58:     max bitrate: 1500
00:08:58:     buffer size: 1500
00:08:58: ------------------------------------------
00:08:58: MMDeviceAudioSource: Frequency for device 'SAMSUNG-1 (NVIDIA High Definition Audio)' is 384000, samples per sec is 48000
00:08:58: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 384000, samples per sec is 48000
00:08:58: SharedTexCapture hooked
00:09:00: Using RTMP service: Twitch / Justin.tv
00:09:00:   Server selection: rtmp://live-ams.justin.tv/app
00:09:00:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
00:09:00: Completed handshake with rtmp://live-ams.justin.tv/app in 330 ms.
00:09:02: SO_SNDBUF was at 8192
00:09:02: SO_SNDBUF is now 65536
00:09:04: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 207872)
00:09:06: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 207872)
00:11:41: Total frames encoded: 4060, total frames duplicated: 0 (0.00%)
00:11:41: Total frames rendered: 4063, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
00:11:41: RTMPPublisher::SocketLoop: Graceful loop exit
00:11:41: Average send payload: 5076 bytes, average send interval: 24 ms
00:11:41: Number of times waited to send: 0, Waited for a total of 0 bytes
00:11:41: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
00:11:41: Number of bytes sent: 32364106
00:11:41: 
00:11:41: Profiler time results:
00:11:41: 
00:11:41: ==============================================================
00:11:41: video thread frame - [100%] [avg time: 1.23 ms] [children: 32.5%] [unaccounted: 67.5%]
00:11:41: | scene->Preprocess - [6.83%] [avg time: 0.084 ms]
00:11:41: | GPU download and conversion - [25.7%] [avg time: 0.316 ms] [children: 22%] [unaccounted: 3.66%]
00:11:41: | | flush - [18.5%] [avg time: 0.228 ms]
00:11:41: | | CopyResource - [3.09%] [avg time: 0.038 ms]
00:11:41: | | conversion to 4:2:0 - [0.407%] [avg time: 0.005 ms]
00:11:41: Convert444Threads - [100%] [avg time: 0.641 ms] [children: 98.9%] [unaccounted: 1.09%]
00:11:41: | Convert444toNV12 - [98.9%] [avg time: 0.634 ms]
00:11:41: encoder thread frame - [100%] [avg time: 1.467 ms]
00:11:41: ==============================================================
00:11:41: 
00:11:41: 
00:11:41: Profiler CPU results:
00:11:41: 
00:11:41: ==============================================================
00:11:41: video thread frame - [cpu time: avg 0.518 ms, total 2106.01 ms] [avg calls per frame: 1]
00:11:41: | scene->Preprocess - [cpu time: avg 0.007 ms, total 31.2 ms] [avg calls per frame: 1]
00:11:41: | GPU download and conversion - [cpu time: avg 0.084 ms, total 343.2 ms] [avg calls per frame: 1]
00:11:41: | | flush - [cpu time: avg 0.007 ms, total 31.2 ms] [avg calls per frame: 1]
00:11:41: | | CopyResource - [cpu time: avg 0.027 ms, total 109.2 ms] [avg calls per frame: 1]
00:11:41: | | conversion to 4:2:0 - [cpu time: avg 0.003 ms, total 15.6 ms] [avg calls per frame: 1]
00:11:41: Convert444Threads - [cpu time: avg 0.588 ms, total 4758.03 ms] [avg calls per frame: 2]
00:11:41: | Convert444toNV12 - [cpu time: avg 0.584 ms, total 4726.83 ms] [avg calls per frame: 2]
00:11:41: encoder thread frame - [cpu time: avg 1.03 ms, total 4165.23 ms] [avg calls per frame: 1]
00:11:41: ==============================================================
00:11:41: 
00:11:41: =====Stream End: 2013-12-08, 00:11:41=================================================

well here is a log file of the stream at 1500bitrate and it still gives stutters in the stream.. i really dont know whats wrong, i took it trough the log tool, no errors, and tried the other tool for settings, and everything is allright.

so if anyone can help me!

thanks in advance.
 

Sapiens

Forum Moderator
Re: lagg in my stream..

Based on the log file there was nothing wrong with your stream, which means the stuttering was probably caused by your not being able to get 1500 Kbps from Twitch. Go back and watch your recording/VOD (let it buffer a bit first) - if it looks okay then the stream was okay too.
 

Dutchtank

New Member
Re: lagg in my stream..

ok so i recorded a bit, and i watched it back, and still the stutter is there, i put it at 3000bitrate but according to my internet speed and the settings tool, i should be able to handle that.. so im lost again -_-'
thanks for your help so far :)!
 

Sapiens

Forum Moderator
Re: lagg in my stream..

Could you post the log for the new video you recorded? A link to the VOD would also be good if you were streaming it.
 

Dutchtank

New Member
Re: lagg in my stream..

sure here you go!
Code:
00:23:22: Open Broadcaster Software v0.584b - 32bit (´・ω・`)
00:23:22: -------------------------------
00:23:22: CPU Name: AMD FX(tm)-8350 Eight-Core Processor
00:23:22: CPU Speed: 4334MHz
00:23:22: Physical Memory:  4095MB Total, 4095MB Free
00:23:22: stepping id: 0, model 2, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 8, total cores 4
00:23:22: monitor 1: pos={0, 0}, size={1920, 1080}
00:23:22: monitor 2: pos={1920, 0}, size={1280, 1024}
00:23:22: Windows Version: 6.1 Build 7601 S
00:23:22: Aero is Enabled
00:23:22: -------------------------------
00:23:22: OBS Modules:
00:23:22: Base Address     Module
00:23:22: 00C80000         OBS.exe
00:23:22: 5F4E0000         OBSApi.dll
00:23:22: 5F2A0000         DShowPlugin.dll
00:23:22: 62840000         GraphicsCapture.dll
00:23:22: 5F280000         NoiseGate.dll
00:23:22: 5F260000         PSVPlugin.dll
00:23:22: ------------------------------------------
00:23:22: Adapter 1
00:23:22:   Video Adapter: NVIDIA GeForce GTX 760
00:23:22:   Video Adapter Dedicated Video Memory: 2087387136
00:23:22:   Video Adapter Shared System Memory: 2147807232
00:23:22:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
00:23:22:   Video Adapter Output 2: pos={1920, 0}, size={1280, 1024}, attached=true
00:23:22: =====Stream Start: 2013-12-08, 00:23:22===============================================
00:23:22:   Multithreaded optimizations: On
00:23:22:   Base resolution: 1920x1080
00:23:22:   Output resolution: 1280x720
00:23:22: ------------------------------------------
00:23:22: Loading up D3D10 on NVIDIA GeForce GTX 760...
00:23:22: ------------------------------------------
00:23:22: Audio Format: 48000hz
00:23:22: Playback device {0.0.0.00000000}.{cd33ecab-952c-4d54-8aea-6157330dd134}
00:23:22: ------------------------------------------
00:23:22: Using desktop audio input: SAMSUNG-1 (NVIDIA High Definition Audio)
00:23:22: ------------------------------------------
00:23:22: Using auxilary audio input: Microphone (Realtek High Definition Audio)
00:23:22: ------------------------------------------
00:23:22: Audio Encoding: AAC
00:23:22:     bitrate: 128
00:23:22: ------------------------------------------
00:23:22:     device: Logitech HD Webcam C270,
00:23:22:     device id \\?\usb#vid_046d&pid_0825&mi_00#6&57d7a47&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
00:23:22:     chosen type: I420, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000
00:23:22:     use buffering: false - 0, fourCC: 'I420'
00:23:22:     audio device: Disable,
00:23:22:     audio device id Disabled,
00:23:22: 
00:23:22: Using directshow input
00:23:23: Using graphics capture
00:23:23: Scene buffering time set to 700
00:23:23: ------------------------------------------
00:23:23: Video Encoding: x264
00:23:23:     fps: 25
00:23:23:     width: 1280, height: 720
00:23:23:     preset: veryfast
00:23:23:     profile: high
00:23:23:     keyint: 50
00:23:23:     CBR: yes
00:23:23:     CFR: yes
00:23:23:     max bitrate: 3200
00:23:23:     buffer size: 3200
00:23:23: ------------------------------------------
00:23:23: MMDeviceAudioSource: Frequency for device 'SAMSUNG-1 (NVIDIA High Definition Audio)' is 384000, samples per sec is 48000
00:23:23: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 384000, samples per sec is 48000
00:23:23: SharedTexCapture hooked
00:23:26: Using RTMP service: Twitch / Justin.tv
00:23:26:   Server selection: rtmp://live-ams.justin.tv/app
00:23:26:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
00:23:26: Completed handshake with rtmp://live-ams.justin.tv/app in 355 ms.
00:23:28: SO_SNDBUF was at 8192
00:23:28: SO_SNDBUF is now 65536
00:23:35: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 425984)
00:23:53: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 425984)
00:24:52: Total frames encoded: 2192, total frames duplicated: 0 (0.00%)
00:24:52: Total frames rendered: 2195, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
00:24:52: RTMPPublisher::SocketLoop: Graceful loop exit
00:24:53: Average send payload: 7595 bytes, average send interval: 18 ms
00:24:53: Number of times waited to send: 0, Waited for a total of 0 bytes
00:24:53: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
00:24:53: Number of bytes sent: 35045815
00:24:53: 
00:24:53: Profiler time results:
00:24:53: 
00:24:53: ==============================================================
00:24:53: video thread frame - [100%] [avg time: 1.17 ms] [children: 29.1%] [unaccounted: 70.9%]
00:24:53: | scene->Preprocess - [7.26%] [avg time: 0.085 ms]
00:24:53: | GPU download and conversion - [21.9%] [avg time: 0.256 ms] [children: 19%] [unaccounted: 2.91%]
00:24:53: | | flush - [16.5%] [avg time: 0.193 ms]
00:24:53: | | CopyResource - [2.05%] [avg time: 0.024 ms]
00:24:53: | | conversion to 4:2:0 - [0.427%] [avg time: 0.005 ms]
00:24:53: Convert444Threads - [100%] [avg time: 0.61 ms] [children: 98.9%] [unaccounted: 1.15%]
00:24:53: | Convert444toNV12 - [98.9%] [avg time: 0.603 ms]
00:24:53: encoder thread frame - [100%] [avg time: 1.444 ms]
00:24:53: ==============================================================
00:24:53: 
00:24:53: 
00:24:53: Profiler CPU results:
00:24:53: 
00:24:53: ==============================================================
00:24:53: video thread frame - [cpu time: avg 0.461 ms, total 1014.01 ms] [avg calls per frame: 1]
00:24:53: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:24:53: | GPU download and conversion - [cpu time: avg 0.021 ms, total 46.8 ms] [avg calls per frame: 1]
00:24:53: | | flush - [cpu time: avg 0.014 ms, total 31.2 ms] [avg calls per frame: 1]
00:24:53: | | CopyResource - [cpu time: avg 0.007 ms, total 15.6 ms] [avg calls per frame: 1]
00:24:53: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:24:53: Convert444Threads - [cpu time: avg 0.609 ms, total 2652.02 ms] [avg calls per frame: 2]
00:24:53: | Convert444toNV12 - [cpu time: avg 0.606 ms, total 2636.42 ms] [avg calls per frame: 2]
00:24:53: encoder thread frame - [cpu time: avg 0.975 ms, total 2121.61 ms] [avg calls per frame: 1]
00:24:53: ==============================================================
00:24:53: 
00:24:53: =====Stream End: 2013-12-08, 00:24:53=================================================
00:31:37: =====Stream Start: 2013-12-08, 00:31:37===============================================
00:31:37:   Multithreaded optimizations: On
00:31:37:   Base resolution: 1920x1080
00:31:37:   Output resolution: 1280x720
00:31:37: ------------------------------------------
00:31:37: Loading up D3D10 on NVIDIA GeForce GTX 760...
00:31:37: ------------------------------------------
00:31:37: Audio Format: 48000hz
00:31:37: Playback device {0.0.0.00000000}.{cd33ecab-952c-4d54-8aea-6157330dd134}
00:31:37: ------------------------------------------
00:31:37: Using desktop audio input: SAMSUNG-1 (NVIDIA High Definition Audio)
00:31:37: ------------------------------------------
00:31:37: Using auxilary audio input: Microphone (Realtek High Definition Audio)
00:31:37: ------------------------------------------
00:31:37: Audio Encoding: AAC
00:31:37:     bitrate: 128
00:31:37: ------------------------------------------
00:31:37:     device: Logitech HD Webcam C270,
00:31:37:     device id \\?\usb#vid_046d&pid_0825&mi_00#6&57d7a47&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
00:31:37:     chosen type: I420, usingFourCC: false, res: 352x288 - 352x288, frameIntervals: 333333-2000000
00:31:37:     use buffering: false - 0, fourCC: 'I420'
00:31:37:     audio device: Disable,
00:31:37:     audio device id Disabled,
00:31:37: 
00:31:37: Using directshow input
00:31:38: Using graphics capture
00:31:38: Scene buffering time set to 700
00:31:38: ------------------------------------------
00:31:38: Video Encoding: x264
00:31:38:     fps: 25
00:31:38:     width: 1280, height: 720
00:31:38:     preset: veryfast
00:31:38:     profile: high
00:31:38:     keyint: 50
00:31:38:     CBR: yes
00:31:38:     CFR: yes
00:31:38:     max bitrate: 3000
00:31:38:     buffer size: 3000
00:31:38: ------------------------------------------
00:31:38: MMDeviceAudioSource: Frequency for device 'SAMSUNG-1 (NVIDIA High Definition Audio)' is 384000, samples per sec is 48000
00:31:38: MMDeviceAudioSource: Frequency for device 'Microphone (Realtek High Definition Audio)' is 384000, samples per sec is 48000
00:31:38: SharedTexCapture hooked
00:31:40: Using RTMP service: Twitch / Justin.tv
00:31:40:   Server selection: rtmp://live-ams.justin.tv/app
00:31:40:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
00:31:41: Completed handshake with rtmp://live-ams.justin.tv/app in 347 ms.
00:31:42: SO_SNDBUF was at 8192
00:31:42: SO_SNDBUF is now 65536
00:31:43: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 400384)
00:31:44: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 400384)
00:32:47: Total frames encoded: 1713, total frames duplicated: 0 (0.00%)
00:32:47: Total frames rendered: 1717, number of late frames: 1 (0.06%) (it's okay for some frames to be late)
00:32:47: RTMPPublisher::SocketLoop: Graceful loop exit
00:32:48: Average send payload: 7954 bytes, average send interval: 20 ms
00:32:48: Number of times waited to send: 0, Waited for a total of 0 bytes
00:32:48: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
00:32:48: Number of bytes sent: 25484693
00:32:48: 
00:32:48: Profiler time results:
00:32:48: 
00:32:48: ==============================================================
00:32:48: video thread frame - [100%] [avg time: 1.16 ms] [children: 27.5%] [unaccounted: 72.5%]
00:32:48: | scene->Preprocess - [6.64%] [avg time: 0.077 ms]
00:32:48: | GPU download and conversion - [20.9%] [avg time: 0.242 ms] [children: 17.4%] [unaccounted: 3.45%]
00:32:48: | | flush - [14.4%] [avg time: 0.167 ms]
00:32:48: | | CopyResource - [2.59%] [avg time: 0.03 ms]
00:32:48: | | conversion to 4:2:0 - [0.431%] [avg time: 0.005 ms]
00:32:48: Convert444Threads - [100%] [avg time: 0.624 ms] [children: 98.7%] [unaccounted: 1.28%]
00:32:48: | Convert444toNV12 - [98.7%] [avg time: 0.616 ms]
00:32:48: encoder thread frame - [100%] [avg time: 1.466 ms]
00:32:48: ==============================================================
00:32:48: 
00:32:48: 
00:32:48: Profiler CPU results:
00:32:48: 
00:32:48: ==============================================================
00:32:48: video thread frame - [cpu time: avg 0.517 ms, total 889.205 ms] [avg calls per frame: 1]
00:32:48: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:32:48: | GPU download and conversion - [cpu time: avg 0.063 ms, total 109.2 ms] [avg calls per frame: 1]
00:32:48: | | flush - [cpu time: avg 0.018 ms, total 31.2 ms] [avg calls per frame: 1]
00:32:48: | | CopyResource - [cpu time: avg 0.027 ms, total 46.8 ms] [avg calls per frame: 1]
00:32:48: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:32:48: Convert444Threads - [cpu time: avg 0.579 ms, total 1965.61 ms] [avg calls per frame: 2]
00:32:48: | Convert444toNV12 - [cpu time: avg 0.57 ms, total 1934.41 ms] [avg calls per frame: 2]
00:32:48: encoder thread frame - [cpu time: avg 0.975 ms, total 1653.61 ms] [avg calls per frame: 1]
00:32:48: ==============================================================
00:32:48: 
00:32:48: =====Stream End: 2013-12-08, 00:32:48=================================================

and here the link to the video!
http://www.twitch.tv/dutchtank/b/485727144
just moving around a bit, but i keep getting small stutters..
 

Sapiens

Forum Moderator
Re: lagg in my stream..

The log file is clean and I don't see any stutter in that video. It sounds like this might be a playback issue on your end.
 

Dutchtank

New Member
Re: lagg in my stream..

well then I thank you very much for your help! and i will see if i can figure out whats happening with watching the vids then :D

can i close this myself or?

thanks!
 
Top