Question / Help Microphone Using 2i2 No Longer Works

Innocent Hawk

New Member
The microphone I use is plugged into a Focusrite Scarlett 2i2 Audio Interface, and it used to work flawlessly with OBS. Now it fails to recognize any microphone input, but will still recognize the rest of the audio output (game/desktop audio) from the same device.

When I start recording/streaming, both the mic and desktop audio level meters flicker, then the mic shows no more activity.

I think that 0.623b was the last working version for me, or maybe the one before it (but it is no longer available for download). I use either x264 or QuickSync depending on my needs, but the microphone usage doesn't come back in either one right now.

My logs don't show any errors involving audio.
 

Innocent Hawk

New Member
Hmm, maybe there are some audio errors after all. The "analyze" function that you can use didn't catch it though.

Code:
23:45:04: Failed loading CUDA dll
23:45:08: Open Broadcaster Software v0.625b - 64bit ( ^ω^)
23:45:08: -------------------------------
23:45:08: CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
23:45:08: CPU Speed: 3410MHz
23:45:08: Physical Memory:  8109MB Total, 6295MB Free
23:45:08: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
23:45:08: monitor 1: pos={0, 0}, size={1920, 1080}
23:45:08: Windows Version: 6.1 Build 7601 S
23:45:08: Aero is Enabled
23:45:08: -------------------------------
23:45:08: OBS Modules:
23:45:08: Base Address  Module
23:45:08: 000000003F650000 OBS.exe
23:45:08: 00000000E3B90000 OBSApi.dll
23:45:08: 00000000F4FF0000 DShowPlugin.dll
23:45:08: 00000000F4FC0000 GraphicsCapture.dll
23:45:08: 00000000F4F90000 NoiseGate.dll
23:45:08: 00000000F4F60000 PSVPlugin.dll
23:45:08: ------------------------------------------
23:45:08: Adapter 1
23:45:08:  Video Adapter: AMD Radeon R9 200 Series
23:45:08:  Video Adapter Dedicated Video Memory: 3202392064
23:45:08:  Video Adapter Shared System Memory: 3983073280
23:45:08:  Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
23:45:08: ------------------------------------------
23:45:08: Adapter 2
23:45:08:  Video Adapter: Intel(R) HD Graphics 3000
23:45:08:  Video Adapter Dedicated Video Memory: 67108864
23:45:08:  Video Adapter Shared System Memory: 1711276032
23:45:08: =====Stream Start: 2014-06-29, 23:45:08===============================================
23:45:08:  Multithreaded optimizations: On
23:45:08:  Base resolution: 1920x1080
23:45:08:  Output resolution: 1280x720
23:45:08: ------------------------------------------
23:45:08: Loading up D3D10 on AMD Radeon R9 200 Series (Adapter 1)...
23:45:08: ------------------------------------------
23:45:08: Audio Format: 48000 Hz
23:45:08: ------------------------------------------
23:45:08: Audio Channels: 2 Ch
23:45:08: Playback device {0.0.0.00000000}.{1ec1fecf-a331-4b54-a95e-bb07794d203d}
23:45:08: ------------------------------------------
23:45:08: Using desktop audio input: Line Out (Scarlett 2i2 USB)
23:45:08: Global Audio time adjust: 0
23:45:08: ------------------------------------------
23:45:08: Using auxilary audio input: Line In (Scarlett 2i2 USB)
23:45:08: Mic time offset: 0
23:45:08: ------------------------------------------
23:45:08: Audio Encoding: AAC
23:45:08:  bitrate: 128
23:45:08: Using Monitor Capture
23:45:08: Scene buffering time set to 700
23:45:08: ------------------------------------------
23:45:08: Video Encoding: x264
23:45:08:  fps: 30
23:45:08:  width: 1280, height: 720
23:45:08:  preset: veryfast
23:45:08:  profile: high
23:45:08:  keyint: 60
23:45:08:  CBR: yes
23:45:08:  CFR: yes
23:45:08:  max bitrate: 3936
23:45:08:  buffer size: 3936
23:45:08: ------------------------------------------
23:45:09: Audio timestamp for device 'Line In (Scarlett 2i2 USB)' was behind target timestamp by 930672
23:45:13: Total frames encoded: 124, total frames duplicated: 30 (24.19%)
23:45:13: Total frames rendered: 149, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
23:45:13:
23:45:13: Profiler time results:
23:45:13:
23:45:13: ==============================================================
23:45:13: video thread frame - [100%] [avg time: 17.73 ms] [children: 98.6%] [unaccounted: 1.4%]
23:45:13: | scene->Preprocess - [98.3%] [avg time: 17.429 ms]
23:45:13: | GPU download and conversion - [0.299%] [avg time: 0.053 ms] [children: 0.265%] [unaccounted: 0.0338%]
23:45:13: | | flush - [0.226%] [avg time: 0.04 ms]
23:45:13: | | CopyResource - [0.0338%] [avg time: 0.006 ms]
23:45:13: | | conversion to 4:2:0 - [0.00564%] [avg time: 0.001 ms]
23:45:13: Convert444Threads - [100%] [avg time: 0.429 ms] [children: 99.3%] [unaccounted: 0.699%]
23:45:13: | Convert444toNV12 - [99.3%] [avg time: 0.426 ms]
23:45:13: encoder thread frame - [100%] [avg time: 0.707 ms] [children: 1.13%] [unaccounted: 98.9%]
23:45:13: | sending stuff out - [1.13%] [avg time: 0.008 ms]
23:45:13: ==============================================================
23:45:13:
23:45:13:
23:45:13: Profiler CPU results:
23:45:13:
23:45:13: ==============================================================
23:45:13: video thread frame - [cpu time: avg 4.816 ms, total 717.604 ms] [avg calls per frame: 1]
23:45:13: | scene->Preprocess - [cpu time: avg 4.711 ms, total 702.004 ms] [avg calls per frame: 1]
23:45:13: | GPU download and conversion - [cpu time: avg 0.104 ms, total 15.6 ms] [avg calls per frame: 1]
23:45:13: | | flush - [cpu time: avg 0.104 ms, total 15.6 ms] [avg calls per frame: 1]
23:45:13: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:45:13: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:45:13: Convert444Threads - [cpu time: avg 0.312 ms, total 78 ms] [avg calls per frame: 2]
23:45:13: | Convert444toNV12 - [cpu time: avg 0.312 ms, total 78 ms] [avg calls per frame: 2]
23:45:13: encoder thread frame - [cpu time: avg 0.125 ms, total 15.6 ms] [avg calls per frame: 1]
23:45:13: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
23:45:13: ==============================================================
23:45:13:
23:45:13: =====Stream End: 2014-06-29, 23:45:13=================================================


