Video & audio not in sync problem

stevecheung249

New Member
Hi, I use USB capture card which support UVC/UAC. I created Video capture device and Audio input device in OBS. In the beginning, Video & Audio are in sync. But when it is running for a while, the audio start not in sync (Audio delay if comparing to video), The audio delay is increasing when OBS keep running. Would you please advise if special setting is required?

Thank you!
Steve
 
Don't ignore the pinned post in this forum about posting your OBS log so we can check your settings
If the out-of-sync timing is varying (not constant), that usually is either mismatched Audio refresh rates, or an under-powered computer (or both together) for the workload you are running
though there are other explanations as well
 
You didn't say *where* you have the audio delay. It's been a known issue for several years now, that the Monitor (physical device) does that, while the Output (stream and recording) doesn't. The reason is that the Monitor locks itself to the device's clock, while everything else stays on OBS's clock. And instead of resampling, the Monitor simply expands the buffer, ad infinitum.

Depending on what device you connect the Monitor to, you may or may not have this problem:
  • If you connect it to a virtual loopback, then you probably won't because the loopback gets its clock from the same place that OBS does.
  • If you connect it to a physical device that gets its clock from the host computer, then you probably won't for the same reason.
  • If you connect it to a physical device that has its own internal clock, then you probably will, even if the sample rates are nominally the same.
It can be hard to tell where a physical device gets its clock, so the end effect is effectively random, whether a given one will drift out of sync or not.



An effective workaround (though only a workaround, not a real solution), is to disrupt the audio to the Monitor, so that the buffer resets. Anything will do:
  • Removing and re-adding the source (usually too drastic for frequent use, but it works)
  • Changing the routing in Advanced Audio Properties to not use the Monitor, and changing it back
  • Muting/unmuting the offending source(s)
The last point can be expedited with hotkeys or a script. And since the Output doesn't have this problem, you might use some additional audio sources to avoid affecting it at all while you "blink" the Monitor copy of the same source.
 
Don't ignore the pinned post in this forum about posting your OBS log so we can check your settings
If the out-of-sync timing is varying (not constant), that usually is either mismatched Audio refresh rates, or an under-powered computer (or both together) for the workload you are running
though there are other explanations as well
Thank you for your advice! Power should not be the cause since it is desktop type.
 
You didn't say *where* you have the audio delay. It's been a known issue for several years now, that the Monitor (physical device) does that, while the Output (stream and recording) doesn't. The reason is that the Monitor locks itself to the device's clock, while everything else stays on OBS's clock. And instead of resampling, the Monitor simply expands the buffer, ad infinitum.

Depending on what device you connect the Monitor to, you may or may not have this problem:
  • If you connect it to a virtual loopback, then you probably won't because the loopback gets its clock from the same place that OBS does.
  • If you connect it to a physical device that gets its clock from the host computer, then you probably won't for the same reason.
  • If you connect it to a physical device that has its own internal clock, then you probably will, even if the sample rates are nominally the same.
It can be hard to tell where a physical device gets its clock, so the end effect is effectively random, whether a given one will drift out of sync or not.



An effective workaround (though only a workaround, not a real solution), is to disrupt the audio to the Monitor, so that the buffer resets. Anything will do:
  • Removing and re-adding the source (usually too drastic for frequent use, but it works)
  • Changing the routing in Advanced Audio Properties to not use the Monitor, and changing it back
  • Muting/unmuting the offending source(s)
The last point can be expedited with hotkeys or a script. And since the Output doesn't have this problem, you might use some additional audio sources to avoid affecting it at all while you "blink" the Monitor copy of the same source.
Thank you for your advice! Let me try virtual loopback. But how to set the virtual loopback for audio?
 
how to set the virtual loopback for audio?
You don't. For Windows, it's something you install, and it only does that. For Linux, it's already there, and you just have to google how to set it up.
I think you're getting confused between that and the Virtual Camera. The VCam is video only. No audio. There have been several requests to add audio functionality, to feed other apps like remote meetings and such without tying up the Monitor, but it's never actually happened yet.

On Windows, people seem to like VB Cable for a loopback only:
If you scroll down, you can install a few more loopbacks as well, for a total of 5 independent ones if you get all of them. As Bill Gates famously said about 640K of RAM, "That ought to be enough for anybody." :-)

And Voicemeeter for slightly more complex rigs:
Each of those adds its own virtual devices, separate from the pure-loopbacks above, so if you get the big one - Potato - and all 5 pure-loopbacks, then you can have a total of 8 independent channels with 3 of them being connected to a mixing console.

Power should not be the cause since it is desktop type.
Processing power, not electrical. A Pentium 3 is not going to stream 4K, even if you give it a modern power supply. :-)
 
I've got myself an Elgato 4K S capture card; it's linked from the PS5 to the PC.

When recording my gameplay or streaming, after a while the audio goes out of sync with the game. I've tried all sorts, but can't seem to fix the issue.
 
I've got myself an Elgato 4K S capture card; it's linked from the PS5 to the PC.

When recording my gameplay or streaming, after a while the audio goes out of sync with the game. I've tried all sorts, but can't seem to fix the issue.

Like I responded above:
You didn't say *where* you have the audio delay...
I'll let you scroll up to read the rest of that, then you can respond with better detail.

You say, "when you're recording...", but that could still include something *else* that has a problem while you only happen to be recording, and the recording itself is actually okay. Details matter here.
 
Like I responded above:

I'll let you scroll up to read the rest of that, then you can respond with better detail.

You say, "when you're recording...", but that could still include something *else* that has a problem while you only happen to be recording, and the recording itself is actually okay. Details matter here.
Hi, sorry if my post isn't detailed enough, but I'm kind of a noob at this.



My recording is fine in regards to the gameplay, i.e., no lagging, no glitching, pretty good quality.



My only issue is the sound syncing with the gameplay, whether I'm streaming or recording. The program I'm using is OBS. I'm on a Windows 11 AMD laptop. Let's say for the first 10 minutes, the game and sound are synced fine, but after that, it will slowly start to drift apart. I've tried alsorts to try and resolve this issue but like i said I'm no expert in this department i am greatful for your time to respond and your patience on the lack of knowledge i may have that may frustrate you
 
Hi, sorry if my post isn't detailed enough, but I'm kind of a noob at this.



My recording is fine in regards to the gameplay, i.e., no lagging, no glitching, pretty good quality.



My only issue is the sound syncing with the gameplay, whether I'm streaming or recording. The program I'm using is OBS. I'm on a Windows 11 AMD laptop. Let's say for the first 10 minutes, the game and sound are synced fine, but after that, it will slowly start to drift apart. I've tried alsorts to try and resolve this issue but like i said I'm no expert in this department i am greatful for your time to respond and your patience on the lack of knowledge i may have that may frustrate you
Is the de-sync in your headphones/speakers while you're *making* the recording? Or is it in the recording itself when you play it back afterwards? Those are two different things, and so far, you've only said "it", without making that distinction.
 
Back
Top