Question / Help Gradual Audio Lag

Demadon

New Member
I know it seems like this question has been asked a dozen times before, but nobody seems to have the same capture card or solution to my problem. Basically, the stream starts great. I have a small window for my Logitech webcam, and my SA7160 capture card as the main event. As time goes on, however, the audio will gradually become more and more out of sync with what is happening on screen. This happens regardless of if I'm broadcasting live or just previewing the stream.

Example: Start streaming. I press a button, and the action and sound occurs simultaneously. After some time, I'll press a button and the action will occur, but the sound will be delayed. This effect gets worse over time.

A couple things that might be worth noting: First, is that this is only an issue with the game capture; the webcam audio/video is totally fine no matter what. Second, on other programs like StreamCatcher and Xsplit, this issue does not occur.

What is strange is that I thought I had fixed this a while ago. I was streaming Hyrule Warriors on it's release, and I found that lowering the resolution and FPS capture on my webcam actually seemed to resolve the problem. I played for a couple hours with no lag. I took a break for a month, and now as I try to play Okami using my PS3 the issue again rears it's ugly head. For both the Wii U and the PS3 I am using a set of component cables. If it helps, here is the log from the latest session (hope I did this right).

Code:
02:49:17: Open Broadcaster Software v0.637b - 32bit (´・ω・`)
02:49:17: -------------------------------
02:49:17: CPU Name: Intel(R) Core(TM) i5 CPU         650  @ 3.20GHz
02:49:17: CPU Speed: 3200MHz
02:49:17: Physical Memory:  4095MB Total, 4095MB Free
02:49:17: stepping id: 2, model 37, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 2
02:49:17: monitor 1: pos={0, 0}, size={1920, 1080}
02:49:17: Windows Version: 6.1 Build 7601 S
02:49:17: Aero is Enabled
02:49:17: -------------------------------
02:49:17: OBS Modules:
02:49:17: Base Address     Module
02:49:17: 01350000         OBS.exe
02:49:17: 69480000         OBSApi.dll
02:49:17: 6DD80000         DShowPlugin.dll
02:49:17: 701D0000         GraphicsCapture.dll
02:49:17: 6D870000         NoiseGate.dll
02:49:17: 6DD60000         PSVPlugin.dll
02:49:17: ------------------------------------------
02:49:17: Adapter 1
02:49:17:   Video Adapter: NVIDIA GeForce GTX 660 Ti
02:49:17:   Video Adapter Dedicated Video Memory: 2086469632
02:49:17:   Video Adapter Shared System Memory: 2147807232
02:49:17:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
02:49:17: =====Stream Start: 2014-10-21, 02:49:17===============================================
02:49:17:   Multithreaded optimizations: On
02:49:17:   Base resolution: 1920x1080
02:49:17:   Output resolution: 1536x864
02:49:17: ------------------------------------------
02:49:17: Loading up D3D10 on NVIDIA GeForce GTX 660 Ti (Adapter 1)...
02:49:17: ------------------------------------------
02:49:17: Audio Format: 48000 Hz
02:49:17: ------------------------------------------
02:49:17: Audio Channels: 2 Ch
02:49:17: Playback device Default
02:49:17: ------------------------------------------
02:49:17: Using desktop audio input: Speakers (Realtek High Definition Audio)
02:49:17: Global Audio time adjust: 0
02:49:17: ------------------------------------------
02:49:17: Using auxilary audio input: Microphone (2- Yeti Stereo Microphone)
02:49:18: Mic time offset: 0
02:49:18: ------------------------------------------
02:49:18: Audio Encoding: AAC
02:49:18:     bitrate: 128
02:49:18: ------------------------------------------
02:49:18:     device: SA7160 PCI, Analog 01 Capture,
02:49:18:     device id \\?\pci#ven_1131&dev_7160&subsys_12abf501&rev_03#4&33d7a91b&0&00e1#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{6f814be9-9af6-43cf-9249-c0340100021c},
02:49:18:     chosen type: YUY2, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 200000-400000
02:49:18:     use buffering: false - 0, fourCC: 'YUY2'
02:49:18:     audio device: SA7160 PCI, Analog 01 WaveIn,
02:49:18:     audio device id \\?\pci#ven_1131&dev_7160&subsys_12abf501&rev_03#4&33d7a91b&0&00e1#{33d9a762-90c8-11d0-bd43-00a0c911ce86}\{6f814be9-9af6-43cf-9249-c0340100031c},
02:49:18:     audio time offset 0,
02:49:18:
02:49:18: Using directshow input
02:49:18: Scene buffering time set to 700
02:49:18: ------------------------------------------
02:49:18: Video Encoding: x264
02:49:18:     fps: 29
02:49:18:     width: 1536, height: 864
02:49:18:     preset: veryfast
02:49:18:     profile: main
02:49:18:     keyint: 58
02:49:18:     CBR: yes
02:49:18:     CFR: yes
02:49:18:     max bitrate: 1000
02:49:18:     buffer size: 1000
02:49:18: ------------------------------------------
02:50:09: FlushBufferedVideo: Flushing 2 packets over 34 ms
02:50:09: Total frames encoded: 1472, total frames duplicated: 1 (0.07%)
02:50:09: Total frames rendered: 1494, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
02:50:10:
02:50:10: Profiler time results:
02:50:10:
02:50:10: ==============================================================
02:50:10: video thread frame - [100%] [avg time: 4.318 ms] [children: 78%] [unaccounted: 22%]
02:50:10: | scene->Preprocess - [70.8%] [avg time: 3.057 ms]
02:50:10: | GPU download and conversion - [7.18%] [avg time: 0.31 ms] [children: 5.79%] [unaccounted: 1.39%]
02:50:10: | | flush - [4.7%] [avg time: 0.203 ms]
02:50:10: | | CopyResource - [0.973%] [avg time: 0.042 ms]
02:50:10: | | conversion to 4:2:0 - [0.116%] [avg time: 0.005 ms]
02:50:10: Convert444Thread - [100%] [avg time: 1.847 ms] [children: 99.3%] [unaccounted: 0.704%]
02:50:10: | Convert444toNV12 - [99.3%] [avg time: 1.834 ms]
02:50:10: encoder thread frame - [100%] [avg time: 2.195 ms] [children: 0.319%] [unaccounted: 99.7%]
02:50:10: | sending stuff out - [0.319%] [avg time: 0.007 ms]
02:50:10: ==============================================================
02:50:10:
02:50:10:
02:50:10: Profiler CPU results:
02:50:10:
02:50:10: ==============================================================
02:50:10: video thread frame - [cpu time: avg 3.383 ms, total 5054.43 ms] [avg calls per frame: 1]
02:50:10: | scene->Preprocess - [cpu time: avg 2.589 ms, total 3868.83 ms] [avg calls per frame: 1]
02:50:10: | GPU download and conversion - [cpu time: avg 0.135 ms, total 202.8 ms] [avg calls per frame: 1]
02:50:10: | | flush - [cpu time: avg 0.083 ms, total 124.8 ms] [avg calls per frame: 1]
02:50:10: | | CopyResource - [cpu time: avg 0.01 ms, total 15.6 ms] [avg calls per frame: 1]
02:50:10: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:50:10: Convert444Thread - [cpu time: avg 1.601 ms, total 2355.61 ms] [avg calls per frame: 1]
02:50:10: | Convert444toNV12 - [cpu time: avg 1.601 ms, total 2355.61 ms] [avg calls per frame: 1]
02:50:10: encoder thread frame - [cpu time: avg 1.591 ms, total 2340.02 ms] [avg calls per frame: 1]
02:50:10: | sending stuff out - [cpu time: avg 0.01 ms, total 15.601 ms] [avg calls per frame: 1]
02:50:10: ==============================================================
02:50:10:
02:50:10: =====Stream End: 2014-10-21, 02:50:10=================================================
02:50:10: Terminating 0xca4

Please, I'm at the end of my rope. OBS is perfect, save for this one glaring issue I am having. Any help is much appreciated, and if you need further clarification on anything, just let me know. Thanks in advance!
 
Top