Bug Report Audio sync problems

solidxpanda

New Member
Hello, I'm having issues with OBS desyncing the audio coming from my LGP (Live Gamer Portable). This only effects the OUTPUT when being encoded to TwitchTv.
The way I have my setup right now, since the video is slightly delayed once it reaches OBS through my capture card is I play the capture cards audio through my speaker. So, commentary and other audio components are going through my mixing board as my microphone source. There's absolutely zero game audio coming through my microphone. The game is being captured through the physical capture card so it will be synced with the live video feed in OBS's preview.
When enabling LGP to output to my speakers as well as the stream it sounds synced. No delay or desync. But my viewers are saying the audio is desynced by a good couple of seconds and I've confirmed this by watching the replays. My microphone isn't being effected though.
Normally, I'd run the audio directly from my Xbox into my mixing board, but because of the slight video delay once the feed reaches OBS I can't do that. I haven't experimented much with the microphone sync setting, so this may be my best option to fix this? It seems it's a problem being mixed up in the audio encoding area? It's not the input of the LGP to OBS as that's synced when I have speaker playback. Remember, I'm ONLY outputting the game audio through the physical capture card source being outputted from my speakrs.

Here's an example of the problem I'm having: http://www.twitch.tv/pandaxgaming/b/465700389
You can see the audio sync problem pretty much throughout the entire video. Refreshing the video source doesn't do anything either.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I'm confused.. you said you play the capture card audio through your speakers, but at the end you said you output the game audio through the capture device source. Are you using the LGP through OBS directly through a device source, or capturing it through window capture? (Because it's a USB device after all)

(Also post a log file so we can actually see where you have audio coming from so we don't necessarily have to have this confusion)
 

solidxpanda

New Member
Hey Jim thanks for the reply. Sorry I'm just now replying back. I don't have access to my logs right now, but I've actually just been using my mixing board and I've set an audio delay so it syncs up. One problem I have come across though is my microphone audio cracks and stutters once every 15 seconds or so. I'll post a log when I get home, but I wanted to post about this new issue while it was on my mind. Also, as far as delaying my microphone audio, what do you think is the best way to go about doing it? I set about a 10 ms delay. I wasn't sure if there were other settings I could mess with that would do a better job. If you're around you can actually check my stream out now at twitch.tv/PandaxGaming to hear the audio stutters. It's 24/7 so it'll be up all day and night.

Thanks
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I'm not entirely sure if there's anything I can do, I really do need to see a log when you get a chance though. It would at least tell me a few things about your setup a bit more internally.
 

solidxpanda

New Member
Jim said:
I'm not entirely sure if there's anything I can do, I really do need to see a log when you get a chance though. It would at least tell me a few things about your setup a bit more internally.
Code:
19:55:08: Open Broadcaster Software v0.571b - 32bit (´・ω・`)
19:55:08: -------------------------------
19:55:08: CPU Name: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
19:55:08: CPU Speed: 2394MHz
19:55:08: Physical Memory:  4095MB Total, 4095MB Free
19:55:08: stepping id: 3, model 12, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
19:55:08: monitor 1: pos={0, 0}, size={1366, 768}
19:55:08: monitor 2: pos={1366, 0}, size={1920, 1080}
19:55:08: Windows Version: 6.2 Build 9200 
19:55:08: Aero is Enabled
19:55:08: -------------------------------
19:55:08: OBS Modules:
19:55:08: Base Address     Module
19:55:08: 00E30000         OBS.exe
19:55:08: 73460000         OBSApi.dll
19:55:08: 73A60000         DShowPlugin.dll
19:55:08: 738B0000         GraphicsCapture.dll
19:55:08: 73880000         NoiseGate.dll
19:55:08: 5C0E0000         PSVPlugin.dll
19:55:08: ------------------------------------------
19:55:08: Adapter 1
19:55:08:   Video Adapter: Intel(R) HD Graphics 4600
19:55:08:   Video Adapter Dedicated Video Memory: 33554432
19:55:08:   Video Adapter Shared System Memory: 1845493760
19:55:08: ------------------------------------------
19:55:08: Adapter 2
19:55:08:   Video Adapter: NVIDIA GeForce GT 750M 
19:55:08:   Video Adapter Dedicated Video Memory: 2090725376
19:55:08:   Video Adapter Shared System Memory: 2147610624
19:55:08: =====Stream Start: 2013-09-30, 19:55:08===============================================
19:55:08:   Multithreaded optimizations: On
19:55:08:   Base resolution: 1280x720
19:55:08:   Output resolution: 852x480
19:55:08: ------------------------------------------
19:55:08: Loading up D3D10 on Intel(R) HD Graphics 4600...
19:55:08: ------------------------------------------
19:55:08: Audio Format: 48000hz
19:55:08: Playback device Default
19:55:08: ------------------------------------------
19:55:08: Using desktop audio input: Speakers (Realtek High Definition Audio)
19:55:08: ------------------------------------------
19:55:08: Using auxilary audio input: Microphone (3- USB Audio CODEC )
19:55:08: ------------------------------------------
19:55:08: Audio Encoding: AAC
19:55:08:     bitrate: 128
19:55:08: Using bitmap image
19:55:08: ------------------------------------------
19:55:08:     device: LGP Stream Engine,
19:55:08:     device id (null),
19:55:08:     chosen type: YUY2, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 166666-166666, fourCC: 'YUY2'
19:55:08: 
19:55:08:     device audio info - bits per sample: 16, channels: 2, samples per sec: 44100, block size: 4
19:55:08: Using directshow input
19:55:09: Using text output
19:55:09: Using bitmap image
19:55:09: ------------------------------------------
19:55:09: Video Encoding: x264
19:55:09:     fps: 30
19:55:09:     width: 852, height: 480
19:55:09:     preset: faster
19:55:09:     profile: high
19:55:09:     keyint: 60
19:55:09:     CBR: yes
19:55:09:     CFR: no
19:55:09:     max bitrate: 1800
19:55:09:     buffer size: 1800
19:55:09: ------------------------------------------
19:55:09: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
19:55:09: MMDeviceAudioSource: Frequency for device 'Microphone (3- USB Audio CODEC )' is 176400, samples per sec is 44100
19:55:17: Using bitmap image
19:55:32: Total frames encoded: 693, total frames duplicated: 0 (0.00%)
19:55:32: Total frames rendered: 693, number of late frames: 1 (0.14%) (it's okay for some frames to be late)
19:55:33: 
19:55:33: Profiler time results:
19:55:33: 
19:55:33: ==============================================================
19:55:33: video thread frame - [100%] [avg time: 2.324 ms] [children: 82.4%] [unaccounted: 17.6%]
19:55:33: | scene->Preprocess - [82.4%] [avg time: 1.916 ms]
19:55:33: GPU download and conversion - [100%] [avg time: 0.071 ms] [children: 52.1%] [unaccounted: 47.9%]
19:55:33: | flush - [21.1%] [avg time: 0.015 ms]
19:55:33: | CopyResource - [25.4%] [avg time: 0.018 ms]
19:55:33: | conversion to 4:2:0 - [5.63%] [avg time: 0.004 ms]
19:55:33: Convert444Threads - [100%] [avg time: 0.458 ms] [children: 98.7%] [unaccounted: 1.31%]
19:55:33: | Convert444toNV12 - [98.7%] [avg time: 0.452 ms]
19:55:33: encoder thread frame - [100%] [avg time: 0.583 ms]
19:55:33: ==============================================================
19:55:33: 
19:55:33: 
19:55:33: Profiler CPU results:
19:55:33: 
19:55:33: ==============================================================
19:55:33: video thread frame - [cpu time: avg 1.961 ms, total 1359.38 ms] [avg calls per frame: 1]
19:55:33: | scene->Preprocess - [cpu time: avg 1.352 ms, total 937.5 ms] [avg calls per frame: 1]
19:55:33: GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
19:55:33: | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
19:55:33: | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
19:55:33: | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
19:55:33: Convert444Threads - [cpu time: avg 0.29 ms, total 390.625 ms] [avg calls per frame: 2]
19:55:33: | Convert444toNV12 - [cpu time: avg 0.278 ms, total 375 ms] [avg calls per frame: 2]
19:55:33: encoder thread frame - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
19:55:33: ==============================================================
19:55:33: 
19:55:33: =====Stream End: 2013-09-30, 19:55:33=================================================
19:55:34: =====Stream Start: 2013-09-30, 19:55:34===============================================
19:55:34:   Multithreaded optimizations: On
19:55:34:   Base resolution: 1280x720
19:55:34:   Output resolution: 852x480
19:55:34: ------------------------------------------
19:55:34: Loading up D3D10 on Intel(R) HD Graphics 4600...
19:55:34: ------------------------------------------
19:55:34: Audio Format: 48000hz
19:55:34: Playback device Default
19:55:34: ------------------------------------------
19:55:34: Using desktop audio input: Speakers (Realtek High Definition Audio)
19:55:34: ------------------------------------------
19:55:34: Using auxilary audio input: Microphone (3- USB Audio CODEC )
19:55:34: ------------------------------------------
19:55:34: Audio Encoding: AAC
19:55:34:     bitrate: 128
19:55:34: Using bitmap image
19:55:34: ------------------------------------------
19:55:34:     device: LGP Stream Engine,
19:55:34:     device id (null),
19:55:34:     chosen type: YUY2, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 166666-166666, fourCC: 'YUY2'
19:55:34: 
19:55:34:     device audio info - bits per sample: 16, channels: 2, samples per sec: 44100, block size: 4
19:55:34: Using directshow input
19:55:35: Using bitmap image
19:55:35: ------------------------------------------
19:55:35: Video Encoding: x264
19:55:35:     fps: 30
19:55:35:     width: 852, height: 480
19:55:35:     preset: faster
19:55:35:     profile: high
19:55:35:     keyint: 60
19:55:35:     CBR: yes
19:55:35:     CFR: no
19:55:35:     max bitrate: 1800
19:55:35:     buffer size: 1800
19:55:35: ------------------------------------------
19:55:35: MMDeviceAudioSource: Frequency for device 'Speakers (Realtek High Definition Audio)' is 1536000, samples per sec is 192000
19:55:35: MMDeviceAudioSource: Frequency for device 'Microphone (3- USB Audio CODEC )' is 176400, samples per sec is 44100
19:55:37: Using RTMP service: Twitch / Justin.tv
19:55:37:   Server selection: rtmp://live-iad-backup.justin.tv/app
19:55:37:   Interface: Qualcomm Atheros AR8171/8175 PCI-E Gigabit Ethernet Controller (NDIS 6.30) (ethernet, 100 mbps)
19:55:38: Completed handshake with rtmp://live-iad-backup.justin.tv/app in 263 ms.
19:55:39: SO_SNDBUF was at 65536
19:55:39: SO_SNDBUF is now 65536
19:56:39: Using bitmap image
19:56:43: Using bitmap image
19:58:01: Using bitmap image
20:03:03: Using Window Capture
20:14:35: Using bitmap image
20:15:09: Using bitmap image
20:26:48: ------------------------------------------
20:26:48:     device: LGP Stream Engine,
20:26:48:     device id (null),
20:26:48:     chosen type: YUY2, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 166666-166666, fourCC: 'YUY2'
20:26:48:     audio device: Disable,
20:26:48:     audio device id Disabled,
20:26:48: 
20:47:45: Using Window Capture
20:54:22: Using bitmap image
21:23:57: Using bitmap image
21:24:48: Using bitmap image
21:34:09: Using bitmap image
21:45:36: Using bitmap image
22:06:41: Using bitmap image
22:06:48: Using bitmap image
22:53:44: Using Window Capture
22:57:01: Using Window Capture
22:58:35: Using Window Capture
23:31:04: Using Window Capture
23:51:29: Using text output
00:00:50: RTMPPublisher::SendLoop: Stalled for 1673 ms to write 243394 bytes (buffer: 0 / 246784), unstable connection?
00:00:55: RTMPPublisher::SendLoop: Stalled for 1758 ms to write 244165 bytes (buffer: 0 / 246784), unstable connection?
01:13:09: RTMPPublisher::SendLoop: Stalled for 2393 ms to write 832 bytes (buffer: 0 / 246784), unstable connection?
01:23:54: Total frames encoded: 3182969, total frames duplicated: 1070 (0.03%)
01:23:54: Number of frames skipped due to encoder lag: 92 (0.00%)
01:23:54: Total frames rendered: 3182213, number of late frames: 63 (0.00%) (it's okay for some frames to be late)
01:23:56: RTMPPublisher::SendLoop: Stalled for 2089 ms to write 491 bytes (buffer: 0 / 246784), unstable connection?
01:23:57: RTMPPublisher::SocketLoop: Graceful loop exit
01:23:57: Average send payload: 7159 bytes, average send interval: 30 ms
01:23:57: Number of times waited to send: 22, Waited for a total of 87642 bytes
01:23:57: Number of b-frames dropped: 101 (0.0032%), Number of p-frames dropped: 86 (0.0027%), Total 187 (0.0059%)
01:23:57: Number of bytes sent: 25311334953
01:23:58: 
01:23:58: Profiler time results:
01:23:58: 
01:23:58: ==============================================================
01:23:58: video thread frame - [100%] [avg time: 2.202 ms] [children: 86.9%] [unaccounted: 13.1%]
01:23:58: | scene->Preprocess - [86.9%] [avg time: 1.913 ms]
01:23:58: GPU download and conversion - [100%] [avg time: 0.103 ms] [children: 81.6%] [unaccounted: 18.4%]
01:23:58: | flush - [61.2%] [avg time: 0.063 ms]
01:23:58: | CopyResource - [16.5%] [avg time: 0.017 ms]
01:23:58: | conversion to 4:2:0 - [3.88%] [avg time: 0.004 ms]
01:23:58: Convert444Threads - [100%] [avg time: 0.396 ms] [children: 98.7%] [unaccounted: 1.26%]
01:23:58: | Convert444toNV12 - [98.7%] [avg time: 0.391 ms]
01:23:58: encoder thread frame - [100%] [avg time: 0.576 ms]
01:23:58: ==============================================================
01:23:58: 
01:23:58: 
01:23:58: Profiler CPU results:
01:23:58: 
01:23:58: ==============================================================
01:23:58: video thread frame - [cpu time: avg 1.782 ms, total 5.6733e+006 ms] [avg calls per frame: 1]
01:23:58: | scene->Preprocess - [cpu time: avg 1.311 ms, total 4.17483e+006 ms] [avg calls per frame: 1]
01:23:58: GPU download and conversion - [cpu time: avg 0.122 ms, total 390781 ms] [avg calls per frame: 1]
01:23:58: | flush - [cpu time: avg 0.091 ms, total 291203 ms] [avg calls per frame: 1]
01:23:58: | CopyResource - [cpu time: avg 0.016 ms, total 52281.3 ms] [avg calls per frame: 1]
01:23:58: | conversion to 4:2:0 - [cpu time: avg 0.004 ms, total 13984.4 ms] [avg calls per frame: 1]
01:23:58: Convert444Threads - [cpu time: avg 0.31 ms, total 1.97384e+006 ms] [avg calls per frame: 2]
01:23:58: | Convert444toNV12 - [cpu time: avg 0.307 ms, total 1.95519e+006 ms] [avg calls per frame: 2]
01:23:58: encoder thread frame - [cpu time: avg 0.008 ms, total 26687.5 ms] [avg calls per frame: 1]
01:23:58: ==============================================================
01:23:58: 
01:23:58: =====Stream End: 2013-10-02, 01:23:58=================================================

Here you go sir! Thanks for your patience.
 

Attachments

  • 2013-09-30-1955-04.log
    11.6 KB · Views: 35

Lain

Forum Admin
Lain
Forum Moderator
Developer
If you're running something through the mic channel and -that- particular channel has sync issues, try the mic sync options in advanced (and make sure to turn up your scene buffering time to like 700).

If you are -not- running it through the mic audio channel, there's not too much I can do about it unfortunately, it's a difficult situation.. also I can't seem to view your video again, not sure if twitch is having problems or what
 

solidxpanda

New Member
The problem with the sync issue occurs when I capture audio directly from my capture card (LGP). I don't have the sync issues when I route the audio from my Xbox to my mixing board and then into my microphone source. Now, the crackling/stuttering issue results from my microphone source it seems. I'm thinking it could have something to do with the noise gate?

The video feed I gave you is a direct link to my stream which is available to watch 24/7. Right now you won't see the problem because my team member who streams the weekend shift is streaming at the moment an he doesn't have the particular problems I do.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Okay, if you're routing the audio data through the device source, then enable the "use buffering" option in the source's properties. If it's going through the mic channel then as I said the mic options in advanced are what you want to look at. Also, set your audio to 44.1khz in encoding settings so that there's no resampling being done if it's from your device source.
 
Top