Downloading a browser video stream into an MP4

Originally published at https://shivankaul.com/blog/hls-to-mp4 . I recently wanted to download a wedding video from a media-hosting platform that had no download button. If my browser could play it, the video data was clearly being streamed somewhere; how hard could it be to capture and save it as an MP4? Turns out: not very hard. With chrome://media-internals , DevTools and an (AI-generated)…