Question / Help Audio Getting further out of sync

Marshmallow_Fox

New Member
I've noticed more than once now, with certain streams (not all), when I review the video, the desktop audio is signficantly delayed; sometimes almost a full 2 seconds later than video. Mic audio timing is spot on. At first I thought it was something that got progressively worse as the stream went on, but then I realized it was consistent throughout any stream it was occurring on.

So like, this stream, it stayed perfect throughout. https://youtu.be/jweMG_lYwWg?t=1h6m45s

Compare to this one where the audio is about a second behind: https://youtu.be/2HaSnczTCEM?t=22m50s

And in my latest stream still on Twitch, it's even worse.

I've googled this and found a bunch of results about people saying "It's very rare, but you may need to enable 'Force desktop audio to use timestamps as a base for audio time' in your advanced options." A lot of these posts are old, but both the documentation I found on this site and on Twitch also make references to this option.

However, these are my OBS advanced options.
https://www.dropbox.com/s/bwdfyt4ul65rkh6/obsops.jpg?dl=0

As you can see, there is not even an audio section in advanced, let alone that specific option. It also isn't in the Audio section either.

Log file from session: https://www.dropbox.com/s/y9eqn6tmhfjjz0x/2016-10-12 20-41-41.rar?dl=0
 
Last edited:

Marshmallow_Fox

New Member
Update: I've talked to some people who were viewing the stream live. All of them claimed that during the stream, the audio was synced up with the video. It also looked that way to me to, watching on the other monitor. It's only after viewing the saved broadcast on Twitch that the audio is sometimes behind. Is this an OBS issue or a Twitch issue? I never had this problem with Xsplit.
 

Suslik V

Active Member
This setting (timestamps) available under the Use Device Timestamps checkbox in 'Audio Output Capture' source and 'Audio Input Capture' source if I understand it right. You can add this source to the scene (don't forget to place it in all scenes where you need it to appear) and disable the same device it uses at main menu File>Settings>Audio.

Just in case, OBS Studio Help Guide: https://obsproject.com/forum/resour...ware-studio-multiplatform-help-guide-pdf.365/ .


Do you use hw based encoder during the streaming?
 

Marshmallow_Fox

New Member
I stream with the basic x264 encoder and all of the settings are default.

So do I need to have those two sources running at the same time (Audio Input & Audio Output) while I also run the regular game capture?

And you are saying once I add those sources to the stream, I go into my audio settings and disable ALL audio devices?

I typically only run the game capture source with the window selected in that source's options.


I'll play with this during tonight's stream and see if it gets me anywhere, thanks.



Edit: Looking back at the stream, the audio is synced. I will use this for the next few broadcasts and see if it continues to work. Thanks
 
Last edited:

Suslik V

Active Member
...
And you are saying once I add those sources to the stream, I go into my audio settings and disable ALL audio devices?
...
Sure is. It's same devices and same control (Push-to-talk/Push-to-mute still available under Settings>Audio, either you add source at Settings or at Sources list). In current build of the Studio you can rename the sources you added individually and adjust volume per source (this is most benefits from adding audio sources individually).
 

Marshmallow_Fox

New Member
Just want to note that while this has worked almost all of the time, while streaming a game tonight, one of the chat members reported the audio being very behind. I disabled timestamps on the desktop audio, and it was fine. Luckily, it showed up during streaming and could be fixed during it as well, as previously, it wouldn't show up until after the stream was finished.
So I would say, rule of thumb is to leave it on, and in the rare case it seems delayed while streaming, turn it off.
 
I'm having the same issue, and have always had "Use device timestamps" checked. Variable audio desync, I hear it fine but the stream hears a random amount of delay, usually as high as 2+ seconds, and it usually doesn't start with the stream. It's usually a couple of minutes in before someone says in chat that the audio has delayed itself. It can also get worse as the stream goes on. It doesn't matter if I'm on pc or using my cap card. Someone pointed out this seems to only be happening since the anniversary update. Are things still working for you, Marshmallow?

Maybe disabling the Studio preview will help like it does with the other issues the new update has been causing?
 
Top