Last game capture log:
2014-05-16, 00:13:44: we're booting up:
00:13:44: CaptureThread: attached to process csgo.exe
00:13:45: D3D9 Present
00:13:45: D3D9EndScene called
00:13:45: D3DPRESENT_PARAMETERS {
00:13:45:    BackBufferWidth: 1920
00:13:45:    BackBufferHeight: 1080
00:13:45:    BackBufferFormat: D3DFMT_A8R8G8B8
00:13:45:    BackBufferCount: 1
00:13:45:    MultiSampleType: D3DMULTISAMPLE_NONE
00:13:45:    MultiSampleQuality: 0
00:13:45:    SwapEffect: D3DSWAPEFFECT_DISCARD
00:13:45:    hDeviceWindow: 330008
00:13:45:    Windowed: false
00:13:45:    EnableAutoDepthStencil: true
00:13:45:    AutoDepthStencilFormat: D3DFMT_D24S8
00:13:45:    Flags: None
00:13:45:    FullScreen_RefreshRateInHz: 144
00:13:45:    PresentationInterval: 2147483648
00:13:45: };
00:13:45: successfully set up d3d9 hooks
00:13:45: D3D9Present called
00:13:45: DoD3D9GPUHook: success
00:13:45: NV Capture available
00:13:45: FBO available
00:13:45: GL Present
00:13:45: (half life scientist) everything..  seems to be in order
00:13:45: D3DSURFACE_DESC {
00:13:45:    Format: D3DFMT_A8R8G8B8
00:13:45:    Type: D3DRTYPE_SURFACE
00:13:45:    Usage: D3DUSAGE_RENDERTARGET
00:13:45:    Pool: D3DPOOL_DEFAULT
00:13:45:    MultiSampleType: D3DMULTISAMPLE_NONE
00:13:45:    MultiSampleQuality: 0
00:13:45:    Width: 1920
00:13:45:    Height: 1080
00:13:45: };
00:13:45: successfully capturing d3d9 frames via GPU
00:13:47: ---------------------- Cleared D3D9 Capture ----------------------
00:13:47: D3D9EndScene called
00:13:47: D3D9Present called
00:14:30: received restart event, capturing
00:14:30: DoD3D9GPUHook: success
00:14:30: D3DSURFACE_DESC {
00:14:30:    Format: D3DFMT_A8R8G8B8
00:14:30:    Type: D3DRTYPE_SURFACE
00:14:30:    Usage: D3DUSAGE_RENDERTARGET
00:14:30:    Pool: D3DPOOL_DEFAULT
00:14:30:    MultiSampleType: D3DMULTISAMPLE_NONE
00:14:30:    MultiSampleQuality: 0
00:14:30:    Width: 1920
00:14:30:    Height: 1080
00:14:30: };
00:14:30: successfully capturing d3d9 frames via GPU
00:15:22: ---------------------- Cleared D3D9 Capture ----------------------
00:15:22: D3D9EndScene called
00:15:22: D3D9Present called
 

dodgepong

Administrator
Community Helper
Do you have "Use Mic QPC Timestamps" enabled in Advanced settings?

Also, can you post a log from a longer recording attempt? That was only a few seconds long.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
It says it's set to "line in" for your mic, just verifying whether or not that's intentional. It may just be set to the wrong device. It doesn't have anything to do with the version because audio code was not changed in recent versions.

As for leads, we can't really get leads, we can give you theories (such as the line in thing above), but we can't really solve user problems remotely.

In my experience, the only times when a mic has ever truly failed to work is when: a.) the system is having DPC (deferred procedure call) issues, which is extremely rare, or b.) when the mic or input actually fails in terms of hardware.

All the other times when people have reported mic not working have simply been because they configured OBS incorrectly (wrong device selected, accidentally muted, accidentally enabled push-to-talk), or configured windows sound settings incorrectly (for example leaving exclusive mode on, though it will show an error for that usually).
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Had a feeling. There really needs to be a visual indicator for it so people know they have it on when in the main window. Thanks for clearing that up.
 
Top