Bug Report Game audio out of synch -- mic audio is fine

BobLoblawLaw

New Member
Here's my setup: I have a cap card whose audio sucks, so I split the RCA audio before the card and feed one end into the card and the other into the line-in on the back of my PC. I tell OBS to listen to that line-in for the audio on my game source, and everything works.

Here's my problem: after some amount of time (it varies widely), the game audio will just stop. The mic audio is unaffected, and continues to come through normally. I put the audio delay on the source at -400 which makes it sync up correctly when the audio does come through. Scene buffering is at 400. The "Mic QPC Timestamps" and "Force desktop audio to use video timestamps as a base for audio time" options don't seem to have an effect either way.

Any suggestions or ideas would be helpful. I should also mention that sometimes it will go an hour or more without giving out, and sometimes the audio will just not be there when I start the stream. Every time there's this same "off by 10" message. (see log below)

I recorded a stream for about 2 hours the other day--the audio gave out after about 1 hour. Here is what the log looks like:

Starts with:

Code:
19:50:30: Open Broadcaster Software v0.552b - 32bit (´・ω・`)
19:50:30: -------------------------------
19:50:30: CPU Name: AMD A8-5500 APU with Radeon(tm) HD Graphics
19:50:30: CPU Speed: 3194MHz
19:50:30: Physical Memory:  4095MB Total, 4095MB Free
19:50:30: stepping id: 1, model 0, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 4, total cores 2
19:50:30: monitor 1: pos={0, 0}, size={1920, 1080}
19:50:30: Windows Version: 6.2 Build 9200 
19:50:30: Aero is Enabled
19:50:30: -------------------------------
19:50:30: OBS Modules:
19:50:30: Base Address     Module
19:50:30: 00AE0000         OBS.exe
19:50:30: 746C0000         OBSApi.dll
19:50:30: 73D30000         DShowPlugin.dll
19:50:30: 74FC0000         GraphicsCapture.dll
19:50:30: 74F80000         NoiseGate.dll
19:50:30: 74440000         PSVPlugin.dll
19:50:30: ------------------------------------------
19:50:30: Adapter 1
19:50:30:   Video Adapter: AMD Radeon HD 7560D
19:50:30:   Video Adapter Dedicated Video Memory: 521330688
19:50:30:   Video Adapter Shared System Memory: 3719802880
19:50:30: =====Stream Start: 2013-08-21, 19:50:30===============================================
19:50:30:   Multithreaded optimizations: On
19:50:30:   Base resolution: 1280x720
19:50:30:   Output resolution: 1280x720
19:50:30: ------------------------------------------
19:50:30: Loading up D3D10 on AMD Radeon HD 7560D...
19:50:30: Playback device {0.0.0.00000000}.{3706045a-b3c6-48a4-89d2-2ce7935d494f}
19:50:30: ------------------------------------------
19:50:30: Using desktop audio input: Speakers / Headphones (IDT High Definition Audio CODEC)
19:50:30: ------------------------------------------
19:50:30: Using auxilary audio input: Rear Mic (IDT High Definition Audio CODEC)
19:50:30: ------------------------------------------
19:50:30: Audio Encoding: AAC
19:50:30:     bitrate: 128
19:50:30: Using Window Capture
19:50:30: ------------------------------------------
19:50:30:     device: Roxio GAMECAP Capture,
19:50:30:     device id \\?\usb#vid_1b80&pid_e31e&mi_02#6&13d9ab27&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{54353d15-e717-4d94-b574-685ce1a209e9},
19:50:30:     chosen type: YUY2, usingFourCC: false, res: 864x480 - 864x480, frameIntervals: 333667-333667, fourCC: 'YUY2'
19:50:30:     audio device: Line In (IDT High Definition Audio CODEC),
19:50:30:     audio device id (null),
19:50:30: 
19:50:30:     device audio info - bits per sample: 16, channels: 2, samples per sec: 44100, block size: 4
19:50:30: Using directshow input
19:50:30: ------------------------------------------
19:50:30: Video Encoding: x264
19:50:30:     fps: 60
19:50:30:     width: 1280, height: 720
19:50:30:     preset: veryfast
19:50:30:     CBR: yes
19:50:30:     CFR: no
19:50:30:     max bitrate: 2000
19:50:30: ------------------------------------------
19:50:30: MMDeviceAudioSource: Frequency for device 'Speakers / Headphones (IDT High Definition Audio CODEC)' is 352800, samples per sec is 44100
19:50:30: MMDeviceAudioSource: Frequency for device 'Rear Mic (IDT High Definition Audio CODEC)' is 352800, samples per sec is 44100
19:50:35: Total frames rendered: 254, number of late frames: 0 (0.00%) (it's okay for some frames to be late)
19:50:35: 
19:50:35: Profiler results:
19:50:35: 
19:50:35: ==============================================================
19:50:35: frame - [100%] [avg time: 3.889 ms (cpu time: avg 2.456 ms, total 624.004 ms)] [avg calls per frame: 1] [children: 99.7%] [unaccounted: 0.257%]
19:50:35: | frame preprocessing and rendering - [26.2%] [avg time: 1.019 ms (cpu time: avg 0.429 ms, total 109.201 ms)] [avg calls per frame: 1] [children: 13.6%] [unaccounted: 12.6%]
19:50:35: | | scene->Preprocess - [13.6%] [avg time: 0.529 ms (cpu time: avg 0.245 ms, total 62.4 ms)] [avg calls per frame: 1]
19:50:35: | video encoding and uploading - [73.5%] [avg time: 2.86 ms (cpu time: avg 2.026 ms, total 514.803 ms)] [avg calls per frame: 1] [children: 72.4%] [unaccounted: 1.11%]
19:50:35: | | flush - [22.5%] [avg time: 0.876 ms (cpu time: avg 0.184 ms, total 46.8 ms)] [avg calls per frame: 1]
19:50:35: | | CopyResource - [0.334%] [avg time: 0.013 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
19:50:35: | | conversion to 4:2:0 - [0.386%] [avg time: 0.015 ms (cpu time: avg 0.061 ms, total 15.6 ms)] [avg calls per frame: 0]
19:50:35: | | call to encoder - [48.9%] [avg time: 1.903 ms (cpu time: avg 1.781 ms, total 452.403 ms)] [avg calls per frame: 0]
19:50:35: | | sending stuff out - [0.257%] [avg time: 0.01 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
19:50:35: | Convert444Threads - [373%] [avg time: 14.495 ms (cpu time: avg 1.228 ms, total 312.002 ms)] [avg calls per frame: 0]
19:50:35: ==============================================================
19:50:35: 
19:50:35: =====Stream End: 2013-08-21, 19:50:35=================================================
19:50:37: =====Stream Start: 2013-08-21, 19:50:37===============================================
19:50:37:   Multithreaded optimizations: On
19:50:37:   Base resolution: 1280x720
19:50:37:   Output resolution: 1280x720
19:50:37: ------------------------------------------
19:50:37: Loading up D3D10 on AMD Radeon HD 7560D...
19:50:37: Playback device {0.0.0.00000000}.{3706045a-b3c6-48a4-89d2-2ce7935d494f}
19:50:37: ------------------------------------------
19:50:37: Using desktop audio input: Speakers / Headphones (IDT High Definition Audio CODEC)
19:50:38: ------------------------------------------
19:50:38: Using auxilary audio input: Rear Mic (IDT High Definition Audio CODEC)
19:50:38: ------------------------------------------
19:50:38: Audio Encoding: AAC
19:50:38:     bitrate: 128
19:50:38: Using Window Capture
19:50:38: ------------------------------------------
19:50:38:     device: Roxio GAMECAP Capture,
19:50:38:     device id \\?\usb#vid_1b80&pid_e31e&mi_02#6&13d9ab27&0&0002#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{54353d15-e717-4d94-b574-685ce1a209e9},
19:50:38:     chosen type: YUY2, usingFourCC: false, res: 864x480 - 864x480, frameIntervals: 333667-333667, fourCC: 'YUY2'
19:50:38:     audio device: Line In (IDT High Definition Audio CODEC),
19:50:38:     audio device id (null),
19:50:38: 
19:50:38:     device audio info - bits per sample: 16, channels: 2, samples per sec: 44100, block size: 4
19:50:38: Using directshow input
19:50:38: ------------------------------------------
19:50:38: Video Encoding: x264
19:50:38:     fps: 60
19:50:38:     width: 1280, height: 720
19:50:38:     preset: veryfast
19:50:38:     CBR: yes
19:50:38:     CFR: no
19:50:38:     max bitrate: 2000
19:50:38: ------------------------------------------
19:50:38: MMDeviceAudioSource: Frequency for device 'Speakers / Headphones (IDT High Definition Audio CODEC)' is 352800, samples per sec is 44100
19:50:38: MMDeviceAudioSource: Frequency for device 'Rear Mic (IDT High Definition Audio CODEC)' is 352800, samples per sec is 44100

The middle:

Code:
Audio timestamp for device 'Roxio GAMECAP Capture' was behind target timestamp by 10!  Had to delete audio segment.
<--snip 98 MB worth of this same line repeated over and over -->


Ends with:

Code:
21:53:01: Total frames rendered: 440540, number of late frames: 46 (0.01%) (it's okay for some frames to be late)
21:53:01: 
21:53:01: Profiler results:
21:53:01: 
21:53:01: ==============================================================
21:53:01: frame - [100%] [avg time: 4.224 ms (cpu time: avg 3.127 ms, total 1.37793e+006 ms)] [avg calls per frame: 1] [children: 99.7%] [unaccounted: 0.26%]
21:53:01: | frame preprocessing and rendering - [25.8%] [avg time: 1.091 ms (cpu time: avg 0.785 ms, total 346026 ms)] [avg calls per frame: 1] [children: 14.3%] [unaccounted: 11.6%]
21:53:01: | | scene->Preprocess - [14.3%] [avg time: 0.603 ms (cpu time: avg 0.47 ms, total 207372 ms)] [avg calls per frame: 1]
21:53:01: | video encoding and uploading - [73.9%] [avg time: 3.122 ms (cpu time: avg 2.338 ms, total 1.03009e+006 ms)] [avg calls per frame: 1] [children: 73%] [unaccounted: 0.947%]
21:53:01: | | flush - [15.2%] [avg time: 0.642 ms (cpu time: avg 0.083 ms, total 36629 ms)] [avg calls per frame: 1]
21:53:01: | | CopyResource - [0.331%] [avg time: 0.014 ms (cpu time: avg 0.015 ms, total 6676.84 ms)] [avg calls per frame: 0]
21:53:01: | | conversion to 4:2:0 - [0.521%] [avg time: 0.022 ms (cpu time: avg 0.005 ms, total 2433.62 ms)] [avg calls per frame: 0]
21:53:01: | | call to encoder - [56.6%] [avg time: 2.392 ms (cpu time: avg 2.199 ms, total 969047 ms)] [avg calls per frame: 0]
21:53:01: | | sending stuff out - [0.284%] [avg time: 0.012 ms (cpu time: avg 0.01 ms, total 4773.63 ms)] [avg calls per frame: 0]
21:53:01: | Convert444Threads - [395%] [avg time: 16.664 ms (cpu time: avg 1.513 ms, total 666561 ms)] [avg calls per frame: 0]
21:53:01: ==============================================================
21:53:01: 
21:53:01: =====Stream End: 2013-08-21, 21:53:01=================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I'm admittedly sort of surprised you managed to get a roxio working at all. you may have to increase "scene buffering time" in advanced to a much higher number.
 
Top