obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

Audio Crackle when browser source is set to "Control audio via OBS" / New: Same for Media Sources with instant sounds

Open TheRealDadbeard opened this issue 3 years ago • 13 comments

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

27.2.4

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/yGAxWFqdh0G7zqMf

OBS Studio Crash Log URL

No response

Expected Behavior

No audio crackle

Current Behavior

Audio in browser source that have the option "Control audio via OBS" enabled have distorted/crackling sound when monitoring is enabled. Monitored sound will crackle but not the audio in the output.

Steps to Reproduce

  1. Add a browser source where you can play audio (SoundAlerts for example)
  2. Enable "Control audio via OBS" and "Output and Monitoring"
  3. Play a sound and hear it crackle (shorter ones seem to trigger it more)

Anything else we should know?

I have this issue everytime, doesn't matter if only OBS is running or not. Maybe the new CEF version behaves differently on W11.

TheRealDadbeard avatar Jun 11 '22 17:06 TheRealDadbeard

I'm on win11 and do not get audio distortion/crackle from browser sources. This has been reported, but I think it was specific to things by triggerfyre iirc

MattyFresh68 avatar Jun 11 '22 17:06 MattyFresh68

Sounds most likely like it could be mismatched sample rate configuration in Windows, OBS or other parts of the audio stack. This is the usual symptom of that.

skeletonbow avatar Jun 11 '22 18:06 skeletonbow

I'm on win11 and do not get audio distortion/crackle from browser sources. This has been reported, but I think it was specific to things by triggerfyre iirc

With "Control audio via OBS" and "Output and Monitoring"?

Sounds most likely like it could be mismatched sample rate configuration in Windows, OBS or other parts of the audio stack. This is the usual symptom of that.

Nope. Everything is on 48khz

TheRealDadbeard avatar Jun 11 '22 18:06 TheRealDadbeard

I have reached out in the support channels to troubleshoot when available.

prgmitchell avatar Jun 11 '22 18:06 prgmitchell

Could you retry the repro steps and upload the log with a clean install without third party plugins ? You can use a portable install of obs to that purpose (download a zip, unzip wherever convenient and launch in portable mode).

pkviet avatar Jun 11 '22 19:06 pkviet

Could you retry the repro steps and upload the log with a clean install without third party plugins ? You can use a portable install of obs to that purpose (download a zip, unzip wherever convenient and launch in portable mode).

Yes I can do that later

TheRealDadbeard avatar Jun 11 '22 19:06 TheRealDadbeard

Okay just did with a clean obs and the same happens.

TheRealDadbeard avatar Jun 12 '22 01:06 TheRealDadbeard

This is an issue that has been tracked in the past and while it's improved, it's never been fully resolved.

There was a fairly long conversation in one of the beta channels in December where I was showing off these issues, but that channel has been archived/deleted from the Discord. If it's in an archive state a Discord mod should be able to find extensive test-cases alongside audio clips that will cause consistent crackling. If it's been deleted, then it's just another victim of unarchived Discord channels destroying knowledge that could come in handy in the future and I can go digging for test cases again.

This commit https://github.com/obsproject/obs-studio/pull/5648 helped substantially as it removed the crackling from the output, but monitoring will still crackle on occasion.

I'm still facing the same issues. There's large inconsistencies in how much it crackles and when it crackles.

NarryG avatar Jun 12 '22 02:06 NarryG

This is an issue that has been tracked in the past and while it's improved, it's never been fully resolved.

There was a fairly long conversation in one of the beta channels in December where I was showing off these issues, but that channel has been archived/deleted from the Discord. If it's in an archive state a Discord mod should be able to find extensive test-cases alongside audio clips that will cause consistent crackling. If it's been deleted, then it's just another victim of unarchived Discord channels destroying knowledge that could come in handy in the future and I can go digging for test cases again.

This commit #5648 helped substantially as it removed the crackling from the output, but monitoring will still crackle on occasion.

I'm still facing the same issues. There's large inconsistencies in how much it crackles and when it crackles.

Yeah I have had this issue for years, never to be completely fixed for me but it's very consistent for me with fast sounds. Thats why it is so noticeable for me when someone triggers a soundalert.

TheRealDadbeard avatar Jun 12 '22 20:06 TheRealDadbeard

This is an issue that has been tracked in the past and while it's improved, it's never been fully resolved. There was a fairly long conversation in one of the beta channels in December where I was showing off these issues, but that channel has been archived/deleted from the Discord. If it's in an archive state a Discord mod should be able to find extensive test-cases alongside audio clips that will cause consistent crackling. If it's been deleted, then it's just another victim of unarchived Discord channels destroying knowledge that could come in handy in the future and I can go digging for test cases again. This commit #5648 helped substantially as it removed the crackling from the output, but monitoring will still crackle on occasion. I'm still facing the same issues. There's large inconsistencies in how much it crackles and when it crackles.

Yeah I have had this issue for years, never to be completely fixed for me but it's very consistent for me with fast sounds. Thats why it is so noticeable for me when someone triggers a soundalert.

The browser source also doesn't pass the the first (I believe) 3 packets to OBS. This was an issue discovered and once again is buried in the archived beta channel on Discord as it was never turned into an issue. It appeared to be Chromium. Nobody could comment if it was related to that for sure, but we were unable to build a reliable test case beyond short audio clips for alerts were the worst.

If any of the devs can comment if that channel still exists and is archived (was the beta channel around December of 2021) , I can turn the information we debugged then into proper issues if it can be made available.

NarryG avatar Jun 12 '22 20:06 NarryG

On Sun, Jun 12, 2022, 22:13 Dan (Narry) @.***> wrote:

This is an issue that has been tracked in the past and while it's improved, it's never been fully resolved. There was a fairly long conversation in one of the beta channels in December where I was showing off these issues, but that channel has been archived/deleted from the Discord. If it's in an archive state a Discord mod should be able to find extensive test-cases alongside audio clips that will cause consistent crackling. If it's been deleted, then it's just another victim of unarchived Discord channels destroying knowledge that could come in handy in the future and I can go digging for test cases again. This commit #5648 https://github.com/obsproject/obs-studio/pull/5648 helped substantially as it removed the crackling from the output, but monitoring will still crackle on occasion. I'm still facing the same issues. There's large inconsistencies in how much it crackles and when it crackles.

Yeah I have had this issue for years, never to be completely fixed for me but it's very consistent for me with fast sounds. Thats why it is so noticeable for me when someone triggers a soundalert.

The browser source also doesn't pass the the first (I believe) 3 packets to OBS. This was an issue discovered and once again is buried in the archived beta channel on Discord as it was never turned into an issue. It appeared to be Chromium. Nobody could comment if it was related to that for sure, but we were unable to build a reliable test case beyond short audio clips for alerts were the worst.

I confirmed the issue and we're well aware of it. Some recent chromium changes with audio will perhaps help.

If any of the devs can comment if that channel still exists and is archived, I can turn the information we debugged then into proper issues if it can be made available.

The beta channel still exists. Ping Fenrir , Rytoex or MattWizardCM on discord about it to see what they think.

Reply to this email directly, view it on GitHub https://github.com/obsproject/obs-studio/issues/6612#issuecomment-1153282382, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACG2OT4BGKTQTOMOEZFL55LVOZAHBANCNFSM5YQNDQ2A . You are receiving this because you were assigned.Message ID: @.***>

pkviet avatar Jun 12 '22 20:06 pkviet

Would be great to see this finally fixed

TheRealDadbeard avatar Jul 04 '22 20:07 TheRealDadbeard

Some new information from me:

I moved some of my audio alerts over to simple media sources that get triggered by events. I noticed the same crackle appers on them too. Any source that seem to play a sound immediately it becomes active will crackle. There is no difference in what plugins are installed or the newest beta.

It crackles every single time but as always only for monitoring. Output is clean like 99%, very seldom a crackle there.

TheRealDadbeard avatar Aug 04 '22 01:08 TheRealDadbeard

Happens to me as well. Trying to pass through Text-to-speech through the Control Audio via OBS and it always initially crackles. Goes for any sound to be honest

Nikoheartttv avatar Aug 23 '22 11:08 Nikoheartttv

Just wanted to bump this, this is still happening in OBS 28.0.2

Nikoheartttv avatar Sep 26 '22 22:09 Nikoheartttv

I have had this issue for years now and I'm still getting audio popping/crackling whenever a sound initially plays from a browser source, as of the most recent version. Hope to see a fix soon!

maelstromALPHA avatar Sep 30 '22 23:09 maelstromALPHA

Same thing here with 28.0.3, have been pulling my hair out trying to determine the cause but this is exactly the scenario where it's occurring. Browser sources that are set to "Control audio via OBS" since I don't have the option to adjust levels at the source itself and need to reduce the gain.

Running 21H2 (22000.1098) Windows 11 build as of this post as well.

prenetic avatar Oct 14 '22 01:10 prenetic

Having this exact same issue with OBS 28.0.3… Any browser source with Control Audio via OBS is creating choppy audio… with that unchecked no issues with any of the browser sources…

gnkidwell avatar Nov 18 '22 11:11 gnkidwell