Question / Help Audio Lag

ozzbourne

New Member
http://www.twitch.tv/ozzbournetv/b/469383591
This first link is me using Xsplit and the audio is clear and not choppy at all.
http://www.twitch.tv/ozzbournetv/b/469674775
This second link is me trying to use OBS, the audio comes late and then speeds up. I have tried a bunch of different settings and nothing seems to be working. I really dont like Xsplit because it is a slow program and dysfunctional most of the time but I am about to just suck it up because OBS isn't working properly. Please help! :(


Code:
18:38:23: Open Broadcaster Software v0.571b - 64bit ( ^ω^)
18:38:23: -------------------------------
18:38:23: CPU Name: AMD FX(tm)-6300 Six-Core Processor
18:38:23: CPU Speed: 4228MHz
18:38:23: Physical Memory:  8173MB Total, 6445MB Free
18:38:23: stepping id: 0, model 2, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 6, total cores 3
18:38:23: monitor 1: pos={0, 0}, size={1920, 1080}
18:38:23: Windows Version: 6.1 Build 7601 S
18:38:23: Aero is Disabled
18:38:23: -------------------------------
18:38:23: OBS Modules:
18:38:23: Base Address     Module
18:38:23: 000000003FC80000 OBS.exe
18:38:23: 00000000EE730000 OBSApi.dll
18:38:23: 00000000F90C0000 DShowPlugin.dll
18:38:23: 00000000F9A80000 GraphicsCapture.dll
18:38:23: 00000000F88C0000 NoiseGate.dll
18:38:23: 00000000F81B0000 PSVPlugin.dll
18:38:23: ------------------------------------------
18:38:23: Adapter 1
18:38:23:   Video Adapter: AMD Radeon HD 7800 Series
18:38:23:   Video Adapter Dedicated Video Memory: 2128814080
18:38:23:   Video Adapter Shared System Memory: 4016697344
18:38:23: =====Stream Start: 2013-10-12, 18:38:23===============================================
18:38:23:   Multithreaded optimizations: On
18:38:23:   Base resolution: 1920x1080
18:38:23:   Output resolution: 1280x720
18:38:23: ------------------------------------------
18:38:23: Loading up D3D10 on AMD Radeon HD 7800 Series...
18:38:23: ------------------------------------------
18:38:23: Audio Format: 48000hz
18:38:23: Playback device Default
18:38:23: ------------------------------------------
18:38:23: Using desktop audio input: Speakers (High Definition Audio Device)
18:38:23: ------------------------------------------
18:38:23: Using auxilary audio input: Microphone (High Definition Audio Device)
18:38:23: ------------------------------------------
18:38:23: Audio Encoding: AAC
18:38:23:     bitrate: 160
18:38:23: Using graphics capture
18:38:23: ------------------------------------------
18:38:23: Video Encoding: x264
18:38:23:     fps: 30
18:38:23:     width: 1280, height: 720
18:38:23:     preset: veryfast
18:38:23:     profile: high
18:38:23:     keyint: 60
18:38:23:     CBR: yes
18:38:23:     CFR: no
18:38:23:     max bitrate: 2500
18:38:23:     buffer size: 2500
18:38:23: ------------------------------------------
18:38:23: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 352800, samples per sec is 44100
18:38:23: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
18:38:23: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
18:38:26: Using RTMP service: Twitch / Justin.tv
18:38:26:   Server selection: rtmp://live-iad.justin.tv/app
18:38:26:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
18:38:26: Completed handshake with rtmp://live-iad.justin.tv/app in 220 ms.
18:38:27: SO_SNDBUF was at 8192
18:38:27: SO_SNDBUF is now 65536
18:38:31: RTMPPublisher::Socketloop: Increasing send buffer to ISB 131072 (buffer: 0 / 339968)
18:38:52: ------------------------------------------
18:38:52:     device: PC VGA Camer@ Plus,
18:38:52:     device id \\?\usb#vid_093a&pid_262a#5&8453510&0&2#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
18:38:52:     chosen type: RGB24, usingFourCC: false, res: 800x600 - 800x600, frameIntervals: 285714-3333333, fourCC: 00000000
18:38:52:     audio device: Disable,
18:38:52:     audio device id Disabled,
18:38:52: 
18:38:52: Using directshow input
18:38:54: RTMPPublisher::Socketloop: Increasing send buffer to ISB 262144 (buffer: 0 / 339968)
18:39:44: Total frames encoded: 2057, total frames duplicated: 9 (0.44%)
18:39:44: Total frames rendered: 2052, number of late frames: 1 (0.05%) (it's okay for some frames to be late)
18:39:44: RTMPPublisher::SocketLoop: Graceful loop exit
18:39:44: Average send payload: 8761 bytes, average send interval: 30 ms
18:39:44: Number of times waited to send: 0, Waited for a total of 0 bytes
18:39:44: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
18:39:44: Number of bytes sent: 21746282
18:39:44: 
18:39:44: Profiler time results:
18:39:44: 
18:39:44: ==============================================================
18:39:44: video thread frame - [100%] [avg time: 156981 ms] [children: 2.67%] [unaccounted: 97.3%]
18:39:44: | scene->Preprocess - [2.67%] [avg time: 4186.29 ms]
18:39:44: GPU download and conversion - [100%] [avg time: 173724 ms] [children: 102%] [unaccounted: -2.45%]
18:39:44: | flush - [98.8%] [avg time: 171631 ms]
18:39:44: | CopyResource - [3.65%] [avg time: 6347.25 ms]
18:39:44: | conversion to 4:2:0 - [1.15e-006%] [avg time: 0.002 ms]
18:39:44: Convert444Thread - [100%] [avg time: 4235.23 ms] [children: 100%] [unaccounted: 7.08e-005%]
18:39:44: | Convert444toNV12 - [100%] [avg time: 4235.23 ms]
18:39:44: encoder thread frame - [100%] [avg time: 33754.4 ms]
18:39:44: ==============================================================
18:39:44: 
18:39:44: 
18:39:44: Profiler CPU results:
18:39:44: 
18:39:44: ==============================================================
18:39:44: video thread frame - [cpu time: avg 0.175 ms, total 359.375 ms] [avg calls per frame: 1]
18:39:44: | scene->Preprocess - [cpu time: avg 0.129 ms, total 265.625 ms] [avg calls per frame: 1]
18:39:44: GPU download and conversion - [cpu time: avg 0.022 ms, total 46.875 ms] [avg calls per frame: 1]
18:39:44: | flush - [cpu time: avg 0.007 ms, total 15.625 ms] [avg calls per frame: 1]
18:39:44: | CopyResource - [cpu time: avg 0.007 ms, total 15.625 ms] [avg calls per frame: 1]
18:39:44: | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
18:39:44: Convert444Thread - [cpu time: avg 1.116 ms, total 2265.63 ms] [avg calls per frame: 1]
18:39:44: | Convert444toNV12 - [cpu time: avg 1.116 ms, total 2265.63 ms] [avg calls per frame: 1]
18:39:44: encoder thread frame - [cpu time: avg 1.082 ms, total 2203.13 ms] [avg calls per frame: 1]
18:39:44: ==============================================================
18:39:44: 
18:39:44: =====Stream End: 2013-10-12, 18:39:44=================================================
 

dodgepong

Administrator
Community Helper
I see you're using the "Force desktop audio to use video timestamps as a base for audio time" setting...does the problem persist if you turn that off?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
If the audio timing is off, first try "Use mic QPC timestamps" in advanced with 700 scene buffering time. If that fails to work, turn that off and use "Mic sync fix hack". One of those usually does the trick in these cases. In the future hopefully this will be fully automatic/fixed and the options won't be necessary
 

Boildown

Active Member
18:38:23: CFR: no
Turn constant frame rate on and post a new log file that consists of both at least two minutes of streaming and from when you encounter the problem.

18:38:23: Audio Format: 48000hz

18:38:23: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 352800, samples per sec is 44100
18:38:23: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
Just a shot in the dark, but try running OBS at 44100Hz instead of 48000Hz, since your audio inputs are both running at 44100Hz.
 

smite

New Member
I'm having this issue too, stereo-mix audio is over 3 seconds delayed behind the video and it is something that suddenly appeared in the last month or so. OBS has been working fine for me for a long time until recently. I haven't changed my settings until I tried to fix this problem, but nothing seems to affect it. It even occurs when recording local video.

04:32:10: Open Broadcaster Software v0.581b - 32bit (´・ω・`)
04:32:10: -------------------------------
04:32:10: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
04:32:10: CPU Speed: 3292MHz
04:32:10: Physical Memory: 4095MB Total, 4095MB Free
04:32:10: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
04:32:10: monitor 1: pos={0, 0}, size={1920, 1080}
04:32:10: monitor 2: pos={1920, 0}, size={1680, 1050}
04:32:10: Windows Version: 6.1 Build 7601 S
04:32:10: Aero is Enabled
04:32:10: -------------------------------
04:32:10: OBS Modules:
04:32:10: Base Address Module
04:32:10: 00090000 OBS.exe
04:32:10: 6EEB0000 OBSApi.dll
04:32:10: 737C0000 DShowPlugin.dll
04:32:10: 73720000 GraphicsCapture.dll
04:32:10: 73740000 NoiseGate.dll
04:32:10: 736E0000 PSVPlugin.dll
04:32:10: ------------------------------------------
04:32:10: Adapter 1
04:32:10: Video Adapter: NVIDIA GeForce GTX 460
04:32:10: Video Adapter Dedicated Video Memory: 1025966080
04:32:10: Video Adapter Shared System Memory: 3221106688
04:32:10: Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
04:32:10: Video Adapter Output 2: pos={1920, 0}, size={1680, 1050}, attached=true
04:32:10: =====Stream Start: 2013-10-18, 04:32:10===============================================
04:32:10: Multithreaded optimizations: On
04:32:10: Base resolution: 1280x720
04:32:10: Output resolution: 1280x720
04:32:10: ------------------------------------------
04:32:10: Loading up D3D10 on NVIDIA GeForce GTX 460...
04:32:10: ------------------------------------------
04:32:10: Audio Format: 44100hz
04:32:10: Playback device {0.0.0.00000000}.{c0381fa1-0479-42c7-b112-6be28437a0f8}
04:32:10: ------------------------------------------
04:32:10: Using desktop audio input: Speakers (Realtek High Definition Audio)
04:32:10: Using 5.1 speaker setup
04:32:11: ------------------------------------------
04:32:11: Using auxilary audio input: Microphone (Yeti Stereo Microphone)
04:32:11: ------------------------------------------
04:32:11: Audio Encoding: MP3
04:32:11: bitrate: 128
04:32:11: Using Window Capture
04:32:11: Using graphics capture
04:32:11: Scene buffering time set to 400
04:32:11: ------------------------------------------
04:32:11: Video Encoding: x264
04:32:11: fps: 30
04:32:11: width: 1280, height: 720
04:32:11: preset: veryfast
04:32:11: profile: high
04:32:11: keyint: 60
04:32:11: CBR: yes
04:32:11: CFR: no
04:32:11: max bitrate: 2000
04:32:11: buffer size: 2000
04:32:11: ------------------------------------------
04:32:11: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 4608000, samples per sec is 192000
04:32:11: MMDeviceAudioSource: Frequency for device 'Microphone (Yeti Stereo Microphone)' is 352800, samples per sec is 44100
04:32:12: SharedTexCapture hooked
04:32:13: Total frames encoded: 28, total frames duplicated: 0 (0.00%)
04:32:13: Total frames rendered: 27, number of late frames: 1 (3.70%) (it's okay for some frames to be late)
04:32:13:
04:32:13: Profiler time results:
04:32:13:
04:32:13: ==============================================================
04:32:13: video thread frame - [100%] [avg time: 68.334 ms] [children: 98.4%] [unaccounted: 1.6%]
04:32:13: | scene->Preprocess - [0.676%] [avg time: 0.462 ms]
04:32:13: | GPU download and conversion - [97.7%] [avg time: 66.777 ms] [children: 97.7%] [unaccounted: 0.00878%]
04:32:13: | | flush - [97.7%] [avg time: 66.757 ms]
04:32:13: | | CopyResource - [0.0176%] [avg time: 0.012 ms]
04:32:13: | | conversion to 4:2:0 - [0.00293%] [avg time: 0.002 ms]
04:32:13: Convert444Threads - [100%] [avg time: 0.523 ms] [children: 98.9%] [unaccounted: 1.15%]
04:32:13: | Convert444toNV12 - [98.9%] [avg time: 0.517 ms]
04:32:13: encoder thread frame - [100%] [avg time: 1.122 ms]
04:32:13: ==============================================================
04:32:13:
04:32:13:
04:32:13: Profiler CPU results:
04:32:13:
04:32:13: ==============================================================
04:32:13: video thread frame - [cpu time: avg 67.6 ms, total 1825.21 ms] [avg calls per frame: 1]
04:32:13: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:32:13: | GPU download and conversion - [cpu time: avg 67.022 ms, total 1809.61 ms] [avg calls per frame: 1]
04:32:13: | | flush - [cpu time: avg 67.022 ms, total 1809.61 ms] [avg calls per frame: 1]
04:32:13: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:32:13: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
04:32:13: Convert444Threads - [cpu time: avg 0.936 ms, total 46.8 ms] [avg calls per frame: 2]
04:32:13: | Convert444toNV12 - [cpu time: avg 0.936 ms, total 46.8 ms] [avg calls per frame: 2]
04:32:13: encoder thread frame - [cpu time: avg 0.65 ms, total 15.6 ms] [avg calls per frame: 1]
04:32:13: ==============================================================
04:32:13:
04:32:13: =====Stream End: 2013-10-18, 04:32:13=================================================
04:32:17: =====Stream Start: 2013-10-18, 04:32:17===============================================
04:32:17: Multithreaded optimizations: On
04:32:17: Base resolution: 1280x720
04:32:17: Output resolution: 1280x720
04:32:17: ------------------------------------------
04:32:17: Loading up D3D10 on NVIDIA GeForce GTX 460...
04:32:17: ------------------------------------------
04:32:17: Audio Format: 44100hz
04:32:17: Playback device {0.0.0.00000000}.{c0381fa1-0479-42c7-b112-6be28437a0f8}
04:32:17: ------------------------------------------
04:32:17: Using desktop audio input: Speakers (Realtek High Definition Audio)
04:32:17: Using 5.1 speaker setup
04:32:17: ------------------------------------------
04:32:17: Using auxilary audio input: Microphone (Yeti Stereo Microphone)
04:32:17: ------------------------------------------
04:32:17: Audio Encoding: MP3
04:32:17: bitrate: 128
04:32:17: Using Window Capture
04:32:17: Using graphics capture
04:32:17: Scene buffering time set to 400
04:32:17: ------------------------------------------
04:32:17: Video Encoding: x264
04:32:17: fps: 30
04:32:17: width: 1280, height: 720
04:32:17: preset: veryfast
04:32:17: profile: high
04:32:17: keyint: 60
04:32:17: CBR: yes
04:32:17: CFR: no
04:32:17: max bitrate: 2000
04:32:17: buffer size: 2000
04:32:17: ------------------------------------------
04:32:17: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 4608000, samples per sec is 192000
04:32:17: MMDeviceAudioSource: Frequency for device 'Microphone (Yeti Stereo Microphone)' is 352800, samples per sec is 44100
04:32:17: SharedTexCapture hooked
04:56:55: Capture window 0x001E076E invalid or changing, terminating capture
04:57:01: Total frames encoded: 44448, total frames duplicated: 147 (0.33%)
04:57:01: Total frames rendered: 44298, number of late frames: 4 (0.01%) (it's okay for some frames to be late)
04:57:01:
04:57:01: Profiler time results:
04:57:01:
04:57:01: ==============================================================
04:57:01: video thread frame - [100%] [avg time: 1.286 ms] [children: 55.7%] [unaccounted: 44.3%]
04:57:01: | scene->Preprocess - [42.3%] [avg time: 0.544 ms]
04:57:01: | GPU download and conversion - [13.4%] [avg time: 0.172 ms] [children: 12%] [unaccounted: 1.4%]
04:57:01: | | flush - [10.4%] [avg time: 0.134 ms]
04:57:01: | | CopyResource - [1.4%] [avg time: 0.018 ms]
04:57:01: | | conversion to 4:2:0 - [0.156%] [avg time: 0.002 ms]
04:57:01: Convert444Threads - [100%] [avg time: 0.496 ms] [children: 98.8%] [unaccounted: 1.21%]
04:57:01: | Convert444toNV12 - [98.8%] [avg time: 0.49 ms]
04:57:01: encoder thread frame - [100%] [avg time: 0.84 ms]
04:57:01: ==============================================================
04:57:01:
04:57:01:
04:57:01: Profiler CPU results:
04:57:01:
04:57:01: ==============================================================
04:57:01: video thread frame - [cpu time: avg 0.465 ms, total 20607.7 ms] [avg calls per frame: 1]
04:57:01: | scene->Preprocess - [cpu time: avg 0.003 ms, total 171.601 ms] [avg calls per frame: 1]
04:57:01: | GPU download and conversion - [cpu time: avg 0.102 ms, total 4524.03 ms] [avg calls per frame: 1]
04:57:01: | | flush - [cpu time: avg 0.068 ms, total 3026.42 ms] [avg calls per frame: 1]
04:57:01: | | CopyResource - [cpu time: avg 0.013 ms, total 577.204 ms] [avg calls per frame: 1]
04:57:01: | | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 109.2 ms] [avg calls per frame: 1]
04:57:01: Convert444Threads - [cpu time: avg 0.556 ms, total 49343.1 ms] [avg calls per frame: 2]
04:57:01: | Convert444toNV12 - [cpu time: avg 0.554 ms, total 49109.1 ms] [avg calls per frame: 2]
04:57:01: encoder thread frame - [cpu time: avg 0.044 ms, total 1996.81 ms] [avg calls per frame: 1]
04:57:01: ==============================================================
04:57:01:
04:57:01: =====Stream End: 2013-10-18, 04:57:01=================================================


Last game capture log:
2013-10-18, 04:32:11: we're booting up:
04:32:12: D3D9 Present
04:32:12: (half life scientist) everything.. seems to be in order
04:32:12: D3D9EndScene called
04:32:12: D3DPRESENT_PARAMETERS {
04:32:12: BackBufferWidth: 1280
04:32:12: BackBufferHeight: 720
04:32:12: BackBufferFormat: D3DFMT_A8R8G8B8
04:32:12: BackBufferCount: 1
04:32:12: MultiSampleType: D3DMULTISAMPLE_NONE
04:32:12: MultiSampleQuality: 0
04:32:12: SwapEffect: D3DSWAPEFFECT_DISCARD
04:32:12: hDeviceWindow: 1967982
04:32:12: Windowed: true
04:32:12: EnableAutoDepthStencil: false
04:32:12: AutoDepthStencilFormat: D3DFMT_UNKNOWN
04:32:12: Flags: None
04:32:12: FullScreen_RefreshRateInHz: 0
04:32:12: PresentationInterval: 1
04:32:12: };
04:32:12: successfully set up d3d9 hooks
04:32:12: D3D9Present called
04:32:12: DoD3D9GPUHook: success
04:32:12: D3DSURFACE_DESC {
04:32:12: Format: D3DFMT_A8R8G8B8
04:32:12: Type: D3DRTYPE_SURFACE
04:32:12: Usage: D3DUSAGE_RENDERTARGET
04:32:12: Pool: D3DPOOL_DEFAULT
04:32:12: MultiSampleType: D3DMULTISAMPLE_NONE
04:32:12: MultiSampleQuality: 0
04:32:12: Width: 1280
04:32:12: Height: 720
04:32:12: };
04:32:12: successfully capturing d3d9 frames via GPU
04:32:13: ---------------------- Cleared D3D9 Capture ----------------------
04:32:13: D3D9EndScene called
04:32:13: D3D9Present called
04:32:17: received restart event, capturing
04:32:17: DoD3D9GPUHook: success
04:32:17: D3DSURFACE_DESC {
04:32:17: Format: D3DFMT_A8R8G8B8
04:32:17: Type: D3DRTYPE_SURFACE
04:32:17: Usage: D3DUSAGE_RENDERTARGET
04:32:17: Pool: D3DPOOL_DEFAULT
04:32:17: MultiSampleType: D3DMULTISAMPLE_NONE
04:32:17: MultiSampleQuality: 0
04:32:17: Width: 1280
04:32:17: Height: 720
04:32:17: };
04:32:17: successfully capturing d3d9 frames via GPU
 

theinzane

Member
Boildown said:
18:38:23: CFR: no
Turn constant frame rate on and post a new log file that consists of both at least two minutes of streaming and from when you encounter the problem.

18:38:23: Audio Format: 48000hz

18:38:23: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 352800, samples per sec is 44100
18:38:23: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
Just a shot in the dark, but try running OBS at 44100Hz instead of 48000Hz, since your audio inputs are both running at 44100Hz.

I had this problem a little while ago and found that this was the problem. As soon as I matched up my audio outputs and the OBS output at either 44100 or 48000 the problem was solved. I recommend trying what this person suggested.
 

ozzbourne

New Member
Code:
15:06:54: Open Broadcaster Software v0.581b - 64bit ( ^ω^)
15:06:54: -------------------------------
15:06:54: CPU Name: AMD FX(tm)-6300 Six-Core Processor
15:06:54: CPU Speed: 4228MHz
15:06:54: Physical Memory:  8173MB Total, 6820MB Free
15:06:54: stepping id: 0, model 2, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 6, total cores 3
15:06:54: monitor 1: pos={0, 0}, size={1920, 1080}
15:06:54: Windows Version: 6.1 Build 7601 S
15:06:54: Aero is Disabled
15:06:54: -------------------------------
15:06:54: OBS Modules:
15:06:54: Base Address     Module
15:06:54: 000000003F7F0000 OBS.exe
15:06:54: 00000000EF050000 OBSApi.dll
15:06:54: 00000000F5010000 DShowPlugin.dll
15:06:54: 00000000F6BB0000 GraphicsCapture.dll
15:06:54: 00000000F88C0000 NoiseGate.dll
15:06:54: 00000000FA1F0000 PSVPlugin.dll
15:06:54: ------------------------------------------
15:06:54: Adapter 1
15:06:54:   Video Adapter: AMD Radeon HD 7800 Series
15:06:54:   Video Adapter Dedicated Video Memory: 2128814080
15:06:54:   Video Adapter Shared System Memory: 4016697344
15:06:54:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
15:06:54: =====Stream Start: 2013-10-18, 15:06:54===============================================
15:06:54:   Multithreaded optimizations: On
15:06:54:   Base resolution: 1920x1080
15:06:54:   Output resolution: 1280x720
15:06:54: ------------------------------------------
15:06:54: Loading up D3D10 on AMD Radeon HD 7800 Series...
15:06:54: ------------------------------------------
15:06:54: Audio Format: 44100hz
15:06:54: Playback device Default
15:06:54: ------------------------------------------
15:06:54: Using desktop audio input: Speakers (High Definition Audio Device)
15:06:54: ------------------------------------------
15:06:54: Using auxilary audio input: Microphone (High Definition Audio Device)
15:06:54: ------------------------------------------
15:06:54: Audio Encoding: AAC
15:06:54:     bitrate: 160
15:06:54: ------------------------------------------
15:06:54:     device: PC VGA Camer@ Plus,
15:06:54:     device id \\?\usb#vid_093a&pid_262a#5&8453510&0&2#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
15:06:54:     chosen type: RGB24, usingFourCC: false, res: 800x600 - 800x600, frameIntervals: 285714-3333333
15:06:54:     use buffering: false - 0, fourCC: 00000000
15:06:54:     audio device: Disable,
15:06:54:     audio device id Disabled,
15:06:54: 
15:06:55: Using directshow input
15:06:55: Using Monitor Capture
15:06:55: Scene buffering time set to 700
15:06:55: ------------------------------------------
15:06:55: Video Encoding: x264
15:06:55:     fps: 30
15:06:55:     width: 1280, height: 720
15:06:55:     preset: veryfast
15:06:55:     profile: high
15:06:55:     keyint: 60
15:06:55:     CBR: yes
15:06:55:     CFR: yes
15:06:55:     max bitrate: 2500
15:06:55:     buffer size: 2500
15:06:55: ------------------------------------------
15:06:55: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 352800, samples per sec is 44100
15:06:55: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
15:06:57: Using RTMP service: Twitch / Justin.tv
15:06:57:   Server selection: rtmp://live-iad.justin.tv/app
15:06:57:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
15:06:58: Completed handshake with rtmp://live-iad.justin.tv/app in 229 ms.
15:06:58: SO_SNDBUF was at 8192
15:06:58: SO_SNDBUF is now 65536
15:07:00: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 20903 / 339968)
15:08:59: RTMPPublisher::SocketLoop: Stalled for 3663 ms to write 339260 bytes (buffer: 0 / 339968), unstable connection?
15:12:49: Total frames encoded: 9079, total frames duplicated: 463 (5.10%)
15:12:49: Total frames rendered: 9082, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
15:12:49: RTMPPublisher::SocketLoop: Graceful loop exit
15:12:49: Average send payload: 7531 bytes, average send interval: 26 ms
15:12:49: Number of times waited to send: 2, Waited for a total of 8194 bytes
15:12:49: Number of b-frames dropped: 33 (0.37%), Number of p-frames dropped: 33 (0.37%), Total 66 (0.74%)
15:12:49: Number of bytes sent: 99304987
15:12:49: 
15:12:49: Profiler time results:
15:12:49: 
15:12:49: ==============================================================
15:12:49: video thread frame - [100%] [avg time: 1902.94 ms] [children: 2.34e+004%] [unaccounted: -2.33e+004%]
15:12:49: | scene->Preprocess - [150%] [avg time: 2845.9 ms]
15:12:49: | GPU download and conversion - [2.33e+004%] [avg time: 442644 ms] [children: 2.54e+004%] [unaccounted: -2.11e+003%]
15:12:49: | | flush - [2.53e+004%] [avg time: 481423 ms]
15:12:49: | | CopyResource - [74.7%] [avg time: 1422.19 ms]
15:12:49: | | conversion to 4:2:0 - [0.00252%] [avg time: 0.048 ms]
15:12:49: Convert444Thread - [100%] [avg time: 130856 ms] [children: 92%] [unaccounted: 7.97%]
15:12:49: | Convert444toNV12 - [92%] [avg time: 120425 ms]
15:12:49: encoder thread frame - [100%] [avg time: 193934 ms]
15:12:49: ==============================================================
15:12:49: 
15:12:49: 
15:12:49: Profiler CPU results:
15:12:49: 
15:12:49: ==============================================================
15:12:49: video thread frame - [cpu time: avg 7.924 ms, total 71968.8 ms] [avg calls per frame: 1]
15:12:49: | scene->Preprocess - [cpu time: avg 6.561 ms, total 59593.8 ms] [avg calls per frame: 1]
15:12:49: | GPU download and conversion - [cpu time: avg 0.073 ms, total 671.875 ms] [avg calls per frame: 1]
15:12:49: | | flush - [cpu time: avg 0.048 ms, total 437.5 ms] [avg calls per frame: 1]
15:12:49: | | CopyResource - [cpu time: avg 0.015 ms, total 140.625 ms] [avg calls per frame: 1]
15:12:49: | | conversion to 4:2:0 - [cpu time: avg 0.001 ms, total 15.625 ms] [avg calls per frame: 1]
15:12:49: Convert444Thread - [cpu time: avg 0.898 ms, total 8140.63 ms] [avg calls per frame: 1]
15:12:49: | Convert444toNV12 - [cpu time: avg 0.893 ms, total 8093.75 ms] [avg calls per frame: 1]
15:12:49: encoder thread frame - [cpu time: avg 0.933 ms, total 8453.13 ms] [avg calls per frame: 1]
15:12:49: ==============================================================
15:12:49: 
15:12:49: =====Stream End: 2013-10-18, 15:12:49=================================================
 

smite

New Member
I tried every setting under the sun and none of them worked. But I did a restart and reinstalled my sound drivers and managed to have a normal stream afterwards with no audio delay. I'll post again with an update as to whether the problem remains resolved.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
If your mic is after the video, first, turn up your scene buffering time to like 1000 in advanced, and then:
  • First try "Mic QPC timestamps" in advanced, this feature is because some microphones delay their audio (or the driver does)
  • If that fails, turn that off, see if using a negative "Mic audio offset" in audio settings can help you to manually sync the audio. The max negative is equal to the amount of scene buffering time you're using.
  • Optionally, sometimes you have to use "Mic sync fix hack" in advanced in case the mic is "bursting" out its data, but generally it's a last resort and more of a duct-tape solution I implemented for certain computers/devices, should rarely have to actually be used

The audio subsystem is a bit sub-par (currently completely overhauling it in the rewrite as we speak) so mic issues aren't perfect but the tools to fix mic sync are all available if needed.

If it's desktop audio sync, then the only real way to fix that is "sync desktop audio to video timestamps" in advanced. Very rarely some computers will give bad timestamp data for desktop audio (very very rarely) and this option fixes that -- generally I don't recommend it otherwise because it can make desktop audio timing slightly less accurate than if the device was reporting the proper timestamps. This is pretty much always a system issue.

If you get background noise that's usually due to the microphone itself and there's not much you can do about that other than noise gate.

If you get weird buzzing sometimes that can be a motherboard/port thing that means that there's interference with other devices or the motherboard itself on the system.

If you get even more strange static/pops that's almost always definitely due to motherboard/port thing, or USB interference (I have no idea why this happens but it does).

OBS just reads your mic data, it doesn't try to modify it or mangle it, it just reads it.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
If it's delayed, and you've tried all of the options above, you can manually adjust mic audio time via the "mic time offset" in audio settings. If it's desktop sound you're having issues with (that should -never- be the case) then you need to use "global audio time offset" in advanced. Both of these options can be set with positive numbers if you need the sound to be more forward in time, or negative numbers if you need the sound to be further backward in time, in milliseconds (-1000 for example is backward in time by 1 second).

The amount of negative time offset you are allowed to use is relative to how much "Scene buffering time" you have set in advanced. If you need to set your audio time further backward, increase scene buffering time to compensate.
 
Top