Question / Help Audio vs Game Lag

I'm a new user of OBS and I seem to have thing setup the way I'd like them but the only issue I'm currently running into is lag from what you hear to what you see? Since I use a webcame and a blue snowball mic you were and see me say something but it lags by about 2-4sec. I've been messing around with settings and I just seem to make things worse. I was praying that someone here could help and if so I'd greatly appreciate it.

Log File:
How the app is running:
OBS runs well I just have a little lag that I would like fixed
Settings:
Video Encoding, Max Bitrate 2000 / Buffer Size 2600
Audio Encoding, AAC / Bitrate 160 / Formate 44.0khz stereo
Broadcast Setting, “The problem is with local recordings and streams on twitch”
Video, Video Adapter: Nivida GeForce GTX 680 / Resolution 1920x1080 / Resolution Downscale: 1.50 (1280x720) / Filter: Bilinear (fastest) / FPS:60
Audio, Desktop Audio: Default / Microphone: Blue Snowball / Desktop Boost: 01 / Mic Boost: 01 / Mic Time Offset: 00
Advanced, http://gyazo.com/108e7918e6d462bbe2c1f26af9ad304f
Microphone Noise Gate, http://gyazo.com/2ead2af30951f9ed9307754e51392e75
Sources being used:
2: video capture / 1 being webcam / 2 being elgato game capture hd
System Spec's:
http://gyazo.com/abef87e8d3867404a27ed82fdd4f210f
Nework details:
Internet speeds - http://gyazo.com/4bed72a14d66a057534e806056e9bc18
I'm hard wired to my PC so I never deal with frame drops. At most Ill have 40 frames drop out of 500,000 so thats nothing.

If there is any other information needed please let me know.

Thank you

Josh
 
I really hope this is what you wanted, lol. There is a lot of stuff to read.

