Question / Help Regular audio glitches.

theGarbs

New Member
I'm trying to stream to my hard disk and I get consistent glitches (every 3.35 seconds) in the audio stream, sounds kind of like a vinyl skipping. The video stream is fine. After some investigation it seems the glitches happen the same way every time:

  • First glitch appears at 3 seconds in; some of the stream is simply missing
  • Every 3.35 seconds thereafter, some of the stream is again missing, but now replaced with 10 milliseconds of noise.
At first I thought it might be a HDD access speed issue, but the problem still happens if I stream to twitch.tv or record to a dedicated disk with very low quality settings. I'm wondering if it could have something to do with my sound interface? I have a Focusrite Scarlett 2i2. Also the recorded audio always has a samplerate of 48k even when set to 44.1k

Anyway, here's my latest log file.

Code:
13:35:29: Open Broadcaster Software v0.582b - 64bit ( ^ω^)
13:35:29: -------------------------------
13:35:29: CPU Name: Intel(R) Core(TM) i7 CPU         930  @ 2.80GHz
13:35:29: CPU Speed: 2806MHz
13:35:29: Physical Memory:  6135MB Total, 2134MB Free
13:35:29: stepping id: 5, model 26, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
13:35:29: monitor 1: pos={0, 0}, size={1920, 1080}
13:35:29: Windows Version: 6.1 Build 7601 S
13:35:29: Aero is Disabled
13:35:29: -------------------------------
13:35:29: OBS Modules:
13:35:29: Base Address     Module
13:35:29: 000000003FF40000 OBS.exe
13:35:29: 00000000E8A90000 OBSApi.dll
13:35:29: 00000000F9E40000 DShowPlugin.dll
13:35:29: 00000000F9E10000 GraphicsCapture.dll
13:35:29: 00000000F9E90000 NoiseGate.dll
13:35:29: 00000000F9C50000 PSVPlugin.dll
13:35:29: ------------------------------------------
13:35:29: Adapter 1
13:35:29:   Video Adapter: ATI Radeon HD 5800 Series
13:35:29:   Video Adapter Dedicated Video Memory: 1065189376
13:35:29:   Video Adapter Shared System Memory: 2948132864
13:35:29:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
13:35:29: =====Stream Start: 2013-10-24, 13:35:29===============================================
13:35:29:   Multithreaded optimizations: On
13:35:29:   Base resolution: 256x224
13:35:29:   Output resolution: 256x224
13:35:29: ------------------------------------------
13:35:29: Loading up D3D10 on ATI Radeon HD 5800 Series...
13:35:29: ------------------------------------------
13:35:29: Audio Format: 44100hz
13:35:29: Playback device {0.0.0.00000000}.{449d9979-cf72-4f4f-a380-590f6532097c}
13:35:29: ------------------------------------------
13:35:29: Using desktop audio input: Line Out (4- Scarlett 2i2 USB)
13:35:30: ------------------------------------------
13:35:30: Using auxilary audio input: Line In (4- Scarlett 2i2 USB)
13:35:30: ------------------------------------------
13:35:30: Audio Encoding: MP3
13:35:30:     bitrate: 160
13:35:30: Using Window Capture
13:35:30: Scene buffering time set to 400
13:35:30: ------------------------------------------
13:35:30: Video Encoding: x264
13:35:30:     fps: 30
13:35:30:     width: 256, height: 224
13:35:30:     preset: veryfast
13:35:30:     profile: high
13:35:30:     keyint: 250
13:35:30:     CBR: yes
13:35:30:     CFR: no
13:35:30:     max bitrate: 850
13:35:30:     buffer size: 500
13:35:30: ------------------------------------------
13:35:30: MMDeviceAudioSource: Frequency for device 'Line Out (4- Scarlett 2i2 USB)' is 352800, samples per sec is 44100
13:35:30: MMDeviceAudioSource: Frequency for device 'Line In (4- Scarlett 2i2 USB)' is 352800, samples per sec is 44100
13:35:45: Total frames encoded: 432, total frames duplicated: 0 (0.00%)
13:35:45: Total frames rendered: 434, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
13:35:45: 
13:35:45: Profiler time results:
13:35:45: 
13:35:45: ==============================================================
13:35:45: video thread frame - [100%] [avg time: 2.26 ms] [children: 74.7%] [unaccounted: 25.3%]
13:35:45: | scene->Preprocess - [71.1%] [avg time: 1.607 ms]
13:35:45: | GPU download and conversion - [3.63%] [avg time: 0.082 ms] [children: 3.01%] [unaccounted: 0.619%]
13:35:45: | | flush - [2.48%] [avg time: 0.056 ms]
13:35:45: | | CopyResource - [0.442%] [avg time: 0.01 ms]
13:35:45: | | conversion to 4:2:0 - [0.0885%] [avg time: 0.002 ms]
13:35:45: Convert444Threads - [100%] [avg time: 0.054 ms] [children: 92.6%] [unaccounted: 7.41%]
13:35:45: | Convert444toNV12 - [92.6%] [avg time: 0.05 ms]
13:35:45: encoder thread frame - [100%] [avg time: 0.204 ms]
13:35:45: ==============================================================
13:35:45: 
13:35:45: 
13:35:45: Profiler CPU results:
13:35:45: 
13:35:45: ==============================================================
13:35:45: video thread frame - [cpu time: avg 0.215 ms, total 93.6 ms] [avg calls per frame: 1]
13:35:45: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:35:45: | GPU download and conversion - [cpu time: avg 0.071 ms, total 31.2 ms] [avg calls per frame: 1]
13:35:45: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:35:45: | | CopyResource - [cpu time: avg 0.036 ms, total 15.6 ms] [avg calls per frame: 1]
13:35:45: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:35:45: Convert444Threads - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 2]
13:35:45: | Convert444toNV12 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 2]
13:35:45: encoder thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:35:45: ==============================================================
13:35:45: 
13:35:45: =====Stream End: 2013-10-24, 13:35:45=================================================
13:53:13: =====Stream Start: 2013-10-24, 13:53:13===============================================
13:53:13:   Multithreaded optimizations: On
13:53:13:   Base resolution: 256x224
13:53:13:   Output resolution: 256x224
13:53:13: ------------------------------------------
13:53:13: Loading up D3D10 on ATI Radeon HD 5800 Series...
13:53:13: ------------------------------------------
13:53:13: Audio Format: 44100hz
13:53:13: Playback device {0.0.0.00000000}.{449d9979-cf72-4f4f-a380-590f6532097c}
13:53:13: ------------------------------------------
13:53:13: Using desktop audio input: Line Out (4- Scarlett 2i2 USB)
13:53:13: ------------------------------------------
13:53:13: Using auxilary audio input: Line In (4- Scarlett 2i2 USB)
13:53:13: ------------------------------------------
13:53:13: Audio Encoding: MP3
13:53:13:     bitrate: 160
13:53:13: Using Window Capture
13:53:13: Scene buffering time set to 400
13:53:13: ------------------------------------------
13:53:13: Video Encoding: x264
13:53:13:     fps: 30
13:53:13:     width: 256, height: 224
13:53:13:     preset: veryfast
13:53:13:     profile: high
13:53:13:     keyint: 250
13:53:13:     CBR: yes
13:53:13:     CFR: no
13:53:13:     max bitrate: 850
13:53:13:     buffer size: 500
13:53:13: ------------------------------------------
13:53:13: MMDeviceAudioSource: Frequency for device 'Line Out (4- Scarlett 2i2 USB)' is 352800, samples per sec is 44100
13:53:13: MMDeviceAudioSource: Frequency for device 'Line In (4- Scarlett 2i2 USB)' is 352800, samples per sec is 44100
13:53:28: Total frames encoded: 417, total frames duplicated: 0 (0.00%)
13:53:28: Total frames rendered: 420, number of late frames: 1 (0.24%) (it's okay for some frames to be late)
13:53:28: 
13:53:28: Profiler time results:
13:53:28: 
13:53:28: ==============================================================
13:53:28: video thread frame - [100%] [avg time: 2.006 ms] [children: 69.7%] [unaccounted: 30.3%]
13:53:28: | scene->Preprocess - [65.5%] [avg time: 1.313 ms]
13:53:28: | GPU download and conversion - [4.29%] [avg time: 0.086 ms] [children: 3.64%] [unaccounted: 0.648%]
13:53:28: | | flush - [2.94%] [avg time: 0.059 ms]
13:53:28: | | CopyResource - [0.548%] [avg time: 0.011 ms]
13:53:28: | | conversion to 4:2:0 - [0.15%] [avg time: 0.003 ms]
13:53:28: Convert444Threads - [100%] [avg time: 0.053 ms] [children: 92.5%] [unaccounted: 7.55%]
13:53:28: | Convert444toNV12 - [92.5%] [avg time: 0.049 ms]
13:53:28: encoder thread frame - [100%] [avg time: 0.2 ms]
13:53:28: ==============================================================
13:53:28: 
13:53:28: 
13:53:28: Profiler CPU results:
13:53:28: 
13:53:28: ==============================================================
13:53:28: video thread frame - [cpu time: avg 0.445 ms, total 187.201 ms] [avg calls per frame: 1]
13:53:28: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:53:28: | GPU download and conversion - [cpu time: avg 0.037 ms, total 15.6 ms] [avg calls per frame: 1]
13:53:28: | | flush - [cpu time: avg 0.037 ms, total 15.6 ms] [avg calls per frame: 1]
13:53:28: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:53:28: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:53:28: Convert444Threads - [cpu time: avg 0.038 ms, total 31.2 ms] [avg calls per frame: 2]
13:53:28: | Convert444toNV12 - [cpu time: avg 0.038 ms, total 31.2 ms] [avg calls per frame: 2]
13:53:28: encoder thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
13:53:28: ==============================================================
13:53:28: 
13:53:28: =====Stream End: 2013-10-24, 13:53:28=================================================

Thanks in advance!
-theGarbs
 
Have tried both but the problem persists. Can provide example files if needed? Another thing that might be worth mentioning, I use the ASUS EPU-6 engine power saving program; I believe it under-clocks my cpu when in power saving mode, though I have tried recording with it disabled (ie set to full power) but to no avail. Is it possible that it could be related somehow? I will continue to experiment, as no other capturing software seems to be able to read from my soundcard at all.
 
Yea, that application is probably affecting it. OBS requires a constant clock, a dynamic clock is going to mess with the audio/video timing and probably screw the video.
 
Back
Top