Question / Help *Workaround* Trouble with Audio out of sync

fullmental

New Member
Hi, I am having some problems with my local recordings while streaming to Twitch. The issue is that when I stream to twitch and record locally, the game capture audio on *track 1* of the *recorded file only* is out of sync. In track 2 (which is the game capture audio only) it's in sync, and the stream (which uses track 1, the problem track in recorded files) is also in sync. Below is a log file:

https://gist.github.com/anonymous/fbe1688afca0bb66008ddfd8a04bcb66

I was working with a helpful member on the IRC chat that suggested several optimizations and fixed some other issues before needing to leave (Thank you to said person, by the way!), but this audio sync issue persists. What should I adjust to fix this problem? It doesn't make much sense to me why everything would be perfectly in sync on every single scenario except game capture on the local recording of the audio mix track, if it was a source issue I'd expect it to show on *all* instances of the audio capture instead of just one, and if it was a track issue I'd expect it to show on both the local recording and the stream, instead of just the recording. Any ideas?
 
Last edited:

Fenrir

Forum Admin
Have you tried using .mkv as the output container for the local recordings? Using .ts is a tad odd.
 

fullmental

New Member
Hi there, thank you for your help earlier. Unfortunately Adobe Premiere Elements 15 doesn't support MKV as an input format for editing, and I'm unaware of any other containers besides MP4 (not suitable for editing) that supports multiple audio tracks. I can try it just to see if it fixes the issue, give me a few minutes.
 

Fenrir

Forum Admin
Hi there, thank you for your help earlier. Unfortunately Adobe Premiere Elements 15 doesn't support MKV as an input format for editing, and I'm unaware of any other containers besides MP4 (not suitable for editing) that supports multiple audio tracks. I can try it just to see if it fixes the issue, give me a few minutes.

Record to ,mkv and just remux after to whatever you want. OBS has a built-in remuxer in the File menu.
 

fullmental

New Member
Cool feature, didn't know that existed. Unfortunately the problem persists with .mkv regardless, I just tried a test and got the same results.
 
Last edited:

fullmental

New Member
Any other ideas for this, or is it perhaps a genuine bug that should be reported at this point? I'm open to try more suggestions.
 

fullmental

New Member
You need to do something new to become genuine.
I think, there was some evidence of similar problems (first one reported twice - with patch to 0.14.1 and latest one 18.0.1):
Track one of local recording desynced?
Local Recording One audio track out of sync
In local recordings, track 1 only audio desync
(unresolved)

What? What do you mean I have to "do something new"? If many people are experiencing this, it only serves to validate my claim that it's likely a bug, not detract from it. Either that, or there is a common setting that is improperly done in our setups. Or perhaps I'm not understanding your meaning here.
 
Last edited:

Fenrir

Forum Admin
What? What do you mean I have to "do something new"? If many people are experiencing this, it only serves to validate my claim that it's likely a bug, not detract from it. Either that, or there is a common setting that is improperly done in our setups. Or perhaps I'm not understanding your meaning here.

Don't mind him, he misunderstands quite often. There's a pretty heavy language barrier.

This is something that has come up in the past, but it's difficult to replicate or track down why it happens. It's likely to be a bug in OBS, but without more information on the exact cause, it's hard to fix. However, one post gives me an idea for you to try. Grab the CoreAudio encoder here and see if it helps: http://obsproject.com/forum/resources/obs-studio-enable-coreaudio-aac-encoder-windows.220/
 

fullmental

New Member
Don't mind him, he misunderstands quite often. There's a pretty heavy language barrier.

This is something that has come up in the past, but it's difficult to replicate or track down why it happens. It's likely to be a bug in OBS, but without more information on the exact cause, it's hard to fix. However, one post gives me an idea for you to try. Grab the CoreAudio encoder here and see if it helps: http://obsproject.com/forum/resources/obs-studio-enable-coreaudio-aac-encoder-windows.220/

Good idea, but yeah no difference. It actually worked once at random, but when I went into my stream I found the problem had just migrated there instead of the local audio.

I think I did find a workaround though. I basically made a copy of the audio mix track as track 4, took track 1 off the recording, and now everything is properly in sync! So maybe it's just an issue that arises when OBS is trying to write the same audio mix track to both the stream and recording, perhaps it adds latency to the recording as a result? Either way, if anyone comes around again, have them try to duplicate their track 1 to an empty track instead.

Thank you for all of your help!
 

Molda

New Member
I think I did find a workaround though. I basically made a copy of the audio mix track as track 4, took track 1 off the recording, and now everything is properly in sync! So maybe it's just an issue that arises when OBS is trying to write the same audio mix track to both the stream and recording, perhaps it adds latency to the recording as a result? Either way, if anyone comes around again, have them try to duplicate their track 1 to an empty track instead.

Thank you for all of your help!

Can you please elaborate on how you fixed this? because i have the same problem. I have game audio on track 1, mic on track 2, (i record locally track 1 and 2) and i have everything together on track 3 for streaming. And now what? I just use track 4 instead of track 1 for recording? That should fix it? thanks
 

Suslik V

Active Member
@Molda OBS Studio code were changed since the last post in this thread. Make sure that you talking about the same version of the application.
 

Molda

New Member
What does it matter if the code changed? I have the exact same problem as the person above no matter the code of the OBS.
The stream is perfectly synced but the local recording is out of sync. I have video track, 1 audio track is game audio and 2nd audio track is microphone. The microphone audio track is synced perfect with the video, but the audio track with game audio is out of sync with the video. Which is very strange.
I am recording in MKV and remuxing to MP4.
 

Suslik V

Active Member
@Molda some bugs were fixed and provided solution may has no effect for you.

Try tracks as follows:
#1 (all) - stream
#2 (only desktop) - recording
#3 (only mic) - recording

Edit: #1 (all) - you may record it too.
 
Top