Code:
19:52:37: Open Broadcaster Software v0.571b - 32bit (´・ω・`)
19:52:37: -------------------------------
19:52:37: CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
19:52:37: CPU Speed: 3500MHz
19:52:37: Physical Memory:  4095MB Total, 4095MB Free
19:52:37: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
19:52:37: monitor 1: pos={0, 0}, size={1920, 1080}
19:52:37: monitor 2: pos={1920, 0}, size={1920, 1080}
19:52:37: Windows Version: 6.1 Build 7601 S
19:52:37: Aero is Enabled
19:52:37: -------------------------------
19:52:37: OBS Modules:
19:52:37: Base Address     Module
19:52:37: 00E70000         OBS.exe
19:52:37: 66960000         OBSApi.dll
19:52:37: 6F710000         DShowPlugin.dll
19:52:37: 73280000         GraphicsCapture.dll
19:52:37: 73110000         NoiseGate.dll
19:52:37: 73060000         PSVPlugin.dll
19:52:37: ------------------------------------------
19:52:37: Adapter 1
19:52:37:   Video Adapter: NVIDIA GeForce GTX 680
19:52:37:   Video Adapter Dedicated Video Memory: 2087387136
19:52:37:   Video Adapter Shared System Memory: 2147807232
19:52:37: ------------------------------------------
19:52:37: Adapter 2
19:52:37:   Video Adapter: Intel(R) HD Graphics 4000
19:52:37:   Video Adapter Dedicated Video Memory: 67108864
19:52:37:   Video Adapter Shared System Memory: 1711276032
19:52:37: =====Stream Start: 2013-09-30, 19:52:37===============================================
19:52:37:   Multithreaded optimizations: On
19:52:37:   Base resolution: 1920x1080
19:52:37:   Output resolution: 1280x720
19:52:37: ------------------------------------------
19:52:37: Loading up D3D10 on NVIDIA GeForce GTX 680...
19:52:37: ------------------------------------------
19:52:37: Audio Format: 48000hz
19:52:37: Playback device {0.0.0.00000000}.{097bbce7-25e2-4dbb-89e5-8855fde6eb8e}
19:52:37: ------------------------------------------
19:52:37: Using desktop audio input: Realtek Digital Output (Realtek High Definition Audio)
19:52:37: ------------------------------------------
19:52:37: Using auxilary audio input: Microphone (Blue Snowball)
19:52:37: ------------------------------------------
19:52:37: Audio Encoding: AAC
19:52:37:     bitrate: 160
19:52:37: ------------------------------------------
19:52:37:     device: Elgato Game Capture HD,
19:52:37:     device id {39F50F4C-99E1-464a-B6F9-D605B4FB5918},
19:52:37:     chosen type: UYVY, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-333333, fourCC: 'UYVY'
19:52:37: 
19:52:37:     device audio info - bits per sample: 16, channels: 2, samples per sec: 48000, block size: 4
19:52:38: Using directshow input
19:52:38: ------------------------------------------
19:52:38: Video Encoding: x264
19:52:38:     fps: 60
19:52:38:     width: 1280, height: 720
19:52:38:     preset: superfast
19:52:38:     profile: high
19:52:38:     keyint: 120
19:52:38:     CBR: yes
19:52:38:     CFR: no
19:52:38:     max bitrate: 2000
19:52:38:     buffer size: 2600
19:52:38: ------------------------------------------
19:52:38: MMDeviceAudioSource: Frequency for device 'Realtek Digital Output (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
19:52:38: MMDeviceAudioSource: Frequency for device 'Microphone (Blue Snowball)' is 176400, samples per sec is 44100
19:52:38: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
19:52:53: ------------------------------------------
19:52:53:     device: Logitech HD Pro Webcam C920,
19:52:53:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&346c803a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
19:52:53:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
19:52:53:     audio device: Disable,
19:52:53:     audio device id Disabled,
19:52:53: 
19:53:57: ------------------------------------------
19:53:57:     device: Logitech HD Pro Webcam C920,
19:53:57:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&346c803a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
19:53:57:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
19:53:57:     audio device: Disable,
19:53:57:     audio device id Disabled,
19:53:57: 
19:55:25: ------------------------------------------
19:55:25:     device: Logitech HD Pro Webcam C920,
19:55:25:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&346c803a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
19:55:25:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
19:55:25:     audio device: Disable,
19:55:25:     audio device id Disabled,
19:55:25: 
19:56:09: Using graphics capture
19:56:46: Capture window 0x00100A24 invalid or changing, terminating capture
19:56:46: Using bitmap image
20:03:35: Using graphics capture
20:03:53: Total frames encoded: 40474, total frames duplicated: 3540 (8.75%)
20:03:53: Total frames rendered: 40155, number of late frames: 15 (0.04%) (it's okay for some frames to be late)
20:03:53: 
20:03:53: Profiler time results:
20:03:53: 
20:03:53: ==============================================================
20:03:53: video thread frame - [100%] [avg time: 2.707 ms] [children: 45%] [unaccounted: 55%]
20:03:53: | scene->Preprocess - [45%] [avg time: 1.219 ms]
20:03:53: GPU download and conversion - [100%] [avg time: 0.109 ms] [children: 78%] [unaccounted: 22%]
20:03:53: | flush - [47.7%] [avg time: 0.052 ms]
20:03:53: | CopyResource - [25.7%] [avg time: 0.028 ms]
20:03:53: | conversion to 4:2:0 - [4.59%] [avg time: 0.005 ms]
20:03:53: Convert444Threads - [100%] [avg time: 0.714 ms] [children: 99.3%] [unaccounted: 0.7%]
20:03:53: | Convert444toNV12 - [99.3%] [avg time: 0.709 ms]
20:03:53: encoder thread frame - [100%] [avg time: 1.051 ms]
20:03:53: ==============================================================
20:03:53: 
20:03:53: 
20:03:53: Profiler CPU results:
20:03:53: 
20:03:53: ==============================================================
20:03:53: video thread frame - [cpu time: avg 1.109 ms, total 44569.5 ms] [avg calls per frame: 1]
20:03:53: | scene->Preprocess - [cpu time: avg 0.642 ms, total 25818.2 ms] [avg calls per frame: 1]
20:03:53: GPU download and conversion - [cpu time: avg 0.066 ms, total 2683.22 ms] [avg calls per frame: 1]
20:03:53: | flush - [cpu time: avg 0.031 ms, total 1248.01 ms] [avg calls per frame: 1]
20:03:53: | CopyResource - [cpu time: avg 0.024 ms, total 998.407 ms] [avg calls per frame: 1]
20:03:53: | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 93.6 ms] [avg calls per frame: 1]
20:03:53: Convert444Threads - [cpu time: avg 0.741 ms, total 59467.6 ms] [avg calls per frame: 2]
20:03:53: | Convert444toNV12 - [cpu time: avg 0.736 ms, total 59140 ms] [avg calls per frame: 2]
20:03:53: encoder thread frame - [cpu time: avg 0.472 ms, total 19125.7 ms] [avg calls per frame: 1]
20:03:53: ==============================================================
20:03:53: 
20:03:53: =====Stream End: 2013-09-30, 20:03:53=================================================
20:03:54: =====Stream Start: 2013-09-30, 20:03:54===============================================
20:03:54:   Multithreaded optimizations: On
20:03:54:   Base resolution: 1920x1080
20:03:54:   Output resolution: 1280x720
20:03:54: ------------------------------------------
20:03:54: Loading up D3D10 on NVIDIA GeForce GTX 680...
20:03:54: ------------------------------------------
20:03:54: Audio Format: 48000hz
20:03:54: Playback device {0.0.0.00000000}.{097bbce7-25e2-4dbb-89e5-8855fde6eb8e}
20:03:54: ------------------------------------------
20:03:54: Using desktop audio input: Realtek Digital Output (Realtek High Definition Audio)
20:03:54: ------------------------------------------
20:03:54: Using auxilary audio input: Microphone (Blue Snowball)
20:03:54: ------------------------------------------
20:03:54: Audio Encoding: AAC
20:03:54:     bitrate: 160
20:03:54: ------------------------------------------
20:03:54:     device: Logitech HD Pro Webcam C920,
20:03:54:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&346c803a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:03:54:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
20:03:54:     audio device: Disable,
20:03:54:     audio device id Disabled,
20:03:54: 
20:03:55: Using directshow input
20:03:55: Using bitmap image
20:03:55: Using graphics capture
20:03:55: ------------------------------------------
20:03:55: Video Encoding: x264
20:03:55:     fps: 60
20:03:55:     width: 1280, height: 720
20:03:55:     preset: superfast
20:03:55:     profile: high
20:03:55:     keyint: 120
20:03:55:     CBR: yes
20:03:55:     CFR: no
20:03:55:     max bitrate: 2000
20:03:55:     buffer size: 2600
20:03:55: ------------------------------------------
20:03:55: MMDeviceAudioSource: Frequency for device 'Realtek Digital Output (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
20:03:55: MMDeviceAudioSource: Frequency for device 'Microphone (Blue Snowball)' is 176400, samples per sec is 44100
20:03:55: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
20:03:57: SharedTexCapture hooked
20:04:06: Total frames encoded: 625, total frames duplicated: 147 (23.52%)
20:04:06: Total frames rendered: 631, number of late frames: 3 (0.48%) (it's okay for some frames to be late)
20:04:06: 
20:04:06: Profiler time results:
20:04:06: 
20:04:06: ==============================================================
20:04:06: video thread frame - [100%] [avg time: 4.971 ms] [children: 37.9%] [unaccounted: 62.1%]
20:04:06: | scene->Preprocess - [37.9%] [avg time: 1.886 ms]
20:04:06: GPU download and conversion - [100%] [avg time: 0.3 ms] [children: 88%] [unaccounted: 12%]
20:04:06: | flush - [75%] [avg time: 0.225 ms]
20:04:06: | CopyResource - [11.7%] [avg time: 0.035 ms]
20:04:06: | conversion to 4:2:0 - [1.33%] [avg time: 0.004 ms]
20:04:06: Convert444Threads - [100%] [avg time: 0.799 ms] [children: 99.4%] [unaccounted: 0.626%]
20:04:06: | Convert444toNV12 - [99.4%] [avg time: 0.794 ms]
20:04:06: encoder thread frame - [100%] [avg time: 0.925 ms]
20:04:06: ==============================================================
20:04:06: 
20:04:06: 
20:04:06: Profiler CPU results:
20:04:06: 
20:04:06: ==============================================================
20:04:06: video thread frame - [cpu time: avg 1.038 ms, total 655.204 ms] [avg calls per frame: 1]
20:04:06: | scene->Preprocess - [cpu time: avg 0.667 ms, total 421.203 ms] [avg calls per frame: 1]
20:04:06: GPU download and conversion - [cpu time: avg 0.049 ms, total 31.2 ms] [avg calls per frame: 1]
20:04:06: | flush - [cpu time: avg 0.024 ms, total 15.6 ms] [avg calls per frame: 1]
20:04:06: | CopyResource - [cpu time: avg 0.026 ms, total 15.6 ms] [avg calls per frame: 1]
20:04:06: | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:04:06: Convert444Threads - [cpu time: avg 0.963 ms, total 1154.41 ms] [avg calls per frame: 2]
20:04:06: | Convert444toNV12 - [cpu time: avg 0.963 ms, total 1154.41 ms] [avg calls per frame: 2]
20:04:06: encoder thread frame - [cpu time: avg 0.311 ms, total 187.201 ms] [avg calls per frame: 1]
20:04:06: ==============================================================
20:04:06: 
20:04:06: =====Stream End: 2013-09-30, 20:04:06=================================================
20:04:07: =====Stream Start: 2013-09-30, 20:04:07===============================================
20:04:07:   Multithreaded optimizations: On
20:04:07:   Base resolution: 1920x1080
20:04:07:   Output resolution: 1280x720
20:04:07: ------------------------------------------
20:04:07: Loading up D3D10 on NVIDIA GeForce GTX 680...
20:04:07: ------------------------------------------
20:04:07: Audio Format: 48000hz
20:04:07: Playback device {0.0.0.00000000}.{097bbce7-25e2-4dbb-89e5-8855fde6eb8e}
20:04:07: ------------------------------------------
20:04:07: Using desktop audio input: Realtek Digital Output (Realtek High Definition Audio)
20:04:07: ------------------------------------------
20:04:07: Using auxilary audio input: Microphone (Blue Snowball)
20:04:07: ------------------------------------------
20:04:07: Audio Encoding: AAC
20:04:07:     bitrate: 160
20:04:07: ------------------------------------------
20:04:07:     device: Logitech HD Pro Webcam C920,
20:04:07:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&346c803a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:04:07:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
20:04:07:     audio device: Disable,
20:04:07:     audio device id Disabled,
20:04:07: 
20:04:07: Using directshow input
20:04:07: Using bitmap image
20:04:07: Using graphics capture
20:04:07: ------------------------------------------
20:04:07: Video Encoding: x264
20:04:07:     fps: 60
20:04:07:     width: 1280, height: 720
20:04:07:     preset: superfast
20:04:07:     profile: high
20:04:07:     keyint: 120
20:04:07:     CBR: yes
20:04:07:     CFR: no
20:04:07:     max bitrate: 2000
20:04:07:     buffer size: 2600
20:04:07: ------------------------------------------
20:04:07: MMDeviceAudioSource: Frequency for device 'Realtek Digital Output (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
20:04:07: MMDeviceAudioSource: Frequency for device 'Microphone (Blue Snowball)' is 176400, samples per sec is 44100
20:04:08: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
20:04:09: Using RTMP service: Twitch / Justin.tv
20:04:09:   Server selection: rtmp://live.justin.tv/app
20:04:09:   Interface: Broadcom NetLink (TM) Gigabit Ethernet (ethernet, 1000 mbps)
20:04:09: Completed handshake with rtmp://live.justin.tv/app in 149 ms.
20:04:10: SO_SNDBUF was at 8192
20:04:10: SO_SNDBUF is now 65536
20:10:05: SharedTexCapture hooked
20:11:30: Capture window 0x00090A54 invalid or changing, terminating capture
20:11:44: SharedTexCapture hooked
20:12:56: Capture window 0x00160A24 invalid or changing, terminating capture
20:12:58: Total frames encoded: 31818, total frames duplicated: 2998 (9.42%)
20:12:58: Total frames rendered: 31817, number of late frames: 6 (0.02%) (it's okay for some frames to be late)
20:12:59: RTMPPublisher::SocketLoop: Graceful loop exit
20:12:59: Average send payload: 5048 bytes, average send interval: 19 ms
20:12:59: Number of times waited to send: 0, Waited for a total of 0 bytes
20:12:59: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
20:12:59: Number of bytes sent: 138788547
20:12:59: 
20:12:59: Profiler time results:
20:12:59: 
20:12:59: ==============================================================
20:12:59: video thread frame - [100%] [avg time: 2.9 ms] [children: 37.7%] [unaccounted: 62.3%]
20:12:59: | scene->Preprocess - [37.7%] [avg time: 1.092 ms]
20:12:59: GPU download and conversion - [100%] [avg time: 0.281 ms] [children: 55.2%] [unaccounted: 44.8%]
20:12:59: | flush - [40.6%] [avg time: 0.114 ms]
20:12:59: | CopyResource - [12.5%] [avg time: 0.035 ms]
20:12:59: | conversion to 4:2:0 - [2.14%] [avg time: 0.006 ms]
20:12:59: Convert444Threads - [100%] [avg time: 0.842 ms] [children: 99.2%] [unaccounted: 0.831%]
20:12:59: | Convert444toNV12 - [99.2%] [avg time: 0.835 ms]
20:12:59: encoder thread frame - [100%] [avg time: 1.02 ms]
20:12:59: ==============================================================
20:12:59: 
20:12:59: 
20:12:59: Profiler CPU results:
20:12:59: 
20:12:59: ==============================================================
20:12:59: video thread frame - [cpu time: avg 1.264 ms, total 40217.1 ms] [avg calls per frame: 1]
20:12:59: | scene->Preprocess - [cpu time: avg 0.718 ms, total 22869.7 ms] [avg calls per frame: 1]
20:12:59: GPU download and conversion - [cpu time: avg 0.066 ms, total 2121.61 ms] [avg calls per frame: 1]
20:12:59: | flush - [cpu time: avg 0.03 ms, total 967.206 ms] [avg calls per frame: 1]
20:12:59: | CopyResource - [cpu time: avg 0.02 ms, total 639.602 ms] [avg calls per frame: 1]
20:12:59: | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 78.002 ms] [avg calls per frame: 1]
20:12:59: Convert444Threads - [cpu time: avg 0.858 ms, total 54553.6 ms] [avg calls per frame: 2]
20:12:59: | Convert444toNV12 - [cpu time: avg 0.855 ms, total 54366.4 ms] [avg calls per frame: 2]
20:12:59: encoder thread frame - [cpu time: avg 0.374 ms, total 11918.5 ms] [avg calls per frame: 1]
20:12:59: ==============================================================
20:12:59: 
20:12:59: =====Stream End: 2013-09-30, 20:12:59=================================================
20:13:00: =====Stream Start: 2013-09-30, 20:13:00===============================================
20:13:00:   Multithreaded optimizations: On
20:13:00:   Base resolution: 1920x1080
20:13:00:   Output resolution: 1280x720
20:13:00: ------------------------------------------
20:13:00: Loading up D3D10 on NVIDIA GeForce GTX 680...
20:13:00: ------------------------------------------
20:13:00: Audio Format: 48000hz
20:13:00: Playback device {0.0.0.00000000}.{097bbce7-25e2-4dbb-89e5-8855fde6eb8e}
20:13:00: ------------------------------------------
20:13:00: Using desktop audio input: Realtek Digital Output (Realtek High Definition Audio)
20:13:00: ------------------------------------------
20:13:00: Using auxilary audio input: Microphone (Blue Snowball)
20:13:00: ------------------------------------------
20:13:00: Audio Encoding: AAC
20:13:00:     bitrate: 160
20:13:00: ------------------------------------------
20:13:00:     device: Logitech HD Pro Webcam C920,
20:13:00:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&346c803a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:13:00:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
20:13:00:     audio device: Disable,
20:13:00:     audio device id Disabled,
20:13:00: 
20:13:00: Using directshow input
20:13:00: Using bitmap image
20:13:00: Using graphics capture
20:13:00: ------------------------------------------
20:13:00: Video Encoding: x264
20:13:00:     fps: 60
20:13:00:     width: 1280, height: 720
20:13:00:     preset: superfast
20:13:00:     profile: high
20:13:00:     keyint: 120
20:13:00:     CBR: yes
20:13:00:     CFR: no
20:13:00:     max bitrate: 2000
20:13:00:     buffer size: 2600
20:13:00: ------------------------------------------
20:13:00: MMDeviceAudioSource: Frequency for device 'Realtek Digital Output (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
20:13:00: MMDeviceAudioSource: Frequency for device 'Microphone (Blue Snowball)' is 176400, samples per sec is 44100
20:13:00: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
20:13:01: Using RTMP service: Twitch / Justin.tv
20:13:01:   Server selection: rtmp://live.justin.tv/app
20:13:03:   Interface: Broadcom NetLink (TM) Gigabit Ethernet (ethernet, 1000 mbps)
20:13:04: Completed handshake with rtmp://live.justin.tv/app in 146 ms.
20:13:05: SO_SNDBUF was at 8192
20:13:05: SO_SNDBUF is now 65536
20:13:06: SharedTexCapture hooked
20:14:22: SharedTexCapture hooked
20:15:21: Capture window 0x0019053C invalid or changing, terminating capture
20:15:37: Total frames encoded: 9386, total frames duplicated: 1931 (20.57%)
20:15:37: Total frames rendered: 9389, number of late frames: 5 (0.05%) (it's okay for some frames to be late)
20:15:37: RTMPPublisher::SocketLoop: Graceful loop exit
20:15:37: Average send payload: 5168 bytes, average send interval: 19 ms
20:15:37: Number of times waited to send: 0, Waited for a total of 0 bytes
20:15:37: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
20:15:37: Number of bytes sent: 39869054
20:15:38: 
20:15:38: Profiler time results:
20:15:38: 
20:15:38: ==============================================================
20:15:38: video thread frame - [100%] [avg time: 4.093 ms] [children: 51.5%] [unaccounted: 48.5%]
20:15:38: | scene->Preprocess - [51.5%] [avg time: 2.107 ms]
20:15:38: GPU download and conversion - [100%] [avg time: 0.412 ms] [children: 36.2%] [unaccounted: 63.8%]
20:15:38: | flush - [26.5%] [avg time: 0.109 ms]
20:15:38: | CopyResource - [8.25%] [avg time: 0.034 ms]
20:15:38: | conversion to 4:2:0 - [1.46%] [avg time: 0.006 ms]
20:15:38: Convert444Threads - [100%] [avg time: 0.709 ms] [children: 98.9%] [unaccounted: 1.13%]
20:15:38: | Convert444toNV12 - [98.9%] [avg time: 0.701 ms]
20:15:38: encoder thread frame - [100%] [avg time: 0.929 ms]
20:15:38: ==============================================================
20:15:38: 
20:15:38: 
20:15:38: Profiler CPU results:
20:15:38: 
20:15:38: ==============================================================
20:15:38: video thread frame - [cpu time: avg 1.109 ms, total 10420.9 ms] [avg calls per frame: 1]
20:15:38: | scene->Preprocess - [cpu time: avg 0.694 ms, total 6520.84 ms] [avg calls per frame: 1]
20:15:38: GPU download and conversion - [cpu time: avg 0.049 ms, total 468.002 ms] [avg calls per frame: 1]
20:15:38: | flush - [cpu time: avg 0.014 ms, total 140.401 ms] [avg calls per frame: 1]
20:15:38: | CopyResource - [cpu time: avg 0.013 ms, total 124.801 ms] [avg calls per frame: 1]
20:15:38: | conversion to 4:2:0 - [cpu time: avg 0.005 ms, total 46.8 ms] [avg calls per frame: 1]
20:15:38: Convert444Threads - [cpu time: avg 0.725 ms, total 13587.7 ms] [avg calls per frame: 2]
20:15:38: | Convert444toNV12 - [cpu time: avg 0.721 ms, total 13509.7 ms] [avg calls per frame: 2]
20:15:38: encoder thread frame - [cpu time: avg 0.228 ms, total 2137.21 ms] [avg calls per frame: 1]
20:15:38: ==============================================================
20:15:38: 
20:15:38: =====Stream End: 2013-09-30, 20:15:38=================================================
20:16:00: =====Stream Start: 2013-09-30, 20:16:00===============================================
20:16:00:   Multithreaded optimizations: On
20:16:00:   Base resolution: 1920x1080
20:16:00:   Output resolution: 1280x720
20:16:00: ------------------------------------------
20:16:00: Loading up D3D10 on NVIDIA GeForce GTX 680...
20:16:00: ------------------------------------------
20:16:00: Audio Format: 48000hz
20:16:00: Playback device {0.0.0.00000000}.{097bbce7-25e2-4dbb-89e5-8855fde6eb8e}
20:16:00: ------------------------------------------
20:16:00: Using desktop audio input: Realtek Digital Output (Realtek High Definition Audio)
20:16:00: ------------------------------------------
20:16:00: Using auxilary audio input: Microphone (Blue Snowball)
20:16:00: ------------------------------------------
20:16:00: Audio Encoding: AAC
20:16:00:     bitrate: 160
20:16:00: ------------------------------------------
20:16:00:     device: Logitech HD Pro Webcam C920,
20:16:00:     device id \\?\usb#vid_046d&pid_082d&mi_00#7&346c803a&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
20:16:00:     chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
20:16:00:     audio device: Disable,
20:16:00:     audio device id Disabled,
20:16:00: 
20:16:01: Using directshow input
20:16:01: Using bitmap image
20:16:01: Using graphics capture
20:16:01: ------------------------------------------
20:16:01: Video Encoding: x264
20:16:01:     fps: 60
20:16:01:     width: 1280, height: 720
20:16:01:     preset: superfast
20:16:01:     profile: high
20:16:01:     keyint: 120
20:16:01:     CBR: yes
20:16:01:     CFR: no
20:16:01:     max bitrate: 2000
20:16:01:     buffer size: 2600
20:16:01: ------------------------------------------
20:16:01: MMDeviceAudioSource: Frequency for device 'Realtek Digital Output (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
20:16:01: MMDeviceAudioSource: Frequency for device 'Microphone (Blue Snowball)' is 176400, samples per sec is 44100
20:16:01: Syncing audio to video time (WARNING: you should not be doing this if you are just having webcam desync, that's a separate issue)
20:16:02: Using RTMP service: Twitch / Justin.tv
20:16:02:   Server selection: rtmp://live.justin.tv/app
20:16:02:   Interface: Broadcom NetLink (TM) Gigabit Ethernet (ethernet, 1000 mbps)
20:16:03: Completed handshake with rtmp://live.justin.tv/app in 657 ms.
20:16:04: SO_SNDBUF was at 8192
20:16:04: SO_SNDBUF is now 65536
20:16:36: SharedTexCapture hooked
20:16:39: Capture window 0x003E0A4C invalid or changing, terminating capture
20:16:47: SharedTexCapture hooked
20:17:44: Capture window 0x001B09DE invalid or changing, terminating capture
20:17:48: Total frames encoded: 6397, total frames duplicated: 442 (6.91%)
20:17:48: Total frames rendered: 6398, number of late frames: 6 (0.09%) (it's okay for some frames to be late)
20:17:48: RTMPPublisher::SocketLoop: Graceful loop exit
20:17:48: Average send payload: 5437 bytes, average send interval: 20 ms
20:17:48: Number of times waited to send: 0, Waited for a total of 0 bytes
20:17:48: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
20:17:48: Number of bytes sent: 27308846
20:17:48: 
20:17:48: Profiler time results:
20:17:48: 
20:17:48: ==============================================================
20:17:48: video thread frame - [100%] [avg time: 2.655 ms] [children: 36.7%] [unaccounted: 63.3%]
20:17:48: | scene->Preprocess - [36.7%] [avg time: 0.974 ms]
20:17:48: GPU download and conversion - [100%] [avg time: 0.375 ms] [children: 66.4%] [unaccounted: 33.6%]
20:17:48: | flush - [53.1%] [avg time: 0.199 ms]
20:17:48: | CopyResource - [12.3%] [avg time: 0.046 ms]
20:17:48: | conversion to 4:2:0 - [1.07%] [avg time: 0.004 ms]
20:17:48: Convert444Threads - [100%] [avg time: 0.788 ms] [children: 99.1%] [unaccounted: 0.888%]
20:17:48: | Convert444toNV12 - [99.1%] [avg time: 0.781 ms]
20:17:48: encoder thread frame - [100%] [avg time: 0.93 ms]
20:17:48: ==============================================================
20:17:48: 
20:17:48: 
20:17:48: Profiler CPU results:
20:17:48: 
20:17:48: ==============================================================
20:17:48: video thread frame - [cpu time: avg 1.18 ms, total 7550.45 ms] [avg calls per frame: 1]
20:17:48: | scene->Preprocess - [cpu time: avg 0.697 ms, total 4461.63 ms] [avg calls per frame: 1]
20:17:48: GPU download and conversion - [cpu time: avg 0.063 ms, total 405.602 ms] [avg calls per frame: 1]
20:17:48: | flush - [cpu time: avg 0.024 ms, total 156.001 ms] [avg calls per frame: 1]
20:17:48: | CopyResource - [cpu time: avg 0.014 ms, total 93.6 ms] [avg calls per frame: 1]
20:17:48: | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 15.6 ms] [avg calls per frame: 1]
20:17:48: Convert444Threads - [cpu time: avg 0.786 ms, total 10015.3 ms] [avg calls per frame: 2]
20:17:48: | Convert444toNV12 - [cpu time: avg 0.782 ms, total 9968.46 ms] [avg calls per frame: 2]
20:17:48: encoder thread frame - [cpu time: avg 0.261 ms, total 1669.21 ms] [avg calls per frame: 1]
20:17:48: ==============================================================
20:17:48: 
20:17:48: =====Stream End: 2013-09-30, 20:17:48=================================================


Last game capture log:
2013-09-30, 20:16:46: we're booting up: 
20:16:47: D3D9 Present
20:16:47: (half life scientist) everything..  seems to be in order
20:16:47: D3D9EndScene called
20:16:47: D3DPRESENT_PARAMETERS {
20:16:47: 	BackBufferWidth: 1920
20:16:47: 	BackBufferHeight: 1080
20:16:47: 	BackBufferFormat: D3DFMT_X8R8G8B8
20:16:47: 	BackBufferCount: 1
20:16:47: 	MultiSampleType: D3DMULTISAMPLE_NONE
20:16:47: 	MultiSampleQuality: 0
20:16:47: 	SwapEffect: D3DSWAPEFFECT_DISCARD
20:16:47: 	hDeviceWindow: 1771998
20:16:47: 	Windowed: false
20:16:47: 	EnableAutoDepthStencil: false
20:16:47: 	AutoDepthStencilFormat: D3DFMT_D24S8
20:16:47: 	Flags: D3DPRESENTFLAG_LOCKABLE_BACKBUFFER 
20:16:47: 	FullScreen_RefreshRateInHz: 60
20:16:47: 	PresentationInterval: 1
20:16:47: };
20:16:47: successfully set up d3d9 hooks
20:16:47: D3D9Present called
20:16:47: DoD3D9GPUHook: success
20:16:47: D3DSURFACE_DESC {
20:16:47: 	Format: D3DFMT_X8R8G8B8
20:16:47: 	Type: D3DRTYPE_SURFACE
20:16:47: 	Usage: D3DUSAGE_RENDERTARGET 
20:16:47: 	Pool: D3DPOOL_DEFAULT
20:16:47: 	MultiSampleType: D3DMULTISAMPLE_NONE
20:16:47: 	MultiSampleQuality: 0
20:16:47: 	Width: 1920
20:16:47: 	Height: 1080
20:16:47: };
20:16:47: successfully capturing d3d9 frames via GPU
 

dodgepong

Administrator
Community Helper
I'm a bit confused as to what kind of audio lag you're having. Is the webcam desynced with your mic, or are your webcam and mic in sync? Is game audio desynced with the game? Do you say something and only see the same thing happen in the game 2 seconds later? What are the things that are in sync with each other, and what things are not, and what things "apepar first"?
 
My webcam & Mic are synced perfect its when you see me say something or reacting to something that something doesn't take effect for about 2-5 seconds on screen. Sorry for the confusion.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
It's because you're using a USB capture device. USB capture devices are typically delayed because the signal is compressed and has to be decoded, which takes time.

The solution is to go into your webcam properties in OBS, turn on "Use buffering", and set the value to about 1600. Do the same for your mic in the audio settings where it says "mic time offset", set that to about 1600 as well, and the mic, webcam, and the elgato should then be in sync.
 
Top