How to use the THPConv tool for replacing THP audio data inside THP movie data is shown below.
THPConv.exe -c <inputfile> -s <wavefile> <wavefile>... -d <outputfile> [-<option> <argument>]
Option Descriptions
Option Argument Description -c<inputfile> Specifies the input file (THP). An 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 the 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>To replace only one set of audio track data, use this option instead of -s. Specify the first argument with the audio track number ( ≥ 0) to replace and the second argument with the sound file (WAV) to replace the old file. Using this option invalidates the-r,-o,-non,-oddand-evenoptions. The-onoption is also ignored, and the playback frequency conversion is fixed automatically to match the other audio tracks. Only THP file formats that support multitracks can be used with this option.-on- Specify this option if you want to convert the THP audio data playback frequency in real time to match the Revolution characteristics during THP movie data playback instead of during data creation. -v- Turns on verbose mode. -h- Displays the option list.
THPConv Usage NotesNB: When the THPConv tool replaces audio data in THP movie data, the old THP audio data is deleted. The data can't be restored once it is deleted. If no output file is specified, the THPConv tool overwrites the THP movie data when replacing the audio data. Be sure you create backup files or specify an output file to avoid losing your data.
Note: If playback of the replacement WAV file is longer than the THP movie data, the replacement WAV file will be converted up to the end of THP movie data. Conversely, if the THP movie data playback time is longer than the WAV file playback time, the remainder of the THP movie data will contain no audio.
Note: If the input THP movie data specified doesn't 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 set of audio track data, make sure that all the audio track data sets have the same channel count and playback frequency.
Note:
If the playback frequency is set to 48000 Hz, Revolution will output the audio data at 48043 Hz. If the frequency is set to 32000 Hz, it will output at 32028 Hz. During THP movide data playback, be aware of this Revolution characteristic to maintain synchronization between the video and audio data. You must convert the audio data playback frequency to match the Revolution characteristic in advance during THP movie data creation or with the audio library (AX) during THP movie playback.
If converting this frequency during data creation, run THPConv without specifying the -on option. If converting this frequency during playback, specify the -on option and run THPConv.
Use THPPlayerStrmAX when playing THP movie data that was created with the -on option specified.
THPConv.exe,
THPConv Compatible File FormatsTHPConv
03/01/2006 Initial version.