How I Hijacked the PS5's RTMP Stream to Share Games on Discord
Hijacking the PS5's RTMP Stream
Sony locks the PS5's streaming to YouTube and Twitch, leaving Discord screen sharing out in the cold. Rather than buy a capture card, I redirected the console's RTMP traffic to my Mac using dnsmasq and nginx-rtmp. By spoofing Twitch's ingest domains via DNS, the PS5 streams 1080p60 H.264 directly to my machine, where mpv plays it for Discord with sub-second latency.
The PS5 doesn't hardcode Twitch's IP, it looks it up via DNS every time. If we control what DNS returns, we control where the stream goes.