Below are the instructions for using the THPConv tool to change the THP audio data in THP Movie Data.
THPConv.exe -c <inputfile> -s<wavefile> <wavefile>... -d <outputfile>[-<option> <argument>]
Description of Options
option argument Description -c <inputfile> Specifies the input file (THP file). This argument must always be specified. -s <wavefile>
<wavefile>
......Specifies the replacing sound file (WAV file).
When specifying more than one file for the argument, data is allocated to audio tracks in the order it is specified. If a THP file format that does not support multitracks is input, the output file will be in a format that supports multitracks.-d <outputfile> Specifies the output file (THP file). If this argument is not given, the THPConv tool will overwrite the input file.
-r <framerate> Specifies the movie's frame rate. Frame rates from 1.0 to 59.94 can be specified. If nothing is specified, the default value (29.97) is used. -o - THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the THPConv tool will create an offset table in the THP data. If this argument is not specified, the THP movie data, no offset table will be created in the THP movie data. -non - Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify -odd. When interlace starts from an even numbered field, specify -even. If this argument is not specified, the THP video data format will be automatically set to non-interlaced (-non). -odd -even -trk <track No.>
<wavefile>If you only want to replace a single audio track dataset, use this option instead of -s. The first argument is the audio track number to replace (0-), the second argument is the sound file (WAV file) that will make the replacement. Using this option invalidates the -r, -o, -non, -odd, and -even options. This option can only be used with the THP file formats that support multitracks. -v - Turns on Verbose mode. -h - Displays the option list.
When the THPConv tool replaces audio data in existing THP movie data, the old THP audio data is deleted. Once the THP audio data is deleted, it cannot be restored. If no output file is specified when the audio data is replaced, the THPConv tool will overwrite the THP movie data. When replacing the audio data, be sure to create a backup file or to specify an output file; this will prevent accidental deletion of your data.
If the replacement wav file has a longer playback time than the THP movie data, the section of the replacement wav file that is longer than the THP movie data will not be converted. If the playback time of the THP movie data is longer than the wave file, the remaining section will be silent.
If the THP movie data specified as the input data does not contain audio data, this operation will add THP audio data to the specified file.
If you want the THP movie data to contain more than one audio track dataset, make sure that the channel counts and playback frequencies for all audio track datasets are the same.
Unlike the Nintendo GameCube, audio data on the Wii is output at a set playback frequency (48,000 Hz or 32,000 Hz).
THPConv.exe, File formats compatible with THPConv
2006/12/21 Deleted the -on option. Corrected a note related to the playback frequency such that it is intended for Wii.
2006/03/01 Initial version.
CONFIDENTIAL