-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Application Audio Capture (beta)] Sound becomes noisy after a long time #8064
Comments
To diagnose this, we would likely need someone affected to follow these steps: |
I'm having the Noisy after 30-ish minutes issue with this audio capture method. Are you still looking for logs? I can capture you some if so. |
I'm experiencing this exact same issue, also with Discord. Applying the suggested solution (change the audio source to other application and then back to Discord) only fixes it for a few minutes, I had to do it multiple times in my last streaming. Is this issue being investigated? |
I have the same problem. Only with me it is also partially with the game audio (Tarkov), Spotify and Discord. I use OBS 29. Is there anything I can do to help solve the problem? |
The same bug, but only at the beginning of the stream. |
Same issue here.
My environment is |
For those able to reliably reproduce this, please provide a regular OBS log and a link to a video that exhibits this issue. If you are able to do so, please also follow these additional troubleshooting steps:
@S64 That you were unable to reproduce this on OBS Studio 28.1.2 is probably just by chance. This issue has been reported since before the #5218 was merged (see this comment), and the third-party win-capture-audio plugin also exhibits this issue. |
Is there a known fix to this, or anything to combat it? |
Is this step should be done in the middle of the "crackling"? Because crackling may gone by itself. |
Not at this time.
The important part is that the issue must have occurred. As far as I know, it is not important if you execute |
Recorded inside VirtualBox environment. obs_Issue8064_rec_etl_log_7z_file_LZMA.zip obs_Issue8064_rec_etl_log_7z_file_LZMA.zip, 7-zip archive, about 14.9 MB to download, MD5:AEEE3F36C5C89AB195C3CAEE826DF11F Inside:
OS: OBS: OBS setup (test files): |
I sent my repro.etl and links to my log and VOD to Mitchell (Yolo#0420) on the Discord server (EDIT: on May 18th), but I figured I'd post my log and VOD here as well for visibility: Log: VOD:
If for some reason the other people in this thread haven't seen my |
I exactly have the same problem, but because it's random, and because in my setup I have the source muted to my monition (I listen directly form the font) then I just have to rely on my viewers that will tell me if the sound is not good, but this is very annoying because I do have a lot of work to have the perfect sound... here's my example: This is when the audio problem starts (it can start rendomly at any time, or simply not happen): And this is when someone from my viewers tells me, and i just select randomly another Scene Collection,, turn back, and voila: |
Few additional tests and results. Results Description of results
In each case "crackling" lasts for about 30 seconds. OS: Test files (all archives has .zip file extension instead of .7z just to be able to upload it here) Steps for the Test files:
Notes:
My own thoughts It's all I can do right now. |
Test results inside VMs are unusable, unfortunately. This needs to be replicated on a native Windows install, not a VM. |
@Fenrirthviti Still, the problem is real on windows environment. Happens to me using the last obs version in windows 10 updated. @SuslikV we cannot detect in real time because we are capturing in OBS but playing sound from the application, so in OBS the audio monitor is muted (if not we would listen the source 2 times, and even with almost no latency, it would be a mess). That’s why normally I have someone on chat saying to me that the sound is weird… the only thing I know to stop the weird sound is if I change “scene collection” in obs and return to the same almost immediately, the problem is gone. But we really need this to be fixed… or at least understand what is going on so we have measures to fight against the problem until it’s not corrected. Feel free to ask me for help, I’ll do anything to have this corrected. |
@nunowonder @charlesphil I looked at your twitch media files and I see increased amplitude of samples and multiplication to 0 of some of them - that sounds for me like "crackles". It is not like data was substituted by some random numbers. But of course, this can be my imagination. What happen if you playback test sounds on your PC for hour-two? Does OBS glitch them as well? Or this should be exclusively heavy task like game or browser? Just wonder. |
@SuslikV it's random. For example, playing trackmania for 1 hour (it can be more, it can be less, you never know), and sound is perfect, the CPU Load is the same, everything is just perfect, and suddenly, crackling sound! Because I'm live streaming, and hearing from the game and not from the monition of OBS, I just know if the problem is happening if someone on my chat tells me. If not, the sound continues crackling... but for example, I play a lot GTAV RP, and that's much more intensive than trackmania, and I think it NEVER happened on GTAV capture... I don't know if there is something about the scene collection of GTAV have more audio sources... Somehow maybe the plugin don't crackle if the scene in OBS have more audio sources (?). It´s really something very strange because we don't know the cause... and it might not happen... |
@Fenrirthviti if people will be able to reproduce the issue with my synthetic tests but in real PC - will it be fair or only real use case needed (audio grabbing from the game)? |
@SuslikV and @Fenrirthviti I have it here: |
@nunowonder And again, the developers were aware of the issue when feature was introduced in OBS: 769a29b
the issue was reported by user in: #5218 (comment) |
Per the contacts at Microsoft that we are working with, data collected from a virtual machine is not usable for them. We are not denying there is a problem, we know full well that there is something going on here. This is likely a bug on Microsoft's side, but we are trying to collect data that they require to investigate. Due to the complexity of the data collection, it has proven extremely difficult to get everything we need. Without all the pieces of data, they are individually not very useful. We need all the steps in #8064 (comment) completed, as well as the audio sample (which is no longer optional, and is required to move forward with troubleshooting). |
Results from a synthetic test on a normal (not in a virtual machine) Windows installation might be fine. |
recently started doing pc games via obs (usually its console games) and started a game called tell me why (chapter 2 is here https://www.youtube.com/watch?v=4iTvD-NV7SI&t=771s ) now my viewer(s) have been saying its been static about every thirty minutes (seems to be happening more frequently the longer the stream, goes on), i am recording a game from xbox game pass on pc, dont know if thats a thing that could also play into the factor of application audio capture, dont know if the fact i have two different application audio captures for 2 different scenes plays a factor as well, but the static is happening and hopefully this stream can help (first chapter https://www.youtube.com/watch?v=fDCVNTqN8S0 ) i found the loud music and ambiance from the game in intense and loud scenes seems to playing into the static being caused when streaming |
Can someone confirm the current steps for gathering and providing the relevant data in reproducible scenarios? Just did a dry run to make sure the instructions from #8064 (comment) still work. I have the issue occur pretty often and quickly recently, so I thought it would be a good time to gather the requested data. I am on OBS 29.1.3, Win 10 Version 10.0.19045 Build 19045. After running
It also doesn't create any file in the folder. Edit: moved question to top of comment. |
It seems other software like e.g. the Elgato Wave Link experience similar issues. In their case, the software allows the adjustment of the buffer size. Increasing that is typically the suggested solution to solve crackling audio. It also seems that windows reduced the audio buffer size severely with Windows 10, which might play into this: https://learn.microsoft.com/en-us/windows-hardware/drivers/audio/low-latency-audio I am unfamiliar with the obs-studio code and C++, but from a naive search through it, I couldn't find any code adjusting the buffer size or safety buffer size of the WASAPI devices at all. Only the code clearing the buffer. Maybe this is an angle to approach the topic from? I am sorry if I missed something and this is just useless conjecture. |
We already dynamically increase buffers as necessary, and reset it by restarting the audio if it gets too large. This is unlikely to be related to something on our end, which is why we need the traces to send to Microsoft for investigation alongside the audio samples. Without everything together, they can't properly debug it. As for the error, I'm unsure on that. The steps in the comment you referenced are still correct, and haven't changed. We'll check with MS and see what we can find, but if you are able to reboot your PC and try again from a clean start, that would be a good next step. |
If soneone could give me accurate steps on using the wprp I will next session. But After approx 45 minutes or so of obs running, i captured the application audio capture running behind the source. It's not a crazy amount behind, but earlier in session, it was identical. You can see in the waveform of resolve track 2(app audio capture) is delayed. https://obsproject.com/logs/0cojBetIG2LLzsOx Update, this happened very shortly into session. The desync isnt as drastic as a longer session, but the waveform again clearly shows it falling behind |
I tried it yesterday and it works - my crackling sounds are back in 15-20 minutes, thats stupid =/ so every 10 Minutes i need to loop the Script. How does the volume fade procedure work? The stream was not quieter at that moment and you could hear the stuttering sound from the restart. Is there anything else that can be adjusted? |
Hello! I would like to know if this update solves the problem, and if so can you tell me the KB number of Microsoft's update? Thank you so much... |
okay, I read that if you lower your audio buffer, the error should be fixed. Now I have downloaded ASIO4ALL and Voicemeter and set my audio output to buffer size 256. And now I realize that there is no problem anymore. I will continue testing and report back. |
As i understood, you were able to get the script working, but the fading was not working. Thanks for testing it and giving feedback. 😊 You are probably not interested in the python script anymore, but i have improved it. While it was fading the volume it froze the user interface. One month ago it was not doing this, the sliders in the audio mixer were moving. So i made a new version: Current version is now in this gist You can now configure the fade parameters within the scripts window. I don't know why it was stuttering while fading, maybe it had something to do with the frozen UI while it was doing it. Maybe other parameters could help here too. Like 0.001s, 0.001s, 0.450s, 0.450s for the last 4 boxes. Another workaround approach would be, to add the app audio sources twice and always have one muted. Every 10 minutes it could restart the muted one and then switches the mute state of both sources. But sadly it is harder to manage it, so it is probably not a good idea. Maybe a fork of an audio capture could do something like this internally, but this could be too much effort. And we don't know when the windows update is ready. So at this point it could be wasted effort. |
Thanks for the tip, I'll give it a try anyway. Can you add the correct file to download in your post? I downloaded it via your link, but still have the old display, so I just rewrote my file manually. |
Hello all, |
Apparently Microsoft thinks they have found d a solution but they will need to deploy the fix in an update, which there is no eta on |
Hi @XevErylux , first of all, THANK YOU very much for the script. I will test it, and I just put a restart interval of 1200 (I think mine work well for at least 30minutes long, I´ll test it if it´s a fixed timing or not). But if I press "restart sources now", i don´t like too much the +- 5 seconds of fade out and fade in. I would preffer to just stop the audio for the minimum amount of miliseconds and have the cut like without fading. So I have this 3 questions that I would gladly appreciate if you could help me: (1)- So, imagine this, if it´s possible to have, for example, 10miliseconds only of cutting audio, it would just be that without the fade out and fade in. With the fading it´s too noticeable. Is it possible to do it? (2)- Also, could I have a shortcut for the "restart sources now"? (3)- And if I presson "restart sources now", will it start to count from that moment the restart interval? Thank you! |
Let's please keep comments on-topic to the issue itself, and support and workarounds can be discussed on the forums or Discord. Thanks! |
I’m sorry but seems that the only thing we are all waiting is for the windows update that will solve this. And because we were talking about workarounds, and because no one opposed to that, I thought I could continue that conversation that no one opposed to. I think it’s really important to continue this topic but since we are waiting for the windows update, can’t we talk about solutions “in the mean time”? |
You are welcome to discuss, but please take it off-thread. We do not use github issues for support, and posting messages sends notifications to the entire development team, as issues are reserved for development discussions and the bug reports themselves. We normally don't even keep upstream bugs open on our repo in the first place, but since this is important enough and affects enough people, we've kept it open so people can follow status. "Please update your script to have these new features" is not really appropriate to ask on github. Use the forums or Discord for assistance. Thanks for understanding! |
I can confirm that Microsoft has implemented a potential fix for this issue that is targeted for Windows 11 24H2. In our testing, the fix resolved the issue. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as duplicate.
This comment was marked as duplicate.
@ANIMka we are waiting for the Windows 11 24H2 update now. |
Do you know if there are plans on Microsoft’s side to provide this fix in a Windows 10 update as well? As of today I’m experiencing this issue with an up to date Windows 10 install. |
Unfortunately no. Shoving Copilot in your face was more important to them than fixing a bug for a feature they first introduced with Windows 10. |
Heads-up: 24H2 update is being rolled out starting today. |
Did you guys solve the problem with 24H2? |
This was always a bug with Microsoft, which should be resolved in the 24H2 update. There is nothing for us to change or update, and should fix it for all versions of OBS that include the audio capture feature. If there are issues still present after updating to 24H2, then a new issue should be opened with reliable replication steps. |
After upgrading to 24h2, i can confirm my issues were resolved. I've recorded multiple gameplay videos, more than an hour long, and all of them are fine now. 24H2 as an OS is so buggy though. |
Seems to be fixed 👏 |
so i just need to upgrade my w10 to 11 and it should be fixed? |
is there a way to cherrypick windows patch for it without upgrading to 24h2, anyone, pls? |
When I upgraded to 24H2, the problem was fixed, but I recently had to reinstall from scratch. I did this with a 24H2 ISO. The problem returned on this fresh installation (I have confirmed I am absolutely on 24H2)... And at the 3 hour mark just like it was in the past. I hate this. |
Problem persisted on my freshly installed 24H2 (Build 26100.2605, Windows Feature Experience Pack 1000.26100.36.0) as well. |
@SaraJLeen @merigold55 please provide logs and examples with timestamps. |
I'm also having the same issue on 24H2. I can't seem to consistently reproduce the problem though and in the rare cases where I run into it it usually takes over 10 hours for the cracks to occur. Will upload logs and samples when I manage to reproduce it. |
Operating System Info
Windows 10
Other OS
No response
OBS Studio Version
29.0.0
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/oF4ofzG6VIEKsq24
and https://obsproject.com/logs/Rfepmf1mNnWVYiE9
OBS Studio Crash Log URL
No response
Expected Behavior
Application audio capture should not send noisy audio
Current Behavior
When using application audio capture (beta) to record the Discord audio and send it through NDI, the audio capture works fine with a clean and perfect audio quality, but after a certain amount of time (like around 30 minutes) the audio is getting noisy.
Here is a clip where you can hear my friend's voice being noisy: https://clips.twitch.tv/ProudImpartialHyenaOpieOP-G7_zZ-l1EyINMDSD
Editing the application audio capture settings, like chosing another application to capture and then chosing back Discord fixes the issue until it starts to be noisy again (~30 min later)
Steps to Reproduce
Anything else we should know?
I'm currently using two Application Audio Capture (beta):
I don't thing it could be an NDI issue, all the other audio sources are working perfecly.
Also didn't had the issue in OBS 28
The text was updated successfully, but these errors were encountered: