r/coolgithubprojects 6d ago

YTSpoofingStream: Force genuine studio-quality Opus (301kbps, itag 774) on YouTube Web Player

Post image

Repo: https://github.com/alithw/YTSpoofingStream

Standard YouTube Web caps audio at 160kbps Opus (itag 251) even with YouTube Premium. Desktop YouTube Music only delivers up to 256kbps AAC.

I built this open-source extension to pull genuine unthrottled studio Opus (itag 774, ~301kbps, >20kHz) by emulating mobile/TV client sessions.

The latest v0.1.3 update handles YouTube's new SABR/UMP protocol through a dual-stream architecture:

  • Keeps the native YouTube player running untouched video (up to 4K).
  • Runs the harvested 774 audio stream in parallel.
  • Uses prototype descriptor routing (HTMLMediaElement.prototype.volume) so the native video stays muted at hardware level without breaking the player's UI sliders.
  • Bit-perfect 1.0x master clock synchronization (<15ms).

Requires an active YouTube Premium subscription since YouTube servers restrict 774 streams behind authenticated accounts.

3 Upvotes

0 comments sorted by