Question / Help Lag spikes in stream. + Bad quality.

Tozzy

New Member
Ill start by posting the Specs on my Laptop I am streaming from.
6qa0j8.png

I use a 1500 Bit rate but when Stream I get massive amounts of lag spikes... Is it something to do with my CPU? If so is there anyway I can fix this? Btw I am using an Elgato HD to stream
 

Tozzy

New Member
Here is a LOG from earlier
Code:
14:31:33: Open Broadcaster Software v0.592b - 32bit (´・ω・`)
14:31:33: -------------------------------
14:31:33: CPU Name: AMD A10-4600M APU with Radeon(tm) HD Graphics
14:31:33: CPU Speed: 2296MHz
14:31:33: Physical Memory:  4095MB Total, 4095MB Free
14:31:33: stepping id: 1, model 16, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 4, total cores 4
14:31:33: monitor 1: pos={0, 0}, size={1366, 768}
14:31:33: Windows Version: 6.2 Build 9200 
14:31:33: Aero is Enabled
14:31:33: -------------------------------
14:31:33: OBS Modules:
14:31:33: Base Address     Module
14:31:33: 00D00000         OBS.exe
14:31:33: 6A690000         OBSApi.dll
14:31:33: 6D7A0000         DShowPlugin.dll
14:31:33: 6C0A0000         GraphicsCapture.dll
14:31:33: 6BFB0000         NoiseGate.dll
14:31:33: 6BF90000         PSVPlugin.dll
14:31:33: ------------------------------------------
14:31:33: Adapter 1
14:31:33:   Video Adapter: AMD Radeon HD 7660G
14:31:33:   Video Adapter Dedicated Video Memory: 501669888
14:31:33:   Video Adapter Shared System Memory: 3742502912
14:31:33:   Video Adapter Output 1: pos={0, 0}, size={1366, 768}, attached=true
14:31:33: =====Stream Start: 2014-01-01, 14:31:33===============================================
14:31:33:   Multithreaded optimizations: On
14:31:33:   Base resolution: 1280x720
14:31:33:   Output resolution: 1280x720
14:31:33: ------------------------------------------
14:31:33: Loading up D3D10 on AMD Radeon HD 7660G (Adapter 1)...
14:31:33: ------------------------------------------
14:31:33: Audio Format: 48000hz
14:31:33: Playback device {0.0.0.00000000}.{23c33722-6375-43d4-904e-92260ccc70f6}
14:31:33: ------------------------------------------
14:31:33: Using desktop audio input: Speakers and Headphones (IDT High Definition Audio CODEC)
14:31:33: ------------------------------------------
14:31:33: Using auxilary audio input: Internal Mic (IDT High Definition Audio CODEC)
14:31:34: ------------------------------------------
14:31:34: Audio Encoding: AAC
14:31:34:     bitrate: 128
14:31:34: ------------------------------------------
14:31:34:     device: Elgato Game Capture HD,
14:31:34:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
14:31:34:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333
14:31:34:     use buffering: false - 0, fourCC: 'UYVY'
14:31:34: 
14:31:34:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
14:31:34: Using directshow input
14:31:34: Scene buffering time set to 700
14:31:35: ------------------------------------------
14:31:35: Video Encoding: x264
14:31:35:     fps: 30
14:31:35:     width: 1280, height: 720
14:31:35:     preset: veryfast
14:31:35:     profile: main
14:31:35:     keyint: 60
14:31:35:     CBR: yes
14:31:35:     CFR: yes
14:31:35:     max bitrate: 1500
14:31:35:     buffer size: 1500
14:31:35: ------------------------------------------
14:31:35: MMDeviceAudioSource: Frequency for device 'Speakers and Headphones (IDT High Definition Audio CODEC)' is 384000, samples per sec is 48000
14:31:35: MMDeviceAudioSource: Frequency for device 'Internal Mic (IDT High Definition Audio CODEC)' is 384000, samples per sec is 48000
14:31:35: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
14:31:38: Using RTMP service: Twitch / Justin.tv
14:31:38:   Server selection: rtmp://live-jfk.justin.tv/app
14:31:38:   Interface: Ralink RT3290 802.11bgn Wi-Fi Adapter (802.11, 375 mbps)
14:31:38: Completed handshake with rtmp://live-jfk.justin.tv/app in 221 ms.
14:31:39: SO_SNDBUF was at 65536
14:31:39: SO_SNDBUF is now 65536
14:32:48: Total frames encoded: 2164, total frames duplicated: 1106 (51.11%)
14:32:48: Number of frames skipped due to encoder lag: 1056 (48.80%)
14:32:48: Total frames rendered: 1097, number of late frames: 23 (2.10%) (it's okay for some frames to be late)
14:32:49: RTMPPublisher::SocketLoop: Graceful loop exit
14:32:49: Average send payload: 6051 bytes, average send interval: 29 ms
14:32:49: Number of times waited to send: 4, Waited for a total of 16400 bytes
14:32:49: Number of b-frames dropped: 9 (0.44%), Number of p-frames dropped: 9 (0.44%), Total 18 (0.87%)
14:32:49: Number of bytes sent: 14015614
14:32:58: 
14:32:58: Profiler time results:
14:32:58: 
14:32:58: ==============================================================
14:32:58: video thread frame - [100%] [avg time: 4.578 ms] [children: 97.7%] [unaccounted: 2.29%]
14:32:58: | scene->Preprocess - [50.4%] [avg time: 2.306 ms]
14:32:58: | GPU download and conversion - [47.3%] [avg time: 2.167 ms] [children: 44%] [unaccounted: 3.34%]
14:32:58: | | flush - [37.8%] [avg time: 1.732 ms]
14:32:58: | | CopyResource - [5.92%] [avg time: 0.271 ms]
14:32:58: | | conversion to 4:2:0 - [0.24%] [avg time: 0.011 ms]
14:32:58: Convert444Threads - [100%] [avg time: 0.97 ms] [children: 97.6%] [unaccounted: 2.37%]
14:32:58: | Convert444toNV12 - [97.6%] [avg time: 0.947 ms]
14:32:58: encoder thread frame - [100%] [avg time: 19.371 ms]
14:32:58: ==============================================================
14:32:58: 
14:32:58: 
14:32:58: Profiler CPU results:
14:32:58: 
14:32:58: ==============================================================
14:32:58: video thread frame - [cpu time: avg 1.564 ms, total 1716.01 ms] [avg calls per frame: 1]
14:32:58: | scene->Preprocess - [cpu time: avg 1.222 ms, total 1341.61 ms] [avg calls per frame: 1]
14:32:58: | GPU download and conversion - [cpu time: avg 0.227 ms, total 249.601 ms] [avg calls per frame: 1]
14:32:58: | | flush - [cpu time: avg 0.213 ms, total 234 ms] [avg calls per frame: 1]
14:32:58: | | CopyResource - [cpu time: avg 0.014 ms, total 15.601 ms] [avg calls per frame: 1]
14:32:58: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:32:58: Convert444Threads - [cpu time: avg 0.799 ms, total 1716.01 ms] [avg calls per frame: 2]
14:32:58: | Convert444toNV12 - [cpu time: avg 0.777 ms, total 1669.21 ms] [avg calls per frame: 2]
14:32:58: encoder thread frame - [cpu time: avg 2.198 ms, total 4711.23 ms] [avg calls per frame: 1]
14:32:58: ==============================================================
14:32:58: 
14:32:58: =====Stream End: 2014-01-01, 14:32:58=================================================
14:33:25: =====Stream Start: 2014-01-01, 14:33:25===============================================
14:33:25:   Multithreaded optimizations: On
14:33:25:   Base resolution: 1280x720
14:33:25:   Output resolution: 1280x720
14:33:25: ------------------------------------------
14:33:25: Loading up D3D10 on AMD Radeon HD 7660G (Adapter 1)...
14:33:25: ------------------------------------------
14:33:25: Audio Format: 48000hz
14:33:25: Playback device {0.0.0.00000000}.{23c33722-6375-43d4-904e-92260ccc70f6}
14:33:25: ------------------------------------------
14:33:25: Using desktop audio input: Speakers and Headphones (IDT High Definition Audio CODEC)
14:33:25: ------------------------------------------
14:33:25: Using auxilary audio input: Internal Mic (IDT High Definition Audio CODEC)
14:33:25: ------------------------------------------
14:33:25: Audio Encoding: AAC
14:33:25:     bitrate: 128
14:33:25: ------------------------------------------
14:33:25:     device: Elgato Game Capture HD,
14:33:25:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
14:33:25:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333
14:33:25:     use buffering: false - 0, fourCC: 'UYVY'
14:33:25: 
14:33:25:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
14:33:26: Using directshow input
14:33:26: Scene buffering time set to 700
14:33:26: ------------------------------------------
14:33:26: Video Encoding: x264
14:33:26:     fps: 30
14:33:26:     width: 1280, height: 720
14:33:26:     preset: superfast
14:33:26:     profile: main
14:33:26:     keyint: 60
14:33:26:     CBR: yes
14:33:26:     CFR: yes
14:33:26:     max bitrate: 1500
14:33:26:     buffer size: 1500
14:33:26: ------------------------------------------
14:33:26: MMDeviceAudioSource: Frequency for device 'Speakers and Headphones (IDT High Definition Audio CODEC)' is 384000, samples per sec is 48000
14:33:26: MMDeviceAudioSource: Frequency for device 'Internal Mic (IDT High Definition Audio CODEC)' is 384000, samples per sec is 48000
14:33:26: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
14:33:28: Using RTMP service: Twitch / Justin.tv
14:33:28:   Server selection: rtmp://live-iad.justin.tv/app
14:33:28:   Interface: Ralink RT3290 802.11bgn Wi-Fi Adapter (802.11, 375 mbps)
14:33:29: Completed handshake with rtmp://live-iad.justin.tv/app in 266 ms.
14:33:29: SO_SNDBUF was at 65536
14:33:29: SO_SNDBUF is now 65536
14:37:01: RTMPPublisher::SocketLoop: Stalled for 1991 ms to write 207464 bytes (buffer: 0 / 207872), unstable connection?
14:37:15: RTMPPublisher::SocketLoop: Stalled for 1635 ms to write 204992 bytes (buffer: 0 / 207872), unstable connection?
14:42:37: RTMPPublisher::SocketLoop: Stalled for 1751 ms to write 3141 bytes (buffer: 0 / 207872), unstable connection?
14:45:50: Settings::Encoding: Changing bitrate from 1500kb/s to 1000kb/s
14:45:53: Total frames encoded: 22387, total frames duplicated: 3980 (17.78%)
14:45:53: Number of frames skipped due to encoder lag: 3566 (15.93%)
14:45:53: Total frames rendered: 18744, number of late frames: 169 (0.90%) (it's okay for some frames to be late)
14:45:58: RTMPPublisher::SocketLoop: Received FD_CLOSE, 5063 ms since last send (buffer: 0 / 207872)
14:45:58: RTMPPublisher::SocketLoop: Aborting due to FD_CLOSE, error 0
14:46:00: Average send payload: 5297 bytes, average send interval: 26 ms
14:46:00: Number of times waited to send: 10, Waited for a total of 29604 bytes
14:46:00: Number of b-frames dropped: 53 (0.24%), Number of p-frames dropped: 59 (0.26%), Total 112 (0.5%)
14:46:00: Number of bytes sent: 151206191
14:46:03: 
14:46:03: Profiler time results:
14:46:03: 
14:46:03: ==============================================================
14:46:03: video thread frame - [100%] [avg time: 4.338 ms] [children: 97.4%] [unaccounted: 2.63%]
14:46:03: | scene->Preprocess - [47.7%] [avg time: 2.07 ms]
14:46:03: | GPU download and conversion - [49.7%] [avg time: 2.154 ms] [children: 47.2%] [unaccounted: 2.44%]
14:46:03: | | flush - [44.5%] [avg time: 1.931 ms]
14:46:03: | | CopyResource - [2.49%] [avg time: 0.108 ms]
14:46:03: | | conversion to 4:2:0 - [0.207%] [avg time: 0.009 ms]
14:46:03: Convert444Threads - [100%] [avg time: 0.994 ms] [children: 98%] [unaccounted: 2.01%]
14:46:03: | Convert444toNV12 - [98%] [avg time: 0.974 ms]
14:46:03: encoder thread frame - [100%] [avg time: 8.84 ms]
14:46:03: ==============================================================
14:46:03: 
14:46:03: 
14:46:03: Profiler CPU results:
14:46:03: 
14:46:03: ==============================================================
14:46:03: video thread frame - [cpu time: avg 1.819 ms, total 34101.8 ms] [avg calls per frame: 1]
14:46:03: | scene->Preprocess - [cpu time: avg 1.554 ms, total 29141 ms] [avg calls per frame: 1]
14:46:03: | GPU download and conversion - [cpu time: avg 0.196 ms, total 3681.61 ms] [avg calls per frame: 1]
14:46:03: | | flush - [cpu time: avg 0.143 ms, total 2683.21 ms] [avg calls per frame: 1]
14:46:03: | | CopyResource - [cpu time: avg 0.02 ms, total 374.401 ms] [avg calls per frame: 1]
14:46:03: | | conversion to 4:2:0 - [cpu time: avg 0.007 ms, total 140.401 ms] [avg calls per frame: 1]
14:46:03: Convert444Threads - [cpu time: avg 0.731 ms, total 27393.8 ms] [avg calls per frame: 2]
14:46:03: | Convert444toNV12 - [cpu time: avg 0.722 ms, total 27066.2 ms] [avg calls per frame: 2]
14:46:03: encoder thread frame - [cpu time: avg 2.144 ms, total 47954.7 ms] [avg calls per frame: 1]
14:46:03: ==============================================================
14:46:03: 
14:46:03: =====Stream End: 2014-01-01, 14:46:03=================================================
14:46:05: =====Stream Start: 2014-01-01, 14:46:05===============================================
14:46:05:   Multithreaded optimizations: On
14:46:05:   Base resolution: 1280x720
14:46:05:   Output resolution: 1280x720
14:46:05: ------------------------------------------
14:46:05: Loading up D3D10 on AMD Radeon HD 7660G (Adapter 1)...
14:46:05: ------------------------------------------
14:46:05: Audio Format: 48000hz
14:46:05: Playback device {0.0.0.00000000}.{23c33722-6375-43d4-904e-92260ccc70f6}
14:46:05: ------------------------------------------
14:46:05: Using desktop audio input: Speakers and Headphones (IDT High Definition Audio CODEC)
14:46:05: ------------------------------------------
14:46:05: Using auxilary audio input: Internal Mic (IDT High Definition Audio CODEC)
14:46:06: ------------------------------------------
14:46:06: Audio Encoding: AAC
14:46:06:     bitrate: 128
14:46:06: ------------------------------------------
14:46:06:     device: Elgato Game Capture HD,
14:46:06:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
14:46:06:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333
14:46:06:     use buffering: false - 0, fourCC: 'UYVY'
14:46:06: 
14:46:06:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
14:46:07: Using directshow input
14:46:07: Scene buffering time set to 700
14:46:07: ------------------------------------------
14:46:07: Video Encoding: x264
14:46:07:     fps: 30
14:46:07:     width: 1280, height: 720
14:46:07:     preset: veryfast
14:46:07:     profile: main
14:46:07:     keyint: 60
14:46:07:     CBR: yes
14:46:07:     CFR: yes
14:46:07:     max bitrate: 1000
14:46:07:     buffer size: 1000
14:46:07: ------------------------------------------
14:46:07: MMDeviceAudioSource: Frequency for device 'Speakers and Headphones (IDT High Definition Audio CODEC)' is 384000, samples per sec is 48000
14:46:07: MMDeviceAudioSource: Frequency for device 'Internal Mic (IDT High Definition Audio CODEC)' is 384000, samples per sec is 48000
14:46:07: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
14:46:09: Using RTMP service: Twitch / Justin.tv
14:46:09:   Server selection: rtmp://live-iad.justin.tv/app
14:46:09:   Interface: Ralink RT3290 802.11bgn Wi-Fi Adapter (802.11, 375 mbps)
14:46:10: Completed handshake with rtmp://live-iad.justin.tv/app in 234 ms.
14:46:10: SO_SNDBUF was at 65536
14:46:10: SO_SNDBUF is now 65536
14:48:32: Total frames encoded: 3884, total frames duplicated: 2812 (72.40%)
14:48:32: Number of frames skipped due to encoder lag: 2750 (70.80%)
14:48:32: Total frames rendered: 1124, number of late frames: 38 (3.38%) (it's okay for some frames to be late)
14:48:32: RTMPPublisher::SocketLoop: Aborting due to WSAEnumNetworkEvents failure, 10038
14:48:32: Average send payload: 3733 bytes, average send interval: 29 ms
14:48:32: Number of times waited to send: 0, Waited for a total of 0 bytes
14:48:32: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
14:48:32: Number of bytes sent: 17918510
14:48:37: 
14:48:37: Profiler time results:
14:48:37: 
14:48:37: ==============================================================
14:48:37: video thread frame - [100%] [avg time: 5.429 ms] [children: 97.7%] [unaccounted: 2.28%]
14:48:37: | scene->Preprocess - [44.2%] [avg time: 2.401 ms]
14:48:37: | GPU download and conversion - [53.5%] [avg time: 2.904 ms] [children: 49.5%] [unaccounted: 3.96%]
14:48:37: | | flush - [44.2%] [avg time: 2.4 ms]
14:48:37: | | CopyResource - [5.16%] [avg time: 0.28 ms]
14:48:37: | | conversion to 4:2:0 - [0.166%] [avg time: 0.009 ms]
14:48:37: Convert444Threads - [100%] [avg time: 1.194 ms] [children: 98.3%] [unaccounted: 1.68%]
14:48:37: | Convert444toNV12 - [98.3%] [avg time: 1.174 ms]
14:48:37: encoder thread frame - [100%] [avg time: 29.999 ms]
14:48:37: ==============================================================
14:48:37: 
14:48:37: 
14:48:37: Profiler CPU results:
14:48:37: 
14:48:37: ==============================================================
14:48:37: video thread frame - [cpu time: avg 2.081 ms, total 2340.02 ms] [avg calls per frame: 1]
14:48:37: | scene->Preprocess - [cpu time: avg 1.734 ms, total 1950.01 ms] [avg calls per frame: 1]
14:48:37: | GPU download and conversion - [cpu time: avg 0.249 ms, total 280.801 ms] [avg calls per frame: 1]
14:48:37: | | flush - [cpu time: avg 0.18 ms, total 202.801 ms] [avg calls per frame: 1]
14:48:37: | | CopyResource - [cpu time: avg 0.07 ms, total 78 ms] [avg calls per frame: 1]
14:48:37: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
14:48:37: Convert444Threads - [cpu time: avg 0.83 ms, total 1825.21 ms] [avg calls per frame: 2]
14:48:37: | Convert444toNV12 - [cpu time: avg 0.816 ms, total 1794.01 ms] [avg calls per frame: 2]
14:48:37: encoder thread frame - [cpu time: avg 2.632 ms, total 10171.3 ms] [avg calls per frame: 1]
14:48:37: ==============================================================
14:48:37: 
14:48:37: =====Stream End: 2014-01-01, 14:48:37=================================================
 

alpinlol

Active Member
14:32:48: Total frames encoded: 2164, total frames duplicated: 1106 (51.11%)
14:32:48: Number of frames skipped due to encoder lag: 1056 (48.80%)
14:32:48: Total frames rendered: 1097, number of late frames: 23 (2.10%) (it's okay for some frames to be late)
14:45:53: Total frames encoded: 22387, total frames duplicated: 3980 (17.78%)
14:45:53: Number of frames skipped due to encoder lag: 3566 (15.93%)
14:45:53: Total frames rendered: 18744, number of late frames: 169 (0.90%)
14:48:32: Total frames encoded: 3884, total frames duplicated: 2812 (72.40%)
14:48:32: Number of frames skipped due to encoder lag: 2750 (70.80%)
14:48:32: Total frames rendered: 1124, number of late frames: 38 (3.38%)



looks like your cpu cant really handle 720@30 ... what game are you trying to stream?
 

Tozzy

New Member
alpinlol said:
14:32:48: Total frames encoded: 2164, total frames duplicated: 1106 (51.11%)
14:32:48: Number of frames skipped due to encoder lag: 1056 (48.80%)
14:32:48: Total frames rendered: 1097, number of late frames: 23 (2.10%) (it's okay for some frames to be late)
14:45:53: Total frames encoded: 22387, total frames duplicated: 3980 (17.78%)
14:45:53: Number of frames skipped due to encoder lag: 3566 (15.93%)
14:45:53: Total frames rendered: 18744, number of late frames: 169 (0.90%)
14:48:32: Total frames encoded: 3884, total frames duplicated: 2812 (72.40%)
14:48:32: Number of frames skipped due to encoder lag: 2750 (70.80%)
14:48:32: Total frames rendered: 1124, number of late frames: 38 (3.38%)



looks like your cpu cant really handle 720@30 ... what game are you trying to stream?
Im trying to stream Call Of duty Ghosts
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
You may need to just use more downscale until it stops -- your system isn't particularly powerful unfortunately, the encoder is having difficulty keeping up.
 
Top