Problem with audio progressively desynchronizing when recording

kiwillius

New Member
Hello! Hope someone can help me. I have a problem with the videos I record, because the audio randomly desynchronizes and the more recording time passes, the more it desynchronizes and I only notice it when reviewing the video.
I currently have an Nvidia 1070Ti+Ryzen 5 5660G and this problem occurs with everything that involves using the graphics, such as emulators or PC games, however the graphics do not give me any problems, the games run well and there are no errors, even in high quality, it only happens when Time to record in OBS and no matter how much I search, I can't find a solution. I have had the audio out of sync for more than 20 seconds at the end of a video and it is always random how much it will go out of sync.

I have tried everything, reinstalling it, restarting the settings, even trying the default obs, but nothing, the audio continues to progressively desynchronize and I don't know what else to do, I don't know what causes it.
I have tried using the graphics encoder and the x264 software encoder and it is always the same result with the audio and this had never happened to me before until I started using a dedicated graphics card.
If everything is fine, why does it only fail when recording with OBS? It barely uses a minimum % of the graphics card. It's not a performance issue because everything is fine and I have tried even the minimum bit rate and resolution, I don't understand what is happening.
I am attaching the log of a recording in case someone detects something and can help me.
I'm desperate.
 

Attachments

  • 2023-11-13 11-36-33.txt
    16.9 KB · Views: 15
  • config 1.png
    config 1.png
    62.5 KB · Views: 13
  • config 2.png
    config 2.png
    47.4 KB · Views: 13

Suslik V

Active Member
Look at Windows shared mode settings for the playback device and remember its sample rate (or even change it to 48000 Hz). Then set everywhere in OBS same value (including properties of capture devices).

Also, you may try v30 of OBS (already available).
 

kiwillius

New Member
Look at Windows shared mode settings for the playback device and remember its sample rate (or even change it to 48000 Hz). Then set everywhere in OBS same value (including properties of capture devices).

Also, you may try v30 of OBS (already available).
Thanks for answering. Where can I see those parameters and do you make those changes? I've been having this problem for a couple of months and I haven't been able to solve it other than editing the video to fix the audio
 

kiwillius

New Member
Thanks for answering. Where can I see those parameters and do you make those changes? I've been having this problem for a couple of months and I haven't been able to solve it other than editing the video to fix the audio

I think I found it, in Windows it was at 48khz and I set it the same in the OBS audio, but the problem is still here :(
imagen_2023-11-13_134410240.png
 

Suslik V

Active Member
Usually, during recording, if some source lags, there will be message in the log that audio was buffered due to "some_source_name". You better to remove this source from your OBS scenes.

If capture device provides unstable timestamps - either ask manufacturer of the device (maybe there is new driver available) or consider to buy new (better) device.

Here I assuming that audio from your capture device is lagging (I see 3 tracks in the log, and don't know what sources you have routed to this tracks).
If other source is lagging - you need to find is there driver update available for the device that linked to this source (like Realtek High Definition Audio etc).
 

kiwillius

New Member
Usually, during recording, if some source lags, there will be message in the log that audio was buffered due to "some_source_name". You better to remove this source from your OBS scenes.

If capture device provides unstable timestamps - either ask manufacturer of the device (maybe there is new driver available) or consider to buy new (better) device.

Here I assuming that audio from your capture device is lagging (I see 3 tracks in the log, and don't know what sources you have routed to this tracks).
If other source is lagging - you need to find is there driver update available for the device that linked to this source (like Realtek High Definition Audio etc).
I've been looking at the log and I honestly can't find any source that mentions buffering. The 3 tracks correspond to the microphone, desktop audio and an Elgato capture device, but that capture device is independent of the problem. The track that has the problems is the desktop track.

I feel very frustrated and without a way out because I can't find the cause of the problem, I have even started recording without any scenes and all the sources deleted and leaving it as default, but even then it keeps happening. I don't know if I should buy another graphics card :(
 

Suslik V

Active Member
Then I strongly recommend you to find out is there update available for your "Realtek High Definition Audio" device or not (either form manufacturer of the motherboard or from the Realtek itself - you are looking for the device driver).
I have no other ideas.
 
Top