Skip to content
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

Open
AlexPresso opened this issue Jan 14, 2023 · 95 comments
Open
Assignees
Labels
Confirmed This bug report has been confirmed by project members Windows Affects Windows

Comments

@AlexPresso
Copy link

AlexPresso commented Jan 14, 2023

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

  1. Create two "Application audio capture (beta)", one for Discord and one for the game
  2. Stream for around 30 min or more
  3. The Discord audio will start to get noisy

Anything else we should know?

I'm currently using two Application Audio Capture (beta):

  • one for Discord (which is getting noisy after 30 min)
  • one for the game (Ready Or Not) that is working perfectly fine (no noise for the entire streaming session)

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

@RytoEX
Copy link
Member

RytoEX commented Jan 17, 2023

To diagnose this, we would likely need someone affected to follow these steps:
#5218 (comment)

@pandages
Copy link

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.

@ernespa
Copy link

ernespa commented Mar 10, 2023

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?

@liketop
Copy link

liketop commented Mar 13, 2023

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?

@botanegg
Copy link

The same bug, but only at the beginning of the stream.
Sound becomes normal after a while.
Windows 10, OBS 29.0.2

@S64
Copy link

S64 commented Apr 23, 2023

Same issue here.
Sorry for the lack of information, but I would like to share the situations when I tested it.

  • Pattern 1:
    • Using OBS v29.0.2, capturing Chrome's audio using Application Audio Capture (Beta).
    • Recorded (not a live stream) for about 40 minutes, audio became noisy around 29-minute.
  • Pattern 2:
    • Using OBS v29.0.2, did not use Application Audio Capture (Beta), and captured Chrome's audio with win-capture-audio v2.2.3-beta.
    • Recorded for about 40 minutes, audio became noisy around 28-minute.
      • (Honestly, this result is unexpected. I apologize if I made a mistake in the settings.)
  • Pattern 3:
    • Downgraded to OBS v28.1.2 and captured Chrome's audio using Application Audio Capture (Beta).
    • Recorded for about 40 minutes, and not confirm any particular noisy audio.

My environment is Windows 11 Pro 22H2 22621.1555.

@RytoEX
Copy link
Member

RytoEX commented Apr 23, 2023

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:

  1. Download obs.wprp.zip and extract obs.wprp.
    Do not use the obs.wprp/obs.wprp.zip file linked in win-wasapi: Add support for capturing a process #5218 as it is now outdated.
  2. From an admin command prompt at the location of obs.wprp, enter: wpr -start obs.wprp
  3. Start the scenario (start OBS and start streaming/recording). Keep capturing until the problem occurs.
  4. After the problem has occurred, in the admin command prompt, enter: wpr -stop repro.etl
  5. Provide repro.etl to us privately since it may contain personal information. You can find us in Discord: https://discord.com/invite/obsproject
  6. Optional: Provide extracted audio from the recording.

@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.

@xPolar
Copy link

xPolar commented May 27, 2023

Is there a known fix to this, or anything to combat it?

@SuslikV
Copy link
Contributor

SuslikV commented May 27, 2023

4. After the problem has occurred, in the admin command prompt, enter: wpr -stop repro.etl

Is this step should be done in the middle of the "crackling"? Because crackling may gone by itself.

@RytoEX
Copy link
Member

RytoEX commented May 27, 2023

Is there a known fix to this, or anything to combat it?

Not at this time.

  1. After the problem has occurred, in the admin command prompt, enter: wpr -stop repro.etl

Is this step should be done in the middle of the "crackling"? Because crackling may gone by itself.

The important part is that the issue must have occurred. As far as I know, it is not important if you execute wpr -stop repro.etl during or after the issue, just so long as the issue has started.

@SuslikV
Copy link
Contributor

SuslikV commented May 27, 2023

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
(file extension is .zip instead of .7z to be able to upload it here)

Inside:

  1. OBS log "2023-05-28 00-23-14.txt";

  2. Windows Performance Recorder "repro.etl";

  3. Record "2023-05-28 00-23-29.mp4" (fragmented, software x264, two AAC tracks, both tracks configured to record same sound (that playbacks by the system), 1kHz tone);

  • 1st track is Application Audio Capture (BETA) (process capture, crackling starts at 53 sec);
  • 2nd track Desktop Audio (device capture).

OS:
Default Format in shared mode 44.1kHz

OBS:
Audio 48kHz

OBS setup (test files):
https://obsproject.com/forum/threads/audio-crackling-at-ranom-interval-with-application-audio-capture.166472/post-613393

@charlesphil
Copy link

charlesphil commented Jun 1, 2023

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:
https://obsproject.com/logs/STVOABsm4rIFhiLd

VOD:
https://www.twitch.tv/videos/1823568935
(issue starts around 1:03:00)

5. Provide repro.etl to us privately since it may contain personal information.

If for some reason the other people in this thread haven't seen my repro.etl yet, please reach out to me at aelius on the OBS Discord server.

@nunowonder
Copy link

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):
https://www.twitch.tv/peeempeegee/clip/EncouragingAntediluvianGoldfishKappaWealth-qvsaQ0sxwwdMcNRb?filter=clips&range=7d&sort=time

And this is when someone from my viewers tells me, and i just select randomly another Scene Collection,, turn back, and voila:
https://www.twitch.tv/peeempeegee/clip/SmoothAttractiveWoodpeckerResidentSleeper-mFrOH5m33-qkkpMw?filter=clips&range=7d&sort=time

@SuslikV
Copy link
Contributor

SuslikV commented Jun 19, 2023

Few additional tests and results.
Recorded inside VirtualBox environment.

Results
(total size is about 2 GB of uncompressed data - lossless .avi recording + .etl + OBS config folder):
16.7 MB, MD5:D08027B0CE4CB0C6356BF9082C95EF03
16.8 MB, MD5:8B1189C2DBECE0B09B376F1F8685B681
17.8 MB, MD5:3154A30E960529072E489ACA86F3B49A
17.1 MB, MD5:8FA125EA1E633DA3A1E3F9A36B54791B
obs44100_win44100_file44100.zip
obs44100_win44100_file48000.zip
obs48000_win44100_file44100.zip
obs48000_win44100_file48000.zip

Description of results

  • "2023-06-19 12-13-58.avi" - OBS 44100Hz, OS 44100Hz, test file 44100Hz - no issues(?!)
  • "2023-06-19 12-31-33.avi" - OBS 44100Hz, OS 44100Hz, test file 48000Hz - moderate "crackling" starts from 11:21.56
  • "2023-06-19 12-31-33.avi" - OBS 48000Hz, OS 44100Hz, test file 44100Hz - moderate "crackling" starts from 00:53.127; from 06:57.094; the track2 (reference desktop audio) from 11:42.107 has disstortion (reason unknown, don't forget this is virtual machine), so this part in both tracks cannot be taken into account
  • "2023-06-19 13-05-18.avi" - OBS 48000Hz, OS 44100Hz, test file 48000Hz - moderate "crackling" starts from 01:05.094; from 05:57.391; from 10:25.287

In each case "crackling" lasts for about 30 seconds.

OS:
Audio - Default Format in shared mode 44100 Hz, 16-bit in all tests

Test files
(1 kHz on left channel, 0.6 amplitude, sinus; 250 Hz on right channel, 0.6 amplitude, sinus, sound played back from OBS .lua script, via "ffi" module by loading "Winmm", PlaySound function):
93.8 KB, MD5:FB5DCDC55A1FC759EEB74FD61BB54493
Issue #8064 (test files 44100-48000).zip

(all archives has .zip file extension instead of .7z just to be able to upload it here)

Steps for the Test files:

  1. Download the Issue #8064 (test files 44100-48000).zip archive, ~93.8 KB, MD5:FB5DCDC55A1FC759EEB74FD61BB54493 (see above). Change file extension form ".zip" to ".7z" and unpack its contents to the "C:\Temp" folder (make the one if it doesn't exist). If all done OK you will find: C:\Temp\Issue #8064 (test files 44100-48000)\testApplicationAudioCaptureBeta48000.lua and other files)
  2. Reduce volume of the PC and run OBS (test script includes sound files at 1000Hz and 250Hz that are awful for ears)
  3. Import Profile from folder named "test_Application_Audio_Capture_BETA_NNNNN_8064" (here NNNNN is 48000 or 44100)
  4. Import Scene Collection file named "test_Application_Audio_Capture_BETA_NNNNN_8064.json" (here NNNNN is 48000 or 44100)
  5. Switch to Profile named test Application Audio Capture (BETA) NNNNN #8064 (here NNNNN is 48000 or 44100 from p.3)
  6. Switch to Scene Collection named test Application Audio Capture (BETA) NNNNN #8064 (here NNNNN is 48000 or 44100 from p.4)
  7. Click Start Recording button (default destination for files is "C:\Temp", you may change it in OBS Settings > Output, but don't touch other settings!). Your PC will start to play looped sound of 1000Hz L + 250Hz R.
  8. Open main menu Tools > Scripts and select the "testApplicationAudioCaptureBetaNNNNN.lua" script (here NNNNN is 48000 or 44100 from p.4)
  9. In the properties of the script click the "Start disturb timer" button
  10. In 5 sec the Preview of OBS will be disabled and enabled again in 200 ms, again and again. Then in 5 sec process will repeat (infinity loop)
  11. Wait until crackling appear in the recording (about 2-120 minutes)
  12. Click Stop Recording button
  13. Exit OBS
  14. Add recorded .mp4 file to your favorite audio editor (or playback the file) to check if 1000Hz recorded signal has any anomalies (first stereo track is Application Audio capture (BETA), second is reference Desktop Audio)

Notes:

  • p.9-10 are optional steps.
  • you have to test 4 combinations of Profile + Scene Collection (44100-41000; 44100-48000; 48000-41000; 48000-48000), better if you have "Default Format" in shared mode for the OS set to 44100Hz ("bitness" doesn't matter).
  • OBS will make "lossless" recording, so final files may be huge.

My own thoughts
VirtualBox is not ideal place for the tests, OS is not up to date, but at least it shows difference between Desktop Audio track2 (wasapi_output_capture) and Application Audio Capture (BETA) track1 (wasapi_process_output_capture, top on the screenshots). Users who experience the issue usually says that they can't detect the sound corruption until they play back the recording or stream, so theirs desktop audio is normal, same as in my results. I decided to make lossless recording to exclude AAC encoder's compression and to be able to see what is really going on with the samples.

Screenshots of the results

obs_app_audio_capture_(beta)_vs_device_capture01

obs_app_audio_capture_(beta)_vs_device_capture02

It's all I can do right now.

@Fenrirthviti
Copy link
Member

Test results inside VMs are unusable, unfortunately. This needs to be replicated on a native Windows install, not a VM.

@nunowonder
Copy link

nunowonder commented Jun 19, 2023

@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.

@SuslikV
Copy link
Contributor

SuslikV commented Jun 20, 2023

@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.

@nunowonder
Copy link

@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...

@SuslikV
Copy link
Contributor

SuslikV commented Jun 20, 2023

@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)?

@nunowonder
Copy link

@SuslikV and @Fenrirthviti I have it here:
#8064 (comment)

@SuslikV
Copy link
Contributor

SuslikV commented Jun 20, 2023

@nunowonder
As far as I understand, due to special nature of the bug, developers want to gather more evidence to get some pattern. So, highly likely your result already taken into account. But seems it is not enough to resolve the issue. As far as I remember, on the forum there were thoughts that this can be bug from the Microsoft. Probably, you can help more by completing all these steps (in case you didn't do it yet ): #8064 (comment)

And again, the developers were aware of the issue when feature was introduced in OBS: 769a29b
comment to this commit says that the Application Audio Capture source:

...Marked as "(BETA)" until we figure out the crackling at 60 minutes.

the issue was reported by user in: #5218 (comment)
and it was confirmed by developer in: #5218 (comment)
So, it is not like your system unique (where you can do something strange what developers can't reproduce on theirs end), but more high quality data about issue origin may help here.

@Fenrirthviti
Copy link
Member

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).

@RytoEX
Copy link
Member

RytoEX commented Jun 21, 2023

@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)?

Results from a synthetic test on a normal (not in a virtual machine) Windows installation might be fine.

@godfather99x
Copy link

godfather99x commented Jul 9, 2023

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

@Gambloide
Copy link

Gambloide commented Jul 31, 2023

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 wpr -start obs.wprp from an admin prompt I opened OBS, started a recording, then tried to run wpr -stop repro.etl but got this error:

wpr -stop repro.etl

        Cannot change thread mode after it is set.

        Profile Id: RunningProfile

        Error code: 0x80010106

It also doesn't create any file in the folder.

Edit: moved question to top of comment.

@Gambloide
Copy link

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.

@Fenrirthviti
Copy link
Member

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.

@MattyFresh68
Copy link

MattyFresh68 commented Aug 7, 2023

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.
image

https://obsproject.com/logs/0cojBetIG2LLzsOx
In the video(if it actually uploads), I even cropped a capture of obs to see the audio mixer show it as well.
audio delay-disc.webm

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
image
https://obsproject.com/logs/h8Oag4XlwQM8TWGo

@L33TCHY
Copy link

L33TCHY commented Jan 29, 2024

@XevErylux

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?

@mochen626
Copy link

Good afternoon! So, I´m installing right now a Windows 11 update that was released yesterday. Even though I didn´t see anything related to audio in this update, i´ll give it a shot... who knows?

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...

@L33TCHY
Copy link

L33TCHY commented Jan 29, 2024

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.

@XevErylux
Copy link

@L33TCHY

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.

@L33TCHY
Copy link

L33TCHY commented Jan 30, 2024

@XevErylux

@L33TCHY

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.

@nunowonder
Copy link

Hello all,
I´m wondering if people that already have the buffer size equal or below 256 samples, if that will correct the problem instantly. But what I´ve seen, on windows update specs there is nothing related to audio, so I´m thinking that maybe microsoft didn´t solve the problem yet? What do you think? I´m still having the problem...

@MattyFresh68
Copy link

Hello all, I´m wondering if people that already have the buffer size equal or below 256 samples, if that will correct the problem instantly. But what I´ve seen, on windows update specs there is nothing related to audio, so I´m thinking that maybe microsoft didn´t solve the problem yet? What do you think? I´m still having the problem...

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

@nunowonder
Copy link

@L33TCHY

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.

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?
I tried to edit the script, but i´m not sure if I´m doing right.

(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!

@Fenrirthviti
Copy link
Member

Let's please keep comments on-topic to the issue itself, and support and workarounds can be discussed on the forums or Discord.

Thanks!

@nunowonder
Copy link

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”?

@Fenrirthviti
Copy link
Member

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!

@RytoEX
Copy link
Member

RytoEX commented Mar 27, 2024

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.

@sandr1x

This comment was marked as off-topic.

@ANIMka

This comment was marked as duplicate.

@cjmaxik
Copy link

cjmaxik commented Apr 17, 2024

@ANIMka we are waiting for the Windows 11 24H2 update now.

@bebuwu
Copy link

bebuwu commented Jul 16, 2024

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.

@derrod
Copy link
Member

derrod commented Jul 16, 2024

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.

@cjmaxik
Copy link

cjmaxik commented Oct 1, 2024

Heads-up: 24H2 update is being rolled out starting today.

@RuaWing
Copy link

RuaWing commented Oct 4, 2024

Did you guys solve the problem with 24H2?

@Fenrirthviti
Copy link
Member

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.

@Apig-Sharbo
Copy link

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.

@cjmaxik
Copy link

cjmaxik commented Oct 13, 2024

Seems to be fixed 👏

@AmuPii
Copy link

AmuPii commented Nov 24, 2024

so i just need to upgrade my w10 to 11 and it should be fixed?

@anywayaura
Copy link

is there a way to cherrypick windows patch for it without upgrading to 24h2, anyone, pls?

@SaraJLeen
Copy link

SaraJLeen commented Jan 4, 2025

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.

@merigold55
Copy link

Problem persisted on my freshly installed 24H2 (Build 26100.2605, Windows Feature Experience Pack 1000.26100.36.0) as well.

@prgmitchell
Copy link
Member

@SaraJLeen @merigold55 please provide logs and examples with timestamps.

@sunpenghao
Copy link

sunpenghao commented Jan 5, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed This bug report has been confirmed by project members Windows Affects Windows
Projects
None yet
Development

No branches or pull requests