Extracting Music From Portal 2
This post is a part of my blog paleontology series. I dug up and restored this post on 2025-08-11. I've updated some links to the wayback machine when needed.
Yes I talk in other posts about buying music, but this more about whether it was possible than the money.
I'm a pretty big fan of Portal and Portal 2. As such I was sucked into the whole pre-release ARG. I figure that if I spent all that money on the Potato sack, I might as well get some free music along with the game. Luckily there is an immense amount of source files in the game. Most of them are ambient noise and sound effects but you can get the co-op ending song Robots FTW, the single player ending song Want You Gone by Jonathan Coulton, and the turret opera (Cara bella, cara mia bella!) by Ellen Mclain.
On a OS X use Source Fangler, open
~/Library/Application\ Support/Steam/SteamApps/common/portal\ 2/portal2/pak01_dir.vpk
On a Windows use GCFScrape, open
C:\Program Files (x86)\Steam\steamapps\common\portal 2\portal2\pak01_dir.vpk
For Robots FTW go to sound -> music -> portal2_robots_ftw.wav
For Want You Gone go to sound -> music -> portal2_robots_ftw.wav
They're both lossless and you can play them as is or convert it to flac. Getting the turret opera is a bit more involved. Its in a bink video file.
C:\Program Files (x86)\Steam\steamapps\common\portal 2\portal2\media\sp_30_a4_finale5.bik
~/Library/Application\ Support/Steam/SteamApps/common/portal\ 2/portal2/media/sp_30_a4_finale5.bik
On Windows and OS X respectively. On Windows you can convert it with RAD Video Tools. You can play them on OS X. Thanks to the Steam Forums for how to solve this one.
Bonus
Valve has released part 1 and part 2 (part 3 is coming) of the Official Soundtrack for free! The songs above aren't included and the Valve soundtracks are mp3s, so if you're looking for higher quality you're going to have to dig through the source files. It probably won't be worth it though, because many of the sound track songs are split into multiple source files.
~Matt
Member discussion