A Cypherpunk’s Blog

Just a simple minimalist blog of a cypherpunk wannabe.

How to save an X Space locally into an MP3 file

Info

Below is a useful guide if you want to extract your X Spaces into an MP3 file which then you can share with others, load it into your favorite player or just upload it as a podcast.

πŸ”Ž Step 1: Find the hidden .m3u8 link

  • Open your Space URL in a web browser (e.g. Chrome).

  • Open Developer Tools β†’ go to the Network tab.

  • Refresh the page.

  • In the filter/search bar, type m3u8.

  • You should see a request like:

      https://prod-fastly-us-west-1.video.pscp.tv/.../playlist_xxxxx.m3u8?type=replay
    
  • Right-click β†’ Copy link address.

⚠️ These links are temporary. If it doesn’t work later, repeat the steps to get a fresh one.

🎧 Step 2: Download the Space audio as AAC

  • Open a terminal and run this command (replace with your full .m3u8 link inside quotes):

      ffmpeg -i "https://prod-fastly-us-west-1.video.pscp.tv/.../playlist_xxxxx.m3u8?type=replay" -c copy space.aac
    
  • This will fetch all the .aac segments and stitch them into one file called space.aac.

🎼 Step 3: Convert the AAC file into MP3

  • Once the download finishes, convert it to MP3:

      ffmpeg -i space.aac -c:a libmp3lame -q:a 2 space.mp3
    
  • -q:a 2 gives you good quality with a reasonable file size.

  • Your Space is now saved as space.mp3.