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

Intermittent audio stuttering when using the "Control audio via OBS" feature #237

Closed
NarryG opened this issue Aug 24, 2020 · 16 comments
Closed

Comments

@NarryG
Copy link

NarryG commented Aug 24, 2020

When using the "control audio via obs" feature of the plugin, audio will occasionally stutter. The stutter isn't completely reliable, but happens enough to be an issue that can damage the user experience when using the feature.
If this feature is disabled, the audio plays back reliably with no stuttering.

Platform

Operating system and version: Windows 10 2004
OBS Studio version: 25.0.8

Expected Behavior

Audio played back through the browser source should play consistently without pops/stutters

Current Behavior

Audio played back through the browser source will sometimes pop/stutter
https://obsproject.com/logs/GiwJKg9EK12-tPvg

Steps to Reproduce

  1. Create an empty scene
  2. Add a browser source
  3. Add the default Streamlabs notification as the URL
  4. Click "Control audio via OBS"
  5. Click the notification preview button on the Streamlabs website until stutter occurs.

Video demonstrations:

Additional information

Forum post with similar issue:
https://obsproject.com/forum/threads/weird-glitchy-audio-from-browser-source-when-using-control-audio-via-obs.116648/

This was brought up on Discord and it was stated it'd most likely be fixed when CEF is updated.

pkv Today at 3:51 PM
There will be a new audio API used for browser source. Might work better. I'm not sure there's currently a straightforward solution to your issue. No eta though on when we'll use this new cef api because we're waiting for some other features to be merged in cef
pkv Today at 4:03 PM
I'll keep that in mind though to check with new cef
Post an issue documenting repro steps.

@desertpogona
Copy link

I have this problem and really hope this gets fixed at some point. It's the only thing preventing me from using the browser source's audio playback

@marcmagus
Copy link

I am also suffering from this issue, on Linux, and unsurprisingly it persists in v26.0.2. Control audio would be extremely helpful as different browser sources to not distinguish themselves in PulseAudio so levels cannot be set and retained properly.

@b0ses
Copy link

b0ses commented Mar 14, 2021

Been dealing with this issue since the BrowserSource enabled "Control Audio via OBS". Workaround is having the link open in another browser and managing the browser's audio though I'd much prefer working with the BrowserSource and OBS.

@JillKatze
Copy link

This bug has been driving me up a wall for ages so I did some digging and I believe it's caused by the problem described in this BitBucket issue.

It appears that the exact change pointed out in that BitBucket issue was recently (~2 months ago) integrated into Chromium as a fix for this Chromium bug (1130375). Once OBS Browser updates to a CEF version with that fix, I'd bet this issue will clear up.

Updating CEF on Windows is on the near-term OBS roadmap and I'd love it if a version with that fix got pulled in.

@RytoEX
Copy link
Member

RytoEX commented Jan 12, 2022

We have completed our upgrade to CEF 4638 (Chromium 95) which looks to me like it includes the upstream Chromium fixes linked to above. We plan to ship this upgrade with OBS Studio 27.2, which is currently in beta. The beta releases can be found on the obs-studio GitHub releases page. Could those affected by this issue test and report whether or not this issue is resolved? Thanks!

@b0ses
Copy link

b0ses commented Jan 14, 2022

Tested on a stream last night and it worked like a charm 👍 . I spammed a bunch of sounds and didn't notice any clipping/lagging/buzzing. Thanks for resolving it!

@RytoEX
Copy link
Member

RytoEX commented Jan 18, 2022

Original reporter confirmed on Discord that this Issue has been resolved.

@RytoEX RytoEX closed this as completed Jan 18, 2022
@NarryG
Copy link
Author

NarryG commented Jan 18, 2022

I can confirm that after testing between both me and a friend who struggled with this issue, neither of us experience it after the CEF upgrade, as stated by Ryto

@Svenja001
Copy link

Svenja001 commented Aug 6, 2022

Hi @RytoEX, I still have this Issue on OBS 27.2 with both my Browsersources on my new PC running Windows 11. First I thought I broke something by importing the Settings from my old Laptop, but new Configuration didn't change anything so I started to search more intensively and finally found this Issue.

@gnkidwell
Copy link

This issue is occurring in OBS 28 as well… something must have recently changed…

@pkviet
Copy link
Member

pkviet commented Nov 18, 2022

This issue is occurring in OBS 28 as well… something must have recently changed…

@gnkidwell please open a new issue with logs which will allow us to see your specific setup.

@p10tyr
Copy link

p10tyr commented Dec 20, 2022

Hello is there a new issue opened for this? I have been searching and it seems like a reoccurring problem
ref
https://obsproject.com/forum/threads/weird-glitchy-audio-from-browser-source-when-using-control-audio-via-obs.116648/#post-594506

@pkviet
Copy link
Member

pkviet commented Dec 20, 2022

Hello is there a new issue opened for this? I have been searching and it seems like a reoccurring problem
ref
https://obsproject.com/forum/threads/weird-glitchy-audio-from-browser-source-when-using-control-audio-via-obs.116648/#post-594506

Open your own issue with log.
The original issue was solved for the OP by a subsequent upgrade of cef. Since then we have again updated cef to version 5060.
It'd be helpful to know if your issue is in the recording or only heard on monitoring (which would point the issue to the monitoring device drivers).

@phillypro
Copy link

Hello is there a new issue opened for this? I have been searching and it seems like a reoccurring problem
ref
https://obsproject.com/forum/threads/weird-glitchy-audio-from-browser-source-when-using-control-audio-via-obs.116648/#post-594506

Open your own issue with log. The original issue was solved for the OP by a subsequent upgrade of cef. Since then we have again updated cef to version 5060. It'd be helpful to know if your issue is in the recording or only heard on monitoring (which would point the issue to the monitoring device drivers).

for me and most likely for others the issue only occurs when the obs window is not in focus
when you minimize or click off to another window from obs the stuttering begins on browser audio sources
if you are focused on obs all is fine ......this is on a pc with 128bg ddr5 geforce 4090 i9 13900k

@Svenja001
Copy link

Svenja001 commented Apr 22, 2023

I opened a new Issue, I was just able to reproduce it today. #405

@p10tyr
Copy link

p10tyr commented Apr 23, 2023

When we moved to another PC the problem went away. Not sure why but on laptop it did this randomly. And on newer PC always find

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests