well it's a game ripping guide. you can rip thps games by completely deleting STR/XA files and it'll work.
both video and music are stored in the same file. if you replace it with blank str, you remove both video and music. and if you don't rebuild it correctly, you wipe every music track as well, as game can't read music from str files anymore.
i was able to rebuild thps1 iso with music following these steps:
1. unpack iso contents using jpsxdec -
https://github.com/m35/jpsxdec2. put it in some folder
3. create xml project for this folder using mkisoxml -
https://github.com/Lameguy64/mkpsxiso4. open that xml
5. edit all .str entries from type="data" to type="str"
6. copy convert2336 (link below) to folder and run once
7. build iso using edited xml using mkpsxiso -
https://github.com/Lameguy64/mkpsxisoexplanation:
most editors extract str/xa as 2048 bytes per sector, which is incorrect for this media.
jpsxdec extracts str/xa files as raw 2352 bytes per sector.
but mkpsxiso expects 2336 bytes per sector, means you can't rebuild it correctly.
2352-2336=16, which is the size of xa sector header.
convert2336 is the tool i wrote that looks for str and xa files in subfolder, loops through 2352 sectors and looks for sync pattern. if pattern found throughout the whole file, it removes the headers of each sector, converting a 2352 file to a 2336. i don't know how correct is that in terms of the format or checksums, but it works. maybe you can find other tool to do that. also note that mkpsxiso may produce incorrect checksums, and it's required to use some checksum recalculation tool if you plan to use it on real hardware.
convert2336 -
https://yadi.sk/d/qbesaIVr1-DKJghow you're gonna edit the files is up to you.