Skip to content

A tool to extract music from installed video games

License

Notifications You must be signed in to change notification settings

sparr/vgm-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VGM Extractor

A tool for extracting music files from installed video games.

While many game developers publish soundtrack albums with or separately from their games, many do not. This tool is meant to fill that gap, by providing the data and tooling necessary to extract the music from a game that is installed.

VGM Extractor contains a database of games describing where and how their music is stored. For games with bare music files, it copies them. For other games, it orchestrates other format-specific tools

Usage

vgm-extractor.py [-h] [-v[v...]] --outputpath OUTPUTPATH
                 [--steamlibrarypath STEAMLIBRARYPATH]
                 [--albumsuffix ALBUMSUFFIX] [--format FORMAT]
                 [--overwrite] [--rescan] [--minduration MINDURATION]
                 [game [game ...]]

Example:

vgm-extractor.py --outputpath ~/Music --steamlibrarypath ~/Games --format flac

Prerequisites

Python

This script requires some python modules described in the Pipfile, which you can install via pipenv install or pip install -r $(pipenv requirements)

Third Party Tools

Specific tools must be on the path to extract certain types of archives:

  • unxwb for XACT Wave Bank .xwb files
  • quickbms for a variety of formats
  • icoextract to extract icons from exe files
  • ffmpeg or libav for converting wav files to other audio formats

Contributing

At present we can only extract from about 110 games, installed via Steam. Adding support for additional games ranges from easy (no programming at all, just list the file locaitons) to difficult depending on the game. Adding support for other game publishing platforms, operating systems, etc is a more involved undertaking. PRs are welcome!

Game Data

gamedata/README.md explains the contents of the game data files.

About

A tool to extract music from installed video games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages