Following are instructions on using the THPConv tool for replacing THP audio data inside THP movie data.
THPConv.exe -c <inputfile> -s <wavefile> <wavefile>... -d <outputfile> [-<option> <argument>]
Option Descriptions
Option Argument Description -c<inputfile> Specifies the input file (THP file). This argument must always be specified. -s<wavefile>
<wavefile>
......Specifies the sound file to replace (a WAV file).
When more than one file is specified for the argument, data is allocated to each audio track in the specified order. If the input is a THP file format that doesn't support multitracks, the output file will change into a format that supports multitracks.-d<outputfile>Specifies the output file (THP). If this argument is not specified, the THPConvtool overwrites the input file (see notes below).
-r<framerate>Specifies the movie frame rate. The valid frame rate ranges from 1.0 to 59.94. When no frame rate is specified, the default (29.97) is used. -o- THP movie data can internally save offsets to each frame data as a table. When this option is specified, the THPConvtool creates an offset table in the THP data. If this option is not specified, no offset table is created in the THP movie data.-non- Specifies the THP video data format. When interlace starts the video data from an odd number field, specify -odd. When interlace starts from an even number field, specify-even. If no argument is specified, the THP video data format is automatically set to noninterlace (-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,-oddand-evenoptions. This option can only be used with THP file formats that support multitracks.-v- Turns on verbose mode. -h- Displays the option list.
Note: 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 replacing the audio data, the THPConv tool will overwrite the THP movie data. When replacing the audio data, be sure create a backup file or specify an output file. Otherwise you may accidentally delete your data.
Note: 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 is not converted. If the playback time of the THP movie data is longer than the wav file, then the remaining section will be silent.
Note: 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.
Note: If you want the THP movie data to contain more than one audio track dataset, make sure the channel counts and playback frequencies for all audio track datasets are the same.
Note: Unlike the Nintendo GameCube, when using the Revolution platform, audio data is output at a set playback frequency (of 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 so that it is intended for the Revolution.
2006/03/01 Initial version.
CONFIDENTIAL