steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

[GamepadUI] - Steam intro movies sometimes play with double audio

Open matte-schwartz opened this issue 1 year ago • 18 comments

Your system information

  • Steam client version (build number or date): 1736213535
  • Distribution (e.g. Ubuntu): CachyOS (Arch Linux)
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes
  • Steam Logs: N/A
  • GPU: AMD Z1 Extreme (Phoenix APU)

Please describe your issue in as much detail as possible:

When viewing Steam custom intro movies, either during Steam client launch or their previews in the Customization section, the movies will sometimes play with what sounds like double audio. This seems to happen only 50% of the time but it leads to heavy audio distortion when it does happen.

Attaching videos below of a "normal" sounding intro vs a "bad" sounding intro, where volume was kept the same between both clips:

NORMAL

https://github.com/user-attachments/assets/2cab35fb-49bc-48dd-b02f-d4487fcf3bd7

DOUBLE

https://github.com/user-attachments/assets/b3826674-35d5-4f3b-880e-aae60d886f9f

This was not an issue I experienced before today's Steam Deck beta client update, 1736213535

Steps for reproducing this issue:

  1. Choose any intro movie from the Customization menu and preview it
  2. If it sounds normal, try a few more times

matte-schwartz avatar Jan 07 '25 10:01 matte-schwartz

this only happens if you play the video preview from the customization page or if the custom intro itself plays during steam's launch. If you go to Settings -> Customization -> Visit the Points Shop and preview the intros there, no double audio ever plays.

matte-schwartz avatar Mar 08 '25 20:03 matte-schwartz

Can confirm this is happening both on Steam Deck & Steam for Windows. Seems to be client related than SteamOS/Linux related.

AerosunST avatar Mar 23 '25 09:03 AerosunST

there was a mention of "Fixed certain startup movies not playing correctly" in the latest Deck beta client release notes, but it does not seem to apply to this specific issue.

matte-schwartz avatar Jun 29 '25 20:06 matte-schwartz

Still experiencing this, I think, w/ latest SteamOS. That, or audio sounds way off on startup for some other reason...

I'll update if I find more helpful info., or will create a new issue if it's not the same as the above.

anthonybaldwin avatar Dec 22 '25 15:12 anthonybaldwin

Have this issue right now. Either video lags and plays with delay after audio, or audio is doubled.

ENDrain avatar Jan 14 '26 22:01 ENDrain

I'm also getting this on steam deck startup on stable and beta

redoxeon avatar Apr 23 '26 03:04 redoxeon

I have the same issue on my Steam Deck. Just installed a bunch of custom boot videos, and because I was excited to see them I went into 'Customisation' and set it to ''Use as Wake Movie'. Unfortunately it usually plays doubled audio when I wake up my Deck, and it sounds terrible so I guess I'll turn that setting back off for now.

MrHumbuck avatar Apr 28 '26 04:04 MrHumbuck

This is happening to me when I open Big Picture Mode on Windows. It's especially noticeable when using the OG Big Picture startup movie

IncPlusPlus avatar May 27 '26 00:05 IncPlusPlus

Oh I thought the audio sounded wonky sometimes. So this is the reason.

Managor avatar May 27 '26 02:05 Managor

Having the same issue with Big Picture Mode on Windows.

theBeaz avatar Jun 06 '26 19:06 theBeaz

Still happens on windows

Sokis2012 avatar Jul 15 '26 17:07 Sokis2012

This happens to me frequently on windows, on all of my startup videos.

braydencurtis avatar Jul 18 '26 17:07 braydencurtis

It’s been happening with the keyboard sound in console mode as well, but not in desktop mode. It seems to be a Gamescope/Big Picture issue rather than a Linux one.

MaxPresi avatar Aug 07 '26 13:08 MaxPresi

In case it's a Big Picture issue, is anyone able to reproduce this with Big Picture on desktop?

Managor avatar Aug 07 '26 13:08 Managor

Chiming in to report this occurring on both deck and PC big picture mode in both previews and on big picture/deck boot. Sometimes it will be worse or better than other times but there's almost always a hint of reverb/echo happening.

dheuser1994 avatar Sep 14 '26 20:09 dheuser1994

In case it's a Big Picture issue, is anyone able to reproduce this with Big Picture on desktop?

Yes. It happens on Windows as well. It's more noticeable with a custom boot animation. Opening big picture manually and through a controller yields the same results

Video Recording:

https://github.com/user-attachments/assets/dac9cbf9-2df7-4678-a299-ebd172eb6278

To be clear, rorr.webm isn't the issue, and I have attached it so you can confirm

https://github.com/user-attachments/assets/ed0d01b6-4eaa-430d-b834-84d263914da1

Steam Details: Client version: 1788652215 Client Build Date: Thu, Sep 3, 2026 5:33 AM UTC -08:00 Web Build Date: Sun, Sep 6, 2026 2:13 AM UTC -08:00

GalaxinTM avatar Sep 25 '26 11:09 GalaxinTM

I think I found the cause in the client UI code. I'm seeing this on both a Steam Machine (SteamOS) and Windows Big Picture Mode, so I went digging through steamui/sp.js (Windows public beta client 1790904859).

When a startup movie plays fullscreen, the startup-movie component renders two <video> elements from the same file, and neither one is muted. De-minified, it looks like this:

{movie && <video className={bFullscreenVideo && FullscreenVideo} src={movie} autoPlay onPlay=… onEnded=… onError=…/>}
{bFullscreenVideo && movie && <video className={GutterBlur} src={movie} autoPlay onPlay=… onEnded=… onError=…/>}

The second one is the blurred background that fills the letterbox bars (.GutterBlur { position:absolute; width:100%; height:100%; object-fit:fill; filter:blur(16px) }). It's only meant as a visual, but it plays its own audio track. The two elements start independently, a few ms apart, so you get two copies of the audio slightly out of sync. That's the echo/flanging, and it's intermittent because the offset depends on load and decode timing.

bFullscreenVideo comes from a function that returns false only for deck_startup.webm, oled_startup.webm, steam_os_family_startup.webm and steamframe_startup_450x450.webm (the square ones), and true for everything else. That covers bigpicture_startup.webm, steam_os_startup.webm, startup_machine.webm and every custom uioverrides or Points Shop movie. This matches what people have reported in this thread:

  • It happens on Windows and SteamOS alike: same UI code.
  • It's especially noticeable with the stock Big Picture movie and with custom movies, both of which take the fullscreen path.
  • Deck owners using the default Deck/OLED movie are mostly unaffected, because those take the non-fullscreen path.
  • It happens in the Customization preview and the wake movie (both use this component) but not in the Points Shop preview (a different player).

Suggested fix: add muted to the GutterBlur <video>. In the minified bundle that's a single change:

className:r.GutterBlur,src:W,autoPlay:!0,
→ className:r.GutterBlur,src:W,autoPlay:!0,muted:!0,

(The minified identifiers will differ between builds.) I've applied this locally as a workaround. It gets overwritten on every client update, so a proper fix needs to come from Valve. The alternative workaround is stripping the audio track from the movie (ffmpeg -i in.webm -c:v copy -an out.webm).

gubsy420 avatar Oct 04 '26 21:10 gubsy420

Follow-up: muting the GutterBlur <video> fixes it. I tested it on both Windows Big Picture Mode (public beta 1790904859) and a Steam Machine running SteamOS. After patching, the echo/doubled audio is gone in the Customization preview and when the movie plays at Steam startup. That's with a custom uioverrides movie that reliably had the echo before.

For Valve: the fix is to add muted to the GutterBlur <video> in the startup-movie component, which is the second <video> rendered when bFullscreenVideo is true. It's a purely visual background layer and should never produce sound.

For anyone who wants a local workaround until then: Steam checks installed file sizes at startup ("Verifying file sizes only" in logs/bootstrap_log.txt) and reinstalls steamui/sp.js if its size has changed. Simply inserting muted:!0, therefore gets reverted on the next launch. A patch that keeps the size the same does survive. The GutterBlur video carries a copy of the main video's onPlay handler (controller haptic and "movie playing" state), and the main video already fires that handler, so swapping that handler for muted:!0, keeps the byte count the same:

className:r.GutterBlur,src:W,autoPlay:!0,onPlay:m,onEnded:g,onError:O
→ className:r.GutterBlur,src:W,autoPlay:!0,muted:!0,onEnded:g,onError:O

(The minified identifiers vary by build. sp.js is at ~/.local/share/Steam/steamui/sp.js on SteamOS/Linux and <Steam>\steamui\sp.js on Windows.) Every client update replaces the file, so the patch has to be re-applied after each one. Back up the original first.

gubsy420 avatar Oct 04 '26 22:10 gubsy420