Compiling a Full Catalog from TSV Files

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

New catalogs are created from a set of tab-separated-value (TSV) files. The files must be in Unicode format. Place the required TSV files listed below into a folder (the input path argument to catcomp.exe), and call catcomp.exe using the following syntax:

catcomp <input path> [version number] [locale ID] [debug]

If a version number is not provided, the version number will be set to 0. If no locale ID is provided, the system locale is used. If only one numeric optional argument is provided, it is assumed to be the version number. If debug is specified, the output to the screen will provide more detailed diagnostic information.

For example, the following will compile a catalog from the files in C:\CatalogData\210 and give the catalog a version number of 210:

catcomp C:\CatalogData\210 210

To display more detailed error messages, the optional debug argument can be added, as follows:

catcomp C:\CatalogData\210 210 debug

Required TSV Files

Each of the following files must be present, but an empty file can be used if there is no data for a file. For instance, if your catalog contains no radio channels, radio.csv can be empty. The files must be named exactly as listed.

track.csv

album.csv

artist.csv

genre.csv

subgenre.csv

list.csv

listitem.csv

radio.csv

Note

Although the file names must have .csv extensions, the files are not in Comma Separated Values (CSV) format. The files must be in Tab Separated Values (TSV) format.

 

If compilation is successful, catcomp.exe creates three output files.

File name Description
catalog.wmdb Uncompressed compiled catalog.
catalog.wmdb.lz Catalog in compressed format. Your plug-in can give the location of this file to Windows Media Player in IWMPContentPartner::GetCatalogURL.
compiled_unique_words.txt An intermediate output file. Not used by Windows Media Player.