1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
8<title>THPConv - Replacing Audio Data</title>
9</head>
10
11<BODY>
12
13<H1 align="left">Change THP audio data in THP movie data</H1>
14<H2>Description</H2>
15<P>Following are instructions on using the <CODE>THPConv</CODE> tool for replacing THP audio data inside <A href="THPFormat.html">THP movie data</A>.</P>
16
17<BLOCKQUOTE>
18<PRE><CODE><HR><B>THPConv.exe -c</B> &lt;inputfile&gt; <B>-s</B> &lt;wavefile&gt; &lt;wavefile&gt;... <B>-d</B> &lt;outputfile&gt; [-&lt;option&gt; &lt;argument&gt;]<HR></CODE></PRE>
19</BLOCKQUOTE>
20
21
22
23<P>Option Descriptions</P>
24<BLOCKQUOTE>
25<table border="1" cellpadding="3" cellspacing="0.1">
26  <tbody>
27    <tr ALIGN="center">
28<th width=50 bgcolor="#C0C0C0">Option</th>
29<th width=100 bgcolor="#C0C0C0">Argument</th>
30<th bgcolor="#C0C0C0">Description</th>
31    </tr>
32    <tr>
33<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-c</CODE></th>
34<td ALIGN="center" width=100 bgcolor="#E6E6FA">&lt;inputfile&gt;</td>
35<td>Specifies the input file (THP file). This argument must <strong>always be specified</strong>.</td>
36    </tr>
37
38    <tr>
39<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-s</CODE></th>
40<td ALIGN="center" width=100 bgcolor="#E6E6FA">&lt;wavefile&gt;<BR>&lt;wavefile&gt;<BR>......</td>
41<td>Specifies the sound file to replace (a <A href="WavFormat.html">WAV file</A>). <BR>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.</td>
42    </tr>
43
44    <tr>
45<th ALIGN="center" width=50 bgcolor="#FFFFCC"><code>-d</code></th>
46<td ALIGN="center" width=100 bgcolor="#E6E6FA"><CODE>&lt;outputfile&gt;</CODE></td>
47<td>Specifies the output file (THP). If this argument is not specified, <strong>the <CODE>THPConv</CODE> tool overwrites the input file</strong> (see notes below).</td>
48    </tr>
49
50  </tbody>
51</table>
52<BR>
53<table border="1" cellpadding="3" cellspacing="0.1">
54  <tbody>
55
56    <tr>
57<th ALIGN="center" width=50 bgcolor="#FFFFCC"><code>-r</code></th>
58<td ALIGN="center" width=100 bgcolor="#E6E6FA"><CODE>&lt;framerate&gt;</CODE></td>
59<td>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. </td>
60    </tr>
61
62    <tr>
63<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-o</CODE></th>
64      <td ALIGN="center" width=100 bgcolor="#E6E6FA">-</td>
65<td>THP movie data can internally save offsets to each frame data as a table. When this option is specified, the <CODE>THPConv</CODE> tool creates an offset table in the THP data. If this option is not specified, no offset table is created in the THP movie data. </td>
66    </tr>
67
68    <tr>
69<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-non</CODE></th>
70      <td ALIGN="center" width=100 bgcolor="#E6E6FA" rowspan="3">-</td>
71<td rowspan="3">Specifies the THP video data format. When interlace starts the video data from an odd number field, specify <CODE>-odd</CODE>. When interlace starts from an even number field, specify <CODE>-even</CODE>. If no argument is specified, the THP video data format is automatically set to noninterlace (<CODE>-non</CODE>). </td>
72    </tr>
73    <tr>
74<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-odd</CODE></th>
75    </tr>
76    <tr>
77<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-even</CODE></th>
78    </tr>
79
80    <tr>
81<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-trk</CODE></th>
82<td ALIGN="center" width=100 bgcolor="#E6E6FA"><CODE>&lt;track No.&gt;<BR>&lt;wavefile&gt;</CODE></td>
83<td>If you only want to replace a single audio track dataset, use this option instead of <CODE>-s</CODE>. 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 <CODE>-r</CODE>, <CODE>-o</CODE>, <CODE>-non</CODE>, <CODE>-odd</CODE> and <CODE>-even</CODE> options. This option can only be used with THP file formats that support multitracks.</td>
84    </tr>
85
86    <tr>
87<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-v</CODE></th>
88      <td ALIGN="center" width=100 bgcolor="#E6E6FA">-</td>
89<td>Turns on verbose mode. </td>
90    </tr>
91
92    <tr>
93<th ALIGN="center" width=50 bgcolor="#FFFFCC"><code>-h</code></th>
94      <td ALIGN="center" width=100 bgcolor="#E6E6FA">-</td>
95<td>Displays the option list. </td>
96    </tr>
97
98  </tbody>
99</table>
100</BLOCKQUOTE>
101<h2><font color="#FF0000">THPConv Usage Notes</FONT></h2>
102<P><STRONG>Note:</STRONG> 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.</P>
103
104<P><STRONG>Note:</STRONG> 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.</P>
105
106<P><STRONG>Note:</STRONG> 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.</P>
107
108<P><STRONG>Note:</STRONG> 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. </P>
109
110<P><STRONG>Note:</STRONG> Unlike the Nintendo&nbsp;GameCube, when using the Revolution platform, audio data is output at a set playback frequency (of 48,000 Hz or 32,000 Hz).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              </P>
111
112<H2>See Also</H2>
113<P>
114<A href="THPConv.html">THPConv.exe</A>, <A href="FileFormat.html">File formats compatible with THPConv</A>
115</P>
116
117<H2>Revision History</H2>
118<P>
1192006/12/21 Deleted the <CODE>-on</CODE> option. Corrected a note related to the playback frequency so that it is intended for the Revolution.<br>2006/03/01 Initial version.
120</P>
121<hr>
122<P>CONFIDENTIAL</p>
123</BODY>
124</HTML>