Max audio buffering. Restarting source audio (NDI)

kevin233

New Member
hi everyone, i keep running into this issue when trying to dual setup stream over NDI. at seemingly random points in time the stream rig will say ''source audio is lagging at max audio buffering. restarting source audio''. this either makes my audio go out of sync or completely stop for a moment. It looks like this happens pretty much only when my game is loading on my gaming rig, but there are no signs of either CPU or GPU maxing out. Spent the entire weekend researching this and ive tried just about everything i could find on the internet about this issue and i'm at a complete loss

https://obsproject.com/logs/kuV75zKazO7mvJrG this is my logfile for the streaming rig

https://obsproject.com/logs/rBMSZT77DqKhb278 this is the log for the gaming pc

I have since changed the sample rate on my gaming rig to match all 48K audio + enabled gaming mode, but to no avail.
 

rockbottom

Active Member
Gaming & Streaming PC's, I have not seen this before?
6:29:49.522: audio settings reset:
16:29:49.522: samples per sec: 48000
16:29:49.522: speakers: 2
16:29:49.522: max buffering: 21 milliseconds
16:29:49.522: buffering type: fixed
16:29:49.524: ---------------------------------

Streaming:
Remove these sources, then test:
16:02:53.011: Source GAME PC AUDIO STREAMDECK audio is lagging (over by 120.37 ms) at max audio buffering. Restarting source audio.
16:02:53.032: Source GAME PC AUDIO TARKOV audio is lagging (over by 39.98 ms) at max audio buffering. Restarting source audio.

My log:
09:48:56.014: audio settings reset:
09:48:56.014: samples per sec: 48000
09:48:56.014: speakers: 2
09:48:56.014: max buffering: 960 milliseconds
09:48:56.014: buffering type: dynamically increasing
 

rockbottom

Active Member
Looks like some setting was changed on both PC's

15:11:40.051: Enabling fixed audio buffering, total audio buffering is now 21 milliseconds
16:29:49.544: Enabling fixed audio buffering, total audio buffering is now 21 milliseconds
 

rockbottom

Active Member
Nvidia Control Panel > Manage 3D Settings. Fixed Audio Buffering is loading up with the GPU so I assume you have Low Latency enabled there. I never used it but that seems like the best place to start.

15:11:40.034: Loading up D3D11 on adapter NVIDIA GeForce RTX 3080 (0)
15:11:40.051: Enabling fixed audio buffering, total audio buffering is now 21 milliseconds
15:11:40.122: D3D11 loaded successfully, feature level used: b000
15:11:40.122: DXGI increase maximum frame latency success
15:11:40.122: D3D11 GPU priority setup success
 

kevin233

New Member
I will try again to disable low latency (I have tried to leave it disabled on both machines, as well as enabling it on both machines), remove those specific audio sources and adjusting Nvidia control panel in a bit when I get back home. Thank you for response I really appreciate it. Will post back in a bit after I tried these things.

Just a question, am I supposed to change Nvidia settings on the stream rig or on the game rig, or both?
 

rockbottom

Active Member
Check all of NDI settings too. I no longer use NDI with OBS but I do remember there are Low Latency modes available when setting-up sources, ect.

Devices will continue to reset while there are only 21ms of audio buffer. Once it goes over it re-sets. So you will need to find what setting(s) were changed that is now causing the Fixed Audio Buffer.
 
Last edited:

kevin233

New Member
Okay I've gone over the settings again. On both pc's Nvidia control panel low latency was already off.
I've removed ''Source GAME PC AUDIO STREAMDECK'' + ''Source GAME PC AUDIO TARKOV''
Restarted OBS (both pcs in administrator mode)

Then on my game pc i closed everything other than game + obs and I think that has solved my issue. I think what was happening is game loading + having a twitch stream open was overloading my cpu and causing this problem.
Hopefully that was really it. Rockbottom thank you so much for thinking with me!!
 

rockbottom

Active Member
You can confirm by looking at the most recent logs, the info is right near the top so easy to locate.

Here was the info from the old logs. Max Buffering should be 960ms & Buffering Type Dynamically Increasing

15:11:40.026: audio settings reset:
15:11:40.026: samples per sec: 48000
15:11:40.026: speakers: 2
15:11:40.026: max buffering: 21 milliseconds
15:11:40.026: buffering type: fixed
 

kevin233

New Member
Okay so I done some more testing, and it does now show max buffering 960ms and dynamically increasing.

Only I've found that my issue is still there. Source is lagging, adding buffering, buffering max reached -> restarting source.

It also seems that there are now errors regarding streamelements (alerts) for reasons I do not understand, as I've not touched anything regarding that. I have only followed the instructions written above.

I added the latest log below:

 

rockbottom

Active Member
Good, audio buffer fixed. NDI sources are lagging. I don't do SE, it could be part of the problem, you need to contact them for support.

Create a new Profile with just 1 Scene/Source test.
 

kevin233

New Member
Is there a way to make a new profile from scratch and save my old one? When I click profile -> new it just keeps all my current sources and scenes, removing them from that new profile also removes them from my old profile
 

rockbottom

Active Member
NDI is the problem &/or it could be SE, need to work through it. There is no change one setting & it's fixed.
 
Last edited:

rockbottom

Active Member
Here are the NDI sources that lagged & caused the max buffering in the last log.

23:47:30.007: adding 106 milliseconds of audio buffering, total audio buffering is now 106 milliseconds (source: NDI GAME PC Desktop Audio)
23:47:30.007:
23:47:32.887: Max audio buffering reached!
23:47:32.887: adding 853 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: NDI GAME PC SPOTIFY)
23:47:32.887:
23:47:32.908: Source NDI GAME PC SPOTIFY audio is lagging (over by 1439.56 ms) at max audio buffering. Restarting source audio.
 
Top