Question / Help My microphone suddenly dies when streaming

lenikej

New Member
So yeah, basically when I try to stream, my microphone starts "stuttering" after a while and then it dies completely.
The mic I'm using is a studio microphone with an audiobox usb soundcard. The sound I'm hearing from my computer (teamspeak, spotify etc) is working without problems.

Does someone know what the problem might be?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
This is somewhat of a known problem, could you check your log files? Are they real big filled with "had to delete audio segment"? This is a bug, but it can be fixed by increasing "Scene buffering time" in advanced. Though I would really like to see a log and maybe debug it before you do, is "Use Mic QPC Timestamps" is off especially.
 

lenikej

New Member
Sure! Not sure if this is what you wanted but I guess it is.

Code:
17:56:19: Open Broadcaster Software v0.592b - 32bit (´・ω・`)
17:56:19: -------------------------------
17:56:19: CPU Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
17:56:19: CPU Speed: 3392MHz
17:56:19: Physical Memory:  4095MB Total, 3283MB Free
17:56:19: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
17:56:19: monitor 1: pos={1680, 0}, size={1920, 1080}
17:56:19: monitor 2: pos={0, 0}, size={1680, 1050}
17:56:19: Windows Version: 6.1 Build 7601 S
17:56:19: Aero is Disabled
17:56:19: -------------------------------
17:56:19: OBS Modules:
17:56:19: Base Address     Module
17:56:19: 00BB0000         OBS.exe
17:56:19: 50170000         OBSApi.dll
17:56:19: 71570000         DShowPlugin.dll
17:56:19: 72BE0000         GraphicsCapture.dll
17:56:19: 714E0000         NoiseGate.dll
17:56:19: 71430000         PSVPlugin.dll
17:56:19: ------------------------------------------
17:56:19: Adapter 1
17:56:19:   Video Adapter: AMD Radeon HD 6900 Series
17:56:19:   Video Adapter Dedicated Video Memory: 2134573056
17:56:19:   Video Adapter Shared System Memory: 2160328704
17:56:19:   Video Adapter Output 1: pos={0, 0}, size={1680, 1050}, attached=true
17:56:19:   Video Adapter Output 2: pos={1680, 0}, size={1920, 1080}, attached=true
17:56:19: =====Stream Start: 2014-01-06, 17:56:19===============================================
17:56:19:   Multithreaded optimizations: On
17:56:19:   Base resolution: 1680x1050
17:56:19:   Output resolution: 1680x1050
17:56:19: ------------------------------------------
17:56:19: Loading up D3D10 on AMD Radeon HD 6900 Series (Adapter 1)...
17:56:20: ------------------------------------------
17:56:20: Audio Format: 48000hz
17:56:20: Playback device {0.0.0.00000000}.{f24ecd69-83fb-47b5-bb0b-691fe0f94ef9}
17:56:20: ------------------------------------------
17:56:20: Using desktop audio input: Högtalare (2- USB PnP Sound Device)
17:56:20: ------------------------------------------
17:56:20: Using auxilary audio input: Linje (3- AudioBox USB Audio)
17:56:20: ------------------------------------------
17:56:20: Audio Encoding: AAC
17:56:20:     bitrate: 112
17:56:20: ------------------------------------------
17:56:20:     device: Logitech HD Pro Webcam C920,
17:56:20:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&25e35c94&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
17:56:20:     chosen type: I420, usingFourCC: false, res: 800x600 - 800x600, frameIntervals: 333333-2000000
17:56:20:     use buffering: false - 0, fourCC: 'I420'
17:56:20:     audio device: Disable,
17:56:20:     audio device id Disabled,
17:56:20: 
17:56:22: Using directshow input
17:56:22: Using Window Capture
17:56:22: Scene buffering time set to 700
17:56:22: ------------------------------------------
17:56:22: Video Encoding: x264
17:56:22:     fps: 30
17:56:22:     width: 1680, height: 1050
17:56:22:     preset: faster
17:56:22:     profile: high
17:56:22:     keyint: 250
17:56:22:     CBR: yes
17:56:22:     CFR: yes
17:56:22:     max bitrate: 2000
17:56:22:     buffer size: 2000
17:56:22: ------------------------------------------
17:56:22: MMDeviceAudioSource: Frequency for device 'Högtalare (2- USB PnP Sound Device)' is 352800, samples per sec is 44100
17:56:22: MMDeviceAudioSource: Frequency for device 'Linje (3- AudioBox USB Audio)' is 352800, samples per sec is 44100
17:57:41: Using Monitor Capture
17:58:10: Total frames encoded: 3218, total frames duplicated: 46 (1.43%)
17:58:10: Total frames rendered: 3220, number of late frames: 2 (0.06%) (it's okay for some frames to be late)
17:58:11: 
17:58:11: Profiler time results:
17:58:11: 
17:58:11: ==============================================================
17:58:11: video thread frame - [100%] [avg time: 4.873 ms] [children: 80%] [unaccounted: 20%]
17:58:11: | scene->Preprocess - [75.8%] [avg time: 3.694 ms]
17:58:11: | GPU download and conversion - [4.19%] [avg time: 0.204 ms] [children: 3.84%] [unaccounted: 0.349%]
17:58:11: | | flush - [3.47%] [avg time: 0.169 ms]
17:58:11: | | CopyResource - [0.226%] [avg time: 0.011 ms]
17:58:11: | | conversion to 4:2:0 - [0.144%] [avg time: 0.007 ms]
17:58:11: Convert444Threads - [100%] [avg time: 1.241 ms] [children: 99.4%] [unaccounted: 0.645%]
17:58:11: | Convert444toNV12 - [99.4%] [avg time: 1.233 ms]
17:58:11: encoder thread frame - [100%] [avg time: 1.983 ms]
17:58:11: ==============================================================
17:58:11: 
17:58:11: 
17:58:11: Profiler CPU results:
17:58:11: 
17:58:11: ==============================================================
17:58:11: video thread frame - [cpu time: avg 3.134 ms, total 10093.3 ms] [avg calls per frame: 1]
17:58:11: | scene->Preprocess - [cpu time: avg 2.616 ms, total 8424.06 ms] [avg calls per frame: 1]
17:58:11: | GPU download and conversion - [cpu time: avg 0.077 ms, total 249.602 ms] [avg calls per frame: 1]
17:58:11: | | flush - [cpu time: avg 0.058 ms, total 187.202 ms] [avg calls per frame: 1]
17:58:11: | | CopyResource - [cpu time: avg 0.004 ms, total 15.6 ms] [avg calls per frame: 1]
17:58:11: | | conversion to 4:2:0 - [cpu time: avg 0.009 ms, total 31.2 ms] [avg calls per frame: 1]
17:58:11: Convert444Threads - [cpu time: avg 1.283 ms, total 8205.65 ms] [avg calls per frame: 2]
17:58:11: | Convert444toNV12 - [cpu time: avg 1.268 ms, total 8112.05 ms] [avg calls per frame: 2]
17:58:11: encoder thread frame - [cpu time: avg 1.395 ms, total 4461.63 ms] [avg calls per frame: 1]
17:58:11: ==============================================================
17:58:11: 
17:58:11: =====Stream End: 2014-01-06, 17:58:11=================================================
17:58:54: =====Stream Start: 2014-01-06, 17:58:54===============================================
17:58:54:   Multithreaded optimizations: On
17:58:54:   Base resolution: 1680x1050
17:58:54:   Output resolution: 1680x1050
17:58:54: ------------------------------------------
17:58:54: Loading up D3D10 on AMD Radeon HD 6900 Series (Adapter 1)...
17:58:54: ------------------------------------------
17:58:54: Audio Format: 48000hz
17:58:54: Playback device {0.0.0.00000000}.{f24ecd69-83fb-47b5-bb0b-691fe0f94ef9}
17:58:54: ------------------------------------------
17:58:54: Using desktop audio input: Högtalare (2- USB PnP Sound Device)
17:58:54: ------------------------------------------
17:58:54: Using auxilary audio input: Linje (3- AudioBox USB Audio)
17:58:54: ------------------------------------------
17:58:54: Audio Encoding: AAC
17:58:54:     bitrate: 112
17:58:54: ------------------------------------------
17:58:54:     device: Logitech HD Pro Webcam C920,
17:58:54:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&25e35c94&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
17:58:54:     chosen type: I420, usingFourCC: false, res: 800x600 - 800x600, frameIntervals: 333333-2000000
17:58:54:     use buffering: false - 0, fourCC: 'I420'
17:58:54:     audio device: Disable,
17:58:54:     audio device id Disabled,
17:58:54: 
17:58:55: Using directshow input
17:58:55: Using Monitor Capture
17:58:55: Scene buffering time set to 700
17:58:55: ------------------------------------------
17:58:55: Video Encoding: x264
17:58:55:     fps: 30
17:58:55:     width: 1680, height: 1050
17:58:55:     preset: faster
17:58:55:     profile: high
17:58:55:     keyint: 250
17:58:55:     CBR: yes
17:58:55:     CFR: yes
17:58:55:     max bitrate: 2000
17:58:55:     buffer size: 2000
17:58:55: ------------------------------------------
17:58:55: MMDeviceAudioSource: Frequency for device 'Högtalare (2- USB PnP Sound Device)' is 352800, samples per sec is 44100
17:58:55: MMDeviceAudioSource: Frequency for device 'Linje (3- AudioBox USB Audio)' is 352800, samples per sec is 44100
17:58:58: Using RTMP service: Twitch / Justin.tv
17:58:58:   Server selection: rtmp://live-ams.justin.tv/app
17:58:58:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
17:58:58: Completed handshake with rtmp://live-ams.justin.tv/app in 497 ms.
17:58:59: SO_SNDBUF was at 8192
17:58:59: SO_SNDBUF is now 65536
18:06:36: Total frames encoded: 13823, total frames duplicated: 513 (3.71%)
18:06:36: Total frames rendered: 13819, number of late frames: 3 (0.02%) (it's okay for some frames to be late)
18:06:37: RTMPPublisher::SocketLoop: Graceful loop exit
18:06:37: Average send payload: 6174 bytes, average send interval: 24 ms
18:06:37: Number of times waited to send: 0, Waited for a total of 0 bytes
18:06:37: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:06:37: Number of bytes sent: 115669566
18:06:37: 
18:06:37: Profiler time results:
18:06:37: 
18:06:37: ==============================================================
18:06:37: video thread frame - [100%] [avg time: 7.761 ms] [children: 85.4%] [unaccounted: 14.6%]
18:06:37: | scene->Preprocess - [82.2%] [avg time: 6.381 ms]
18:06:37: | GPU download and conversion - [3.21%] [avg time: 0.249 ms] [children: 2.94%] [unaccounted: 0.271%]
18:06:37: | | flush - [2.73%] [avg time: 0.212 ms]
18:06:37: | | CopyResource - [0.142%] [avg time: 0.011 ms]
18:06:37: | | conversion to 4:2:0 - [0.0644%] [avg time: 0.005 ms]
18:06:37: Convert444Threads - [100%] [avg time: 1.206 ms] [children: 99.4%] [unaccounted: 0.58%]
18:06:37: | Convert444toNV12 - [99.4%] [avg time: 1.199 ms]
18:06:37: encoder thread frame - [100%] [avg time: 2.038 ms]
18:06:37: ==============================================================
18:06:37: 
18:06:37: 
18:06:37: Profiler CPU results:
18:06:37: 
18:06:37: ==============================================================
18:06:37: video thread frame - [cpu time: avg 4.827 ms, total 66706 ms] [avg calls per frame: 1]
18:06:37: | scene->Preprocess - [cpu time: avg 4.126 ms, total 57018.4 ms] [avg calls per frame: 1]
18:06:37: | GPU download and conversion - [cpu time: avg 0.058 ms, total 811.206 ms] [avg calls per frame: 1]
18:06:37: | | flush - [cpu time: avg 0.031 ms, total 436.803 ms] [avg calls per frame: 1]
18:06:37: | | CopyResource - [cpu time: avg 0.015 ms, total 218.403 ms] [avg calls per frame: 1]
18:06:37: | | conversion to 4:2:0 - [cpu time: avg 0.004 ms, total 62.4 ms] [avg calls per frame: 1]
18:06:37: Convert444Threads - [cpu time: avg 1.237 ms, total 34133 ms] [avg calls per frame: 2]
18:06:37: | Convert444toNV12 - [cpu time: avg 1.229 ms, total 33930.2 ms] [avg calls per frame: 2]
18:06:37: encoder thread frame - [cpu time: avg 1.426 ms, total 19687.3 ms] [avg calls per frame: 1]
18:06:37: ==============================================================
18:06:37: 
18:06:37: =====Stream End: 2014-01-06, 18:06:37=================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Hm, strange, I see no errors of any sort with that log. Think you could try the latest test build? (0.60 test 5 as of this writing. Also note, not too stable, but we're fixing some mic-related issues in it.)
 

lenikej

New Member
Yeah I tried somewhat and I'm still encountering the same problem as before. But the thing you talked about increasing the "Scene Buffering Time", how much of an increase is going to help me out?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Come by chat for more tests, I want to see if I can help resolve it. If you have an hour or two for testing some time, #obsproject on quakenet or the chat button in the upper right of the web page.

Increasing it by 100 increments usually is what solves it, but I really want to get to the root of the problem so I can make sure this doesn't happen anymore in the future.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Try the test build, 0.60 test 6. (Note that the test builds do not auto-update)
 
Top