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">Replacing THP Audio Data Inside THP Movie Data</H1> 14<H2>Description</H2> 15<P>How to use the <CODE>THPConv</CODE> tool for replacing THP audio data inside <A href="THPFormat.html">THP movie data</A> is shown below. </P> 16 17 18<PRE><CODE><HR><B>THPConv.exe -c</B> <inputfile> <B>-s</B> <wavefile> <wavefile>... <B>-d</B> <outputfile> [-<option> <argument>]<HR></CODE></PRE> 19 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"><inputfile></td> 35<td>Specifies the input file (THP). <strong>An argument must 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"><wavefile><BR><wavefile><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><outputfile></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><framerate></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 the 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><track No.><BR><wavefile></CODE></td> 83<td>To replace only one set of audio track data, use this option instead of <CODE>-s</CODE>. 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 <CODE>-r</CODE>, <CODE>-o</CODE>, <CODE>-non</CODE>, <CODE>-odd</CODE> and <CODE>-even</CODE> options. The <CODE>-on</CODE> option 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. </td> 84 </tr> 85 86 <tr> 87<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-on</CODE></th> 88 <td ALIGN="center" width=100 bgcolor="#E6E6FA">-</td> 89<td>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.</td> 90 </tr> 91 92 <tr> 93<th ALIGN="center" width=50 bgcolor="#FFFFCC"><CODE>-v</CODE></th> 94 <td ALIGN="center" width=100 bgcolor="#E6E6FA">-</td> 95<td>Turns on verbose mode. </td> 96 </tr> 97 98 <tr> 99<th ALIGN="center" width=50 bgcolor="#FFFFCC"><code>-h</code></th> 100 <td ALIGN="center" width=100 bgcolor="#E6E6FA">-</td> 101<td>Displays the option list. </td> 102 </tr> 103 104 </tbody> 105</table> 106</BLOCKQUOTE> 107<h2><font color="#FF0000"><CODE>THPConv</CODE> Usage Notes</FONT></h2> 108<P><STRONG>NB:</STRONG> When the <CODE>THPConv</CODE> 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 <CODE>THPConv</CODE> 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. </P> 109 110<P><STRONG>Note:</STRONG> 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. </P> 111 112<P><STRONG>Note:</STRONG> If the input THP movie data specified doesn't contain audio data, this operation will add THP audio data to the specified file. </P> 113 114<P><STRONG>Note:</STRONG> 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. </P> 115 116<P><STRONG>Note:</STRONG> 117If 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.<br><br>If converting this frequency during data creation, run <CODE>THPConv</CODE> without specifying the <code>-on</code> option. If converting this frequency during playback, specify the <code>-on</code> option and run <CODE>THPConv</CODE>.<br><br>Use <CODE>THPPlayerStrmAX</CODE> when playing THP movie data that was created with the <CODE>-on</CODE> option specified.</P> 118 119<H2>See Also</H2> 120<P> 121<A href="THPConv.html"><CODE>THPConv.exe</CODE></A>,<BR> <A href="FileFormat.html">THPConv Compatible File Formats<CODE>THPConv</CODE></A> 122</P> 123 124<H2>Revision History</H2> 125<P>03/01/2006 Initial version.</P> 126</BODY> 127</HTML>