Previous: mkcollection, Up: Collections and input files


4.1.5 Plain filenames in collections

Many datasets contain filenames with spaces or awkward characters (extended characters, quote signs, etc). Ideally, all tools (both within marsyas and outside of marsyas) should handle all valid filenames without any problems, but this does not always occur.

To simplify handling of such datasets, we added a translate-filenames.py which replaces all filenames (and directories) with plain numbered filenames in a numbers/ directory.

To convert to plain filenames:

     marsyas/scripts/translate-filenames.py -n -d ~/mydata/ismir2004

To restore original filenames:

     marsyas/scripts/translate-filenames.py -r -d ~/mydata/ismir2004

Options for more advanced handling can be seen by calling the script with --help.