<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mariogalaxy.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HummingOwl</id>
	<title>Super Mario Galaxy wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://mariogalaxy.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HummingOwl"/>
	<link rel="alternate" type="text/html" href="https://mariogalaxy.org/wiki/Special:Contributions/HummingOwl"/>
	<updated>2026-05-04T16:25:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=370</id>
		<title>THPConv-Guide</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=370"/>
		<updated>2024-05-10T17:21:06Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is created specifically to make THP videos for SMG1. Other games that support THP may have a different THP setup.&lt;br /&gt;
&lt;br /&gt;
== Required Tools ==&lt;br /&gt;
&lt;br /&gt;
* FFmpeg ([https://web.archive.org/web/20200901234146/https://ffmpeg.zeranoe.com/builds/win32/static/ Win32 older builds], for Linux you can use your package manager)&lt;br /&gt;
* THPConv.exe (with dsptool.dll, [https://archive.org/details/WiiDevelopmentPackage/ Wii SDK])&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv Alternative THPConv build] (for Linux users)&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC Media Player] (to reproduce THP files)&lt;br /&gt;
* [https://www.winehq.org/ Wine] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
&lt;br /&gt;
Open a CMD/Terminal in the same place the video you want to convert is and type the following command (Fig. 1):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [input_video] -vf scale=&amp;quot;[width]:[height]&amp;quot; -r [fps] [temp_video]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[input_video]&amp;lt;/code&amp;gt; is the video of your choice to convert. Can be any video format.&lt;br /&gt;
*&amp;lt;code&amp;gt;[width]&amp;lt;/code&amp;gt; is the width the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Cannot exceed 672 pixels.&lt;br /&gt;
*&amp;lt;code&amp;gt;[height]&amp;lt;/code&amp;gt; is the height the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. There is no limit on this value.&lt;br /&gt;
*&amp;lt;code&amp;gt;[fps]&amp;lt;/code&amp;gt; are the frames per second the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Frame rates can be from 1.0 to 59.94.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-1.webp|right|thumb|Fig. 1 - Create temporal video]]&lt;br /&gt;
&lt;br /&gt;
{{note |&lt;br /&gt;
* All this information is extracted from the Wii SDK docs for THPConv.&lt;br /&gt;
* SMG uses 59.94 fps and 640x368 video dimensions for all THP files in the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; folder. Use &amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [THP video file]&amp;lt;/code&amp;gt; to see it yourself.&lt;br /&gt;
* If you use different frame rates than 59.94 the video on SMG1 will play slower or faster but not at its &amp;quot;normal&amp;quot; speed.&lt;br /&gt;
You can use different values for the width and height of the video, be sure they follow the rules said above and that the dimensions are a multiple of 16.&lt;br /&gt;
* To get a better video resolution on the final THP video you can use the following flags on the above command &amp;lt;code&amp;gt;-preset veryslow -b:v 21M&amp;lt;/code&amp;gt; (file size will increase a lot as &amp;lt;code&amp;gt;-b:v&amp;lt;/code&amp;gt; sets the bitrate of the output video). &amp;lt;code&amp;gt;21M&amp;lt;/code&amp;gt; was selected because of the bitrates of the OG THP videos on the MovieData folder (you can select any value you want, &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; means megabyte).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Create a folder named &amp;lt;code&amp;gt;temp&amp;lt;/code&amp;gt; in the same place the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; is and then type the following command (Fig. 2 and 3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] temp\output%03d.jpg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will dump all the frames the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; has into JPG images.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-2.webp|right|thumb|Fig. 2 - Create temporal folder]]&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-3.webp|right|thumb|Fig. 3 - Dump temporal video frames into folder]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* JPG or JPEG can be used, the only restriction the THPConv docs say is that they need to be in the baseline DCT format (which ffmpeg automatically converts them to with the above command).&lt;br /&gt;
* The minimum frames a THP video can have without breaking the game is 21. Tested with &amp;lt;code&amp;gt;PrologueA.thp&amp;lt;/code&amp;gt; in Riivolution.&lt;br /&gt;
* Very low width and height values for the THP video (16x16 for example) will allow to show blue rectangles on the screen when reproducing the associated cutscene. Tested it very little so I am unsure if this happens all the time.&lt;br /&gt;
* To get a video resolution similar to the [temp_video] on your THP video you can use the following flag on the above command &amp;lt;code&amp;gt;-q:v 1&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then, to get the audio part of the video execute (Fig. 4):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] -acodec pcm_s16le -ar 32000 [WAV_audio].wav&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[WAV_audio].wav&amp;lt;/code&amp;gt; is the name of the WAV audio file to use with THPConv.&lt;br /&gt;
&lt;br /&gt;
:This will convert the audio of the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; in a WAV audio using the pcm_s16le format.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-4.webp|right|thumb|Fig. 4 - Create WAV audio file]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* WAV audios are the only audio input THPConv can process. Specifically non-compressed 16-bit PCM data ones.&lt;br /&gt;
* WAV audios can be Mono or Stereo, they are both supported by THPConv.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-ar 32000&amp;lt;/code&amp;gt; sets the frequency of the WAV audio. 32000 Hz is needed for the audio in SMG1 since different values make the audio sound at a higher or lower pitch.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Finally, to get the THP converted file we do (Fig. 5):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\THPConv.exe -j temp\output*.jpg -s [WAV_audio].wav -r 59.94 -d [Output THP].thp -v&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-5.webp|right|thumb|Fig. 5 - Create THP file with THPConv]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* The &amp;lt;code&amp;gt;-j&amp;lt;/code&amp;gt; flag is used to select the JPEG sequential frames that are going to be used in the THP video.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; flag is used to select the WAV audio to be used in the THP video (optional).&lt;br /&gt;
* The &amp;lt;code&amp;gt;-r&amp;lt;/code&amp;gt; flag is used to set the frame rate of the THP video. If you want your video to reproduce normally on SMG1 use 59.94 as frame rate. If omitted THPConv will set the frame rate of the THP video to 29.97 fps.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-d&amp;lt;/code&amp;gt; flag is used to set the THP file creation path and name.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-v&amp;lt;/code&amp;gt; flag is used to print more info on the CMD when THPConv is converting the JPG frames and WAV audio into a THP video (optional).&lt;br /&gt;
* To check more info on the commands THPConv has, check its documentation (Wii SDK or [[THPConv | here]]).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Now you can replace the THP file with the one you want from your SMG1 dump and test the video on game!&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* You can use VLC Media Player to play/test THP videos as well as FFmpeg to convert THP videos to other video formats (you can&#039;t convert to THP with FFmpeg).&lt;br /&gt;
* When testing the THP video on console it is better to not use Riivolution but rather pack the THP into the WBFS file and run said WBFS in a USB Loader. Due to either Riivolution file copying velocity or how inefficient the THP processing algorhythm/video format is (or a combination of both) the video can&#039;t be reproduced at its normal speed when being replaced by Riivolution.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Thanks to Lord-Giganticus and EmilyTheDemon for their support during the guide!&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[THPConv | THPConv documentation]]&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=369</id>
		<title>THPConv</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=369"/>
		<updated>2024-05-10T17:03:15Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: edited page styles&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tools]]{{SDK Reference}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; is a prebuilt Win32 console application that Nintendo provides in the Wii and GCN SDKs. It is used to convert sequential JPEG images into a THP video format (with an option to include audio into it from a WAV audio file) and to include/replace audio of an existent THP video. It needs the &#039;&#039;&#039;dsptool.dll&#039;&#039;&#039; file to work.&lt;br /&gt;
&lt;br /&gt;
There is a similar program called &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; included alonside &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; and according to the Wii SDK docs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;i&amp;gt;there is no difference in how the two behave. Normally you should use THPConv.exe. THPConvD.exe remains in order to maintain compatibility with past systems.&amp;lt;/i&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So you may use either &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; or &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; to make/edit THP files (be sure to have the respective &#039;&#039;&#039;dsptoolD.dll&#039;&#039;&#039; for &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
Linux users can use [https://www.winehq.org/ Wine] to run both programs.&lt;br /&gt;
&lt;br /&gt;
== Converting Sequential JPEG files to THP Movie Data ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The following describes how to use the THPConv tool to convert &#039;&#039;&#039;Sequential JPEG files&#039;&#039;&#039; to &#039;&#039;&#039;THP movie data&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;THPConv.exe -j &amp;amp;lt;*.jpg&amp;amp;gt; -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-j&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;*.jpg&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input files (sequential JPEG files). Wildcard characters (&amp;quot;*&amp;quot;) can be used. This argument must always be specified.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). This argument must always be specified.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the audio file (WAV file) that will be converted to THP audio data. When specifying more than one file for the argument, data is allocated to audio tracks in the order it is specified.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;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 is automatically set to non-interlaced (-non).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;THPConv.exe -j test*.jpg -d output.thp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When this example is executed from a command line, the sequential JPEG files in the current directory (test001.jpg, test002.jpg, test003.jpg, etc.) are converted to THP video data and collected into a single THP movie data file (output.thp). No WAV audio is specified so the THP video will be just video without audio.&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* When converting sequential JPEG files to THP movie data, the names of the specified input files must have the extension &amp;quot;.jpg&amp;quot; or &amp;quot;.jpeg&amp;quot;.&lt;br /&gt;
* Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Changing THP Audio Data in THP Movie Data ==&lt;br /&gt;
&lt;br /&gt;
Note that some of the commands options above are the same here (being those &#039;&#039;&#039;-s&#039;&#039;&#039;, &#039;&#039;&#039;-d&#039;&#039;&#039;, &#039;&#039;&#039;-r&#039;&#039;&#039;, &#039;&#039;&#039;-o&#039;&#039;&#039;, &#039;&#039;&#039;-non&#039;&#039;&#039;, &#039;&#039;&#039;-even&#039;&#039;&#039;, &#039;&#039;&#039;-odd&#039;&#039;&#039;, &#039;&#039;&#039;-v&#039;&#039;&#039;, &#039;&#039;&#039;-h&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Below are the instructions for using the THPConv tool to change the THP audio data in &#039;&#039;&#039;THP Movie Data&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;THPConv.exe -c &amp;amp;lt;inputfile&amp;amp;gt; -s &amp;amp;lt;wavefile&amp;amp;gt; &amp;amp;lt;wavefile&amp;amp;gt;... -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-c&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;inputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input file (THP file). This argument must always be specified.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the replacing sound file (&#039;&#039;&#039;WAV file&#039;&#039;&#039;). 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). If this argument is not given, the THPConv tool will overwrite the input file.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;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).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-trk&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;track No.&amp;amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* 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.&lt;br /&gt;
* 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.&lt;br /&gt;
* 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.&lt;br /&gt;
* 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.&lt;br /&gt;
* Unlike the Nintendo GameCube, audio data on the Wii console is output at a set playback frequency (48,000 Hz or 32,000 Hz).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Compatible file formats for THPConv ==&lt;br /&gt;
&lt;br /&gt;
=== Sequential JPEG File Format ===&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
The THPConv tool can convert a group of sequential JPEG files having sequence numbers at the end of their filenames (indicating the playback order) to THP movie data. When interleaving audio data in sequential JPEG files, you must either specify the WAV files by using the -s option at the time the sequential JPEG files are converted, or add the WAV files after conversion. &lt;br /&gt;
 &lt;br /&gt;
The following restrictions apply to groups of sequential JPEG files that can be handled with the THPConv tool:&lt;br /&gt;
&lt;br /&gt;
* All JPEG files to be collected into a single THP movie dataset must have the same number of pixels in the horizontal and vertical directions.&lt;br /&gt;
* The group of sequential JPEG files must have sequence numbers (corresponding to frame numbers) appended to the end of their filenames.&lt;br /&gt;
* The number of the JPEG file corresponding to the initial frame of the THP movie data can be any number. However, the numbers of all files thereafter must be sequential.&lt;br /&gt;
* Please add leading zeros to the frame numbers appended to the filenames so that they all match the number of digits in the last frame.&lt;br /&gt;
&lt;br /&gt;
The following restrictions apply to each file in a group of sequential JPEG files:&lt;br /&gt;
&lt;br /&gt;
* Only the JPEG baseline DCT format is supported.&lt;br /&gt;
* Only sequential encoding is supported.&lt;br /&gt;
* Only supports a sample rate of 4:2:0.&lt;br /&gt;
* The pixel counts in both the horizontal and vertical directions must be a multiple of 16.&lt;br /&gt;
* The maximum pixel count in the horizontal direction is 672 dots. There is no restriction on the pixel count in the vertical direction.&lt;br /&gt;
&lt;br /&gt;
If the sequential JPEG files do not meet these requirements, the THPConv tool will output an error and stop processing.&lt;br /&gt;
&lt;br /&gt;
==== Example ====&lt;br /&gt;
&lt;br /&gt;
To create four seconds of THP movie data at 30 FPS from sequential JPEG files, the numbers of the sequential JPEG files (testxxx.jpg) should look like the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 1 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test001.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 2 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test002.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 3 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test003.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;51 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test051.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;52 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test052.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;118 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test118.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;119 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test119.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;120 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test120.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== WAV file format ===&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The THPConv tool can convert a general WAV file to THP audio data and interleave it with THP movie data. The following restrictions apply to WAV files that can be converted by the THPConv tool:&lt;br /&gt;
&lt;br /&gt;
* They must be non-compressed 16-bit PCM data.&lt;br /&gt;
* Monaural (one channel) and stereo (two channels) are supported.&lt;br /&gt;
&lt;br /&gt;
If the wav file does not meet these requirements, the THPConv tool will output an error and stop processing.&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&lt;br /&gt;
* WAV files having a playback frequency other than 48,000Hz or 32,000Hz can be specified in THPConv. When playing THP movie data created with such WAV files, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.Even if you created THP movie data specifying wav files with a playback frequency of 48,000Hz or 32,000Hz, if the playback frequency setting on the Wii is different, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If you want the THP movie data to contain more than one audio data set, make sure the channel counts and playback frequencies for all data sets are the same.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= Creating a THP video for SMG =&lt;br /&gt;
&#039;&#039;THPConv.exe is originally a Windows binary, but a port to Linux exits. You can find it [https://github.com/MasterofGalaxies/THPConv here]&#039;&#039;&lt;br /&gt;
# Run the following in a shell program: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -vf scale=640:368 temp\frame%03d.jpg&#039;&#039; (Replace Input.mp4 and temp with what you want)&lt;br /&gt;
# If you are going to make the video have audio run this: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -f u16be audio.wav&#039;&#039; (Replace Input.mp4 and audio.wav with what you want)&lt;br /&gt;
# Then, run this if you are not making a video with audio: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -d output.thp&#039;&#039; (Replace temp and output.thp with what you want)&lt;br /&gt;
# If you DO want audio, run this instead: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -s audio.wav -d output.thp&#039;&#039; (Replace temp, audio.wav, and output.thp with what you want)&lt;br /&gt;
# Attempt replacing one of the THP Videos in [[File_system#MovieData|MovieData]] and see if it works.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=368</id>
		<title>THPConv-Guide</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=368"/>
		<updated>2024-05-10T14:26:17Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is created specifically to make THP videos for SMG1. Other games that support THP may have a different THP setup.&lt;br /&gt;
&lt;br /&gt;
== Required Tools ==&lt;br /&gt;
&lt;br /&gt;
* FFmpeg ([https://web.archive.org/web/20200901234146/https://ffmpeg.zeranoe.com/builds/win32/static/ Win32 older builds], for Linux you can use your package manager)&lt;br /&gt;
* THPConv.exe (with dsptool.dll, [https://archive.org/details/WiiDevelopmentPackage/ Wii SDK])&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv Alternative THPConv build] (for Linux users)&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC Media Player] (to reproduce THP files)&lt;br /&gt;
* [https://www.winehq.org/ Wine] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
&lt;br /&gt;
Open a CMD/Terminal in the same place the video you want to convert is and type the following command (Fig. 1):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [input_video] -vf scale=&amp;quot;[width]:[height]&amp;quot; -r [fps] [temp_video]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[input_video]&amp;lt;/code&amp;gt; is the video of your choice to convert. Can be any video format.&lt;br /&gt;
*&amp;lt;code&amp;gt;[width]&amp;lt;/code&amp;gt; is the width the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Cannot exceed 672 pixels.&lt;br /&gt;
*&amp;lt;code&amp;gt;[height]&amp;lt;/code&amp;gt; is the height the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. There is no limit on this value.&lt;br /&gt;
*&amp;lt;code&amp;gt;[fps]&amp;lt;/code&amp;gt; are the frames per second the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Frame rates can be from 1.0 to 59.94.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-1.webp|right|thumb|Fig. 1 - Create temporal video]]&lt;br /&gt;
&lt;br /&gt;
{{note |&lt;br /&gt;
* All this information is extracted from the Wii SDK docs for THPConv.&lt;br /&gt;
* SMG uses 59.94 fps and 640x368 video dimensions for all THP files in the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; folder. Use &amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [THP video file]&amp;lt;/code&amp;gt; to see it yourself.&lt;br /&gt;
* If you use different frame rates than 59.94 the video on SMG1 will play slower or faster but not at its &amp;quot;normal&amp;quot; speed.&lt;br /&gt;
You can use different values for the width and height of the video, be sure they follow the rules said above and that the dimensions are a multiple of 16.&lt;br /&gt;
* To get a better video resolution on the final THP video you can use the following flags on the above command &amp;lt;code&amp;gt;-preset veryslow -b:v 21M&amp;lt;/code&amp;gt; (file size will increase a lot as &amp;lt;code&amp;gt;-b:v&amp;lt;/code&amp;gt; sets the bitrate of the output video). &amp;lt;code&amp;gt;21M&amp;lt;/code&amp;gt; was selected because of the bitrates of the OG THP videos on the MovieData folder (you can select any value you want, &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; means megabyte).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Create a folder named &amp;lt;code&amp;gt;temp&amp;lt;/code&amp;gt; in the same place the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; is and then type the following command (Fig. 2 and 3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] temp\output%03d.jpg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will dump all the frames the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; has into JPG images.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-2.webp|right|thumb|Fig. 2 - Create temporal folder]]&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-3.webp|right|thumb|Fig. 3 - Dump temporal video frames into folder]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* JPG or JPEG can be used, the only restriction the THPConv docs say is that they need to be in the baseline DCT format (which ffmpeg automatically converts them to with the above command).&lt;br /&gt;
* The minimum frames a THP video can have without breaking the game is 21. Tested with &amp;lt;code&amp;gt;PrologueA.thp&amp;lt;/code&amp;gt; in Riivolution.&lt;br /&gt;
* Very low width and height values for the THP video (16x16 for example) will allow to show blue rectangles on the screen when reproducing the associated cutscene. Tested it very little so I am unsure if this happens all the time.&lt;br /&gt;
* To get a video resolution similar to the [temp_video] on your THP video you can use the following flag on the above command &amp;lt;code&amp;gt;-q:v 1&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then, to get the audio part of the video execute (Fig. 4):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] -acodec pcm_s16le -ar 32000 [WAV_audio].wav&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[WAV_audio].wav&amp;lt;/code&amp;gt; is the name of the WAV audio file to use with THPConv.&lt;br /&gt;
&lt;br /&gt;
:This will convert the audio of the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; in a WAV audio using the pcm_s16le format.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-4.webp|right|thumb|Fig. 4 - Create WAV audio file]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* WAV audios are the only audio input THPConv can process. Specifically non-compressed 16-bit PCM data ones.&lt;br /&gt;
* WAV audios can be Mono or Stereo, they are both supported by THPConv.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-ar 32000&amp;lt;/code&amp;gt; sets the frequency of the WAV audio. 32000 Hz is needed for the audio in SMG1 since different values make the audio sound at a higher or lower pitch.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Finally, to get the THP converted file we do (Fig. 5):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\THPConv.exe -j temp\output*.jpg -s [WAV_audio].wav -r 59.94 -d [Output THP].thp -v&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-5.webp|right|thumb|Fig. 5 - Create THP file with THPConv]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* The &amp;lt;code&amp;gt;-j&amp;lt;/code&amp;gt; flag is used to select the JPEG sequential frames that are going to be used in the THP video.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; flag is used to select the WAV audio to be used in the THP video (optional).&lt;br /&gt;
* The &amp;lt;code&amp;gt;-r&amp;lt;/code&amp;gt; flag is used to set the frame rate of the THP video. If you want your video to reproduce normally on SMG1 use 59.94 as frame rate. If omitted THPConv will set the frame rate of the THP video to 29.97 fps.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-d&amp;lt;/code&amp;gt; flag is used to set the THP file creation path and name.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-v&amp;lt;/code&amp;gt; flag is used to print more info on the CMD when THPConv is converting the JPG frames and WAV audio into a THP video (optional).&lt;br /&gt;
* To check more info on the commands THPConv has, check its documentation (Wii SDK or [[THPConv | here]]).&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can replace the THP file with the one you want from your SMG1 dump and test the video on game!&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* You can use VLC Media Player to play/test THP videos as well as FFmpeg to convert THP videos to other video formats (you can&#039;t convert to THP with FFmpeg).&lt;br /&gt;
* When testing the THP video on console it is better to not use Riivolution but rather pack the THP into the WBFS file and run said WBFS in a USB Loader. Due to either Riivolution file copying velocity or how inefficient the THP processing algorhythm/video format is (or a combination of both) the video can&#039;t be reproduced at its normal speed when being replaced by Riivolution.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Thanks to Lord-Giganticus and EmilyTheDemon for their support during the guide!&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[THPConv | THPConv documentation]]&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=367</id>
		<title>THPConv-Guide</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=367"/>
		<updated>2024-05-10T04:06:30Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: using new note box!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is created specifically to make THP videos for SMG1. Other games that support THP may have a different THP setup.&lt;br /&gt;
&lt;br /&gt;
== Required Tools ==&lt;br /&gt;
&lt;br /&gt;
* FFmpeg ([https://web.archive.org/web/20200901234146/https://ffmpeg.zeranoe.com/builds/win32/static/ Win32 older builds], for Linux you can use your package manager)&lt;br /&gt;
* THPConv.exe (with dsptool.dll, [https://archive.org/details/WiiDevelopmentPackage/ Wii SDK])&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv Alternative THPConv build] (for Linux users)&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC Media Player] (to reproduce THP files)&lt;br /&gt;
* [https://www.winehq.org/ Wine] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
&lt;br /&gt;
Open a CMD/Terminal in the same place the video you want to convert is and type the following command (Fig. 1):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [input_video] -vf scale=&amp;quot;[width]:[height]&amp;quot; -r [fps] [temp_video]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[input_video]&amp;lt;/code&amp;gt; is the video of your choice to convert. Can be any video format.&lt;br /&gt;
*&amp;lt;code&amp;gt;[width]&amp;lt;/code&amp;gt; is the width the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Cannot exceed 672 pixels.&lt;br /&gt;
*&amp;lt;code&amp;gt;[height]&amp;lt;/code&amp;gt; is the height the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. There is no limit on this value.&lt;br /&gt;
*&amp;lt;code&amp;gt;[fps]&amp;lt;/code&amp;gt; are the frames per second the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Frame rates can be from 1.0 to 59.94.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-1.webp|right|thumb|Fig. 1 - Create temporal video]]&lt;br /&gt;
&lt;br /&gt;
{{note |&lt;br /&gt;
* All this information is extracted from the Wii SDK docs for THPConv.&lt;br /&gt;
* SMG uses 59.94 fps and 640x368 video dimensions for all THP files in the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; folder. Use &amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [THP video file]&amp;lt;/code&amp;gt; to see it yourself.&lt;br /&gt;
* If you use different frame rates than 59.94 the video on SMG1 will play slower or faster but not at its &amp;quot;normal&amp;quot; speed.&lt;br /&gt;
You can use different values for the width and height of the video, be sure they follow the rules said above and that the dimensions are a multiple of 16.&lt;br /&gt;
* To get a better video resolution on the final THP video you can use the following flags on the above command &amp;lt;code&amp;gt;-preset veryslow -b:v 21M&amp;lt;/code&amp;gt; (file size will increase a lot as &amp;lt;code&amp;gt;-b:v&amp;lt;/code&amp;gt; sets the bitrate of the output video). &amp;lt;code&amp;gt;21M&amp;lt;/code&amp;gt; was selected because of the bitrates of the OG THP videos on the MovieData folder (you can select any value you want, &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; means megabyte).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Create a folder named &amp;lt;code&amp;gt;temp&amp;lt;/code&amp;gt; in the same place the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; is and then type the following command (Fig. 2 and 3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] temp\output%03d.jpg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will dump all the frames the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; has into JPG images.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-2.webp|right|thumb|Fig. 2 - Create temporal folder]]&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-3.webp|right|thumb|Fig. 3 - Dump temporal video frames into folder]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* JPG or JPEG can be used, the only restriction the THPConv docs say is that they need to be in the baseline DCT format (which ffmpeg automatically converts them to with the above command).&lt;br /&gt;
* The minimum frames a THP video can have without breaking the game is 21. Tested with &amp;lt;code&amp;gt;PrologueA.thp&amp;lt;/code&amp;gt; in Riivolution.&lt;br /&gt;
* Very low width and height values for the THP video (16x16 for example) will allow to show blue rectangles on the screen when reproducing the associated cutscene. Tested it very little so I am unsure if this happens all the time.&lt;br /&gt;
* To get a video resolution similar to the [temp_video] on your THP video you can use the following flag on the above command &amp;lt;code&amp;gt;-q:v 1&amp;lt;/code&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Then, to get the audio part of the video execute (Fig. 4):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] -acodec pcm_s16le -ar 32000 [WAV_audio].wav&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[WAV_audio].wav&amp;lt;/code&amp;gt; is the name of the WAV audio file to use with THPConv.&lt;br /&gt;
&lt;br /&gt;
:This will convert the audio of the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; in a WAV audio using the pcm_s16le format.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-4.webp|right|thumb|Fig. 4 - Create WAV audio file]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* WAV audios are the only audio input THPConv can process. Specifically non-compressed 16-bit PCM data ones.&lt;br /&gt;
* WAV audios can be Mono or Stereo, they are both supported by THPConv.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-ar 32000&amp;lt;/code&amp;gt; sets the frequency of the WAV audio. 32000 Hz is needed for the audio in SMG1 since different values make the audio sound at a higher or lower pitch.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Finally, to get the THP converted file we do (Fig. 5):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\THPConv.exe -j temp\output*.jpg -s [WAV_audio].wav -r 59.94 -d [Output THP].thp -v&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-5.webp|right|thumb|Fig. 5 - Create THP file with THPConv]]&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* The &amp;lt;code&amp;gt;-j&amp;lt;/code&amp;gt; flag is used to select the JPEG sequential frames that are going to be used in the THP video.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; flag is used to select the WAV audio to be used in the THP video (optional).&lt;br /&gt;
* The &amp;lt;code&amp;gt;-r&amp;lt;/code&amp;gt; flag is used to set the frame rate of the THP video. If you want your video to reproduce normally on SMG1 use 59.94 as frame rate. If omitted THPConv will set the frame rate of the THP video to 29.97 fps.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-d&amp;lt;/code&amp;gt; flag is used to set the THP file creation path and name.&lt;br /&gt;
* The &amp;lt;code&amp;gt;-v&amp;lt;/code&amp;gt; flag is used to print more info on the CMD when THPConv is converting the JPG frames and WAV audio into a THP video (optional).&lt;br /&gt;
* To check more info on the commands THPConv has, check its documentation (Wii SDK or [[THPConv | here]]).&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can replace the THP file with the one you want from your SMG1 dump and test the video on game!&lt;br /&gt;
&lt;br /&gt;
{{ note |&lt;br /&gt;
* You can use VLC Media Player to play/test THP videos as well as FFmpeg to convert THP videos to other video formats (you can&#039;t convert to THP with FFmpeg).&lt;br /&gt;
* When testing the THP video on console it is better to not use Riivolution but rather pack the THP into the WBFS file and run said WBFS in a USB Loader. Due to either Riivolution file copying velocity or how inefficient the THP processing algorhythm/video format is (or a combination of both) the video can&#039;t be reproduced at its normal speed when being replaced by Riivolution.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Thanks to Lord-Giganticus and EmilyTheDemon for their support during the guide!&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[THPConv | THPConv documentation]]&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv THPConv port to Linux]&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=366</id>
		<title>Template:Note</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=366"/>
		<updated>2024-05-10T04:01:22Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;blockquote style=&amp;quot;background-color: #eaf3ff; border: 1px solid #a3caff; padding: 15px; padding-left: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
{{{1}}}&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=365</id>
		<title>Template:Note</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=365"/>
		<updated>2024-05-10T03:56:26Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;blockquote style=&amp;quot;background-color: #eaf3ff; border: 1px solid #a3caff;&amp;quot;&amp;gt;&lt;br /&gt;
{{{1}}}&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=364</id>
		<title>Template:Note</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=364"/>
		<updated>2024-05-10T03:53:37Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color: #eaf3ff; border: 1px solid #a3caff; 0px; padding: 0; text-align: left; padding: 10px; margin-top: 5px; margin-bottom: 5px;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div style=&amp;quot;width: 24px; display: inline-block; height: 100%; vertical-align: middle;&amp;quot;&amp;gt;&lt;br /&gt;
    [[File:Note inf image.png|24px|frameless|center]]&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;blockquote style=&amp;quot;display: inline-block; height: 100%; vertical-align: middle; margin-left: 5px; padding: 0; padding-left: 5px;&amp;quot;&amp;gt;&lt;br /&gt;
    {{{1}}}&lt;br /&gt;
  &amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=363</id>
		<title>Template:Note</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=363"/>
		<updated>2024-05-10T03:52:22Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color: #eaf3ff; border: 1px solid #a3caff; 0px; padding: 0; text-align: left; padding: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div style=&amp;quot;width: 24px; display: inline-block; height: 100%; vertical-align: middle;&amp;quot;&amp;gt;&lt;br /&gt;
    [[File:Note inf image.png|24px|frameless|center]]&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;blockquote style=&amp;quot;display: inline-block; height: 100%; vertical-align: middle; margin-left: 5px; padding: 0; padding-left: 5px;&amp;quot;&amp;gt;&lt;br /&gt;
    {{{1}}}&lt;br /&gt;
  &amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=362</id>
		<title>Template:Note</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=362"/>
		<updated>2024-05-10T03:39:17Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: improving the note box&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color: #eaf3ff; border: 1px solid #a3caff; 0px; padding: 0; text-align: left; padding: 10px;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div style=&amp;quot;width: 3%; display: inline-block; height: 100%; vertical-align: middle;&amp;quot;&amp;gt;&lt;br /&gt;
    [[File:Note inf image.png|28px|center]]&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div style=&amp;quot;display: inline-block; height: 100%; vertical-align: middle; width: 95%;&amp;quot;&amp;gt;&lt;br /&gt;
    {{{1}}}&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=File:Note_inf_image.png&amp;diff=361</id>
		<title>File:Note inf image.png</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=File:Note_inf_image.png&amp;diff=361"/>
		<updated>2024-05-10T03:04:01Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: image for the note box (Template:Note)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
image for the note box (Template:Note)&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=360</id>
		<title>Template:Note</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=Template:Note&amp;diff=360"/>
		<updated>2024-05-10T02:52:19Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: simple note box template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;blockquote style=&amp;quot;background-color: #eaf3ff; border: 1px solid #a3caff;&amp;quot;&amp;gt;&lt;br /&gt;
{{{1}}}&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=359</id>
		<title>THPConv-Guide</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=359"/>
		<updated>2024-05-09T21:40:36Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is created specifically to make THP videos for SMG1. Other games that support THP may have a different THP setup.&lt;br /&gt;
&lt;br /&gt;
== Required Tools ==&lt;br /&gt;
&lt;br /&gt;
* FFmpeg ([https://web.archive.org/web/20200901234146/https://ffmpeg.zeranoe.com/builds/win32/static/ Win32 older builds], for Linux you can use your package manager)&lt;br /&gt;
* THPConv.exe (with dsptool.dll, [https://archive.org/details/WiiDevelopmentPackage/ Wii SDK])&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv Alternative THPConv build] (for Linux users)&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC Media Player] (to reproduce THP files)&lt;br /&gt;
* [https://www.winehq.org/ Wine] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
&lt;br /&gt;
Open a CMD/Terminal in the same place the video you want to convert is and type the following command (Fig. 1):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [input_video] -vf scale=&amp;quot;[width]:[height]&amp;quot; -r [fps] [temp_video]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[input_video]&amp;lt;/code&amp;gt; is the video of your choice to convert. Can be any video format.&lt;br /&gt;
*&amp;lt;code&amp;gt;[width]&amp;lt;/code&amp;gt; is the width the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Cannot exceed 672 pixels.&lt;br /&gt;
*&amp;lt;code&amp;gt;[height]&amp;lt;/code&amp;gt; is the height the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. There is no limit on this value.&lt;br /&gt;
*&amp;lt;code&amp;gt;[fps]&amp;lt;/code&amp;gt; are the frames per second the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Frame rates can be from 1.0 to 59.94.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-1.webp|right|thumb|Fig. 1 - Create temporal video]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
All this information is extracted from the Wii SDK docs for THPConv.&lt;br /&gt;
&lt;br /&gt;
SMG uses 59.94 fps and 640x368 video dimensions for all THP files in the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; folder. Use &amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [THP video file]&amp;lt;/code&amp;gt; to see it yourself.&lt;br /&gt;
&lt;br /&gt;
If you use different frame rates than 59.94 the video on SMG1 will play slower or faster but not at its &amp;quot;normal&amp;quot; speed.&lt;br /&gt;
&lt;br /&gt;
You can use different values for the width and height of the video, be sure they follow the rules said above and that the dimensions are a multiple of 16.&lt;br /&gt;
&lt;br /&gt;
To get a better video resolution on the final THP video you can use the following flags on the above command &amp;lt;code&amp;gt;-preset veryslow -b:v 21M&amp;lt;/code&amp;gt; (file size will increase a lot as &amp;lt;code&amp;gt;-b:v&amp;lt;/code&amp;gt; sets the bitrate of the output video). &amp;lt;code&amp;gt;21M&amp;lt;/code&amp;gt; was selected because of the bitrates of the OG THP videos on the MovieData folder (you can select any value you want, &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; means megabyte).&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a folder named &amp;lt;code&amp;gt;temp&amp;lt;/code&amp;gt; in the same place the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; is and then type the following command (Fig. 2 and 3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] temp\output%03d.jpg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will dump all the frames the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; has into JPG images.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-2.webp|right|thumb|Fig. 2 - Create temporal folder]]&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-3.webp|right|thumb|Fig. 3 - Dump temporal video frames into folder]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
JPG or JPEG can be used, the only restriction the THPConv docs say is that they need to be in the baseline DCT format (which ffmpeg automatically converts them to with the above command).&lt;br /&gt;
&lt;br /&gt;
The minimum frames a THP video can have without breaking the game is 21. Tested with &amp;lt;code&amp;gt;PrologueA.thp&amp;lt;/code&amp;gt; in Riivolution.&lt;br /&gt;
&lt;br /&gt;
Very low width and height values for the THP video (16x16 for example) will allow to show blue rectangles on the screen when reproducing the associated cutscene. Tested it very little so I am unsure if this happens all the time.&lt;br /&gt;
&lt;br /&gt;
To get a video resolution similar to the [temp_video] on your THP video you can use the following flag on the above command &amp;lt;code&amp;gt;-q:v 1&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, to get the audio part of the video execute (Fig. 4):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] -acodec pcm_s16le -ar 32000 [WAV_audio].wav&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[WAV_audio].wav&amp;lt;/code&amp;gt; is the name of the WAV audio file to use with THPConv.&lt;br /&gt;
&lt;br /&gt;
:This will convert the audio of the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; in a WAV audio using the pcm_s16le format.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-4.webp|right|thumb|Fig. 4 - Create WAV audio file]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
WAV audios are the only audio input THPConv can process. Specifically non-compressed 16-bit PCM data ones.&lt;br /&gt;
&lt;br /&gt;
WAV audios can be Mono or Stereo, they are both supported by THPConv.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-ar 32000&amp;lt;/code&amp;gt; sets the frequency of the WAV audio. 32000 Hz is needed for the audio in SMG1 since different values make the audio sound at a higher or lower pitch.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, to get the THP converted file we do (Fig. 5):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\THPConv.exe -j temp\output*.jpg -s [WAV_audio].wav -r 59.94 -d [Output THP].thp -v&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-5.webp|right|thumb|Fig. 5 - Create THP file with THPConv]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
The &amp;lt;code&amp;gt;-j&amp;lt;/code&amp;gt; flag is used to select the JPEG sequential frames that are going to be used in the THP video.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; flag is used to select the WAV audio to be used in the THP video (optional).&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-r&amp;lt;/code&amp;gt; flag is used to set the frame rate of the THP video. If you want your video to reproduce normally on SMG1 use 59.94 as frame rate. If omitted THPConv will set the frame rate of the THP video to 29.97 fps.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-d&amp;lt;/code&amp;gt; flag is used to set the THP file creation path and name.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-v&amp;lt;/code&amp;gt; flag is used to print more info on the CMD when THPConv is converting the JPG frames and WAV audio into a THP video (optional).&lt;br /&gt;
&lt;br /&gt;
To check more info on the commands THPConv has, check its documentation (Wii SDK or [[THPConv | here]]).&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can replace the THP file with the one you want from your SMG1 dump and test the video on game!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
You can use VLC Media Player to play/test THP videos as well as FFmpeg to convert THP videos to other video formats (you can&#039;t convert to THP with FFmpeg).&lt;br /&gt;
&lt;br /&gt;
When testing the THP video on console it is better to not use Riivolution but rather pack the THP into the WBFS file and run said WBFS in a USB Loader. Due to either Riivolution file copying velocity or how inefficient the THP processing algorhythm/video format is (or a combination of both) the video can&#039;t be reproduced at its normal speed when being replaced by Riivolution.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Thanks to Lord-Giganticus and EmilyTheDemon for their support during the guide!&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[THPConv | THPConv documentation]]&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv THPConv port to Linux]&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=358</id>
		<title>THPConv-Guide</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=358"/>
		<updated>2024-05-09T21:32:06Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: edited style, hope no information was deleted&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is created specifically to make THP videos for SMG1. Other games that support THP may have a different THP setup.&lt;br /&gt;
&lt;br /&gt;
== Required Tools ==&lt;br /&gt;
&lt;br /&gt;
* FFmpeg ([https://web.archive.org/web/20200901234146/https://ffmpeg.zeranoe.com/builds/win32/static/ Win32 older builds], for Linux you can use your package manager)&lt;br /&gt;
* THPConv.exe (with dsptool.dll, [https://archive.org/details/WiiDevelopmentPackage/ Wii SDK])&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv Alternative THPConv build] (for Linux users)&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC Media Player] (to reproduce THP files)&lt;br /&gt;
* [https://www.winehq.org/ Wine] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
== Steps ==&lt;br /&gt;
&lt;br /&gt;
Open a CMD/Terminal in the same place the video you want to convert is and type the following command (Fig. 1):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [input_video] -vf scale=&amp;quot;[width]:[height]&amp;quot; -r [fps] [temp_video]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[input_video]&amp;lt;/code&amp;gt; is the video of your choice to convert. Can be any video format.&lt;br /&gt;
*&amp;lt;code&amp;gt;[width]&amp;lt;/code&amp;gt; is the width the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Cannot exceed 672 pixels.&lt;br /&gt;
*&amp;lt;code&amp;gt;[height]&amp;lt;/code&amp;gt; is the height the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. There is no limit on this value.&lt;br /&gt;
*&amp;lt;code&amp;gt;[fps]&amp;lt;/code&amp;gt; are the frames per second the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. Frame rates can be from 1.0 to 59.94.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-1.webp|right|thumb|Fig. 1 - Create temporal video]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
All this information is extracted from the Wii SDK docs for THPConv.&lt;br /&gt;
&lt;br /&gt;
SMG uses 59.94 fps and 640x368 video dimensions for all THP files in the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; folder. Use &amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [THP video file]&amp;lt;/code&amp;gt; to see it yourself.&lt;br /&gt;
&lt;br /&gt;
If you use different frame rates than 59.94 the video on SMG1 will play slower or faster but not at its &amp;quot;normal&amp;quot; speed.&lt;br /&gt;
&lt;br /&gt;
You can use different values for the width and height of the video, be sure they follow the rules said above and that the dimensions are a multiple of 16.&lt;br /&gt;
&lt;br /&gt;
To get a better video resolution on the final THP video you can use the following flags on the above command &amp;lt;code&amp;gt;-preset veryslow -b:v 21M&amp;lt;/code&amp;gt; (file size will increase a lot as &amp;lt;code&amp;gt;-b:v&amp;lt;/code&amp;gt; sets the bitrate of the output video). &amp;lt;code&amp;gt;21M&amp;lt;/code&amp;gt; was selected because of the bitrates of the OG THP videos on the MovieData folder (you can select any value you want, &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; means megabyte).&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create a folder named &amp;lt;code&amp;gt;temp&amp;lt;/code&amp;gt; in the same place the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; is and then type the following command (Fig. 2 and 3):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] temp\output%03d.jpg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will dump all the frames the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; has into JPG images.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-2.webp|right|thumb|Fig. 2 - Create temporal folder]]&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-3.webp|right|thumb|Fig. 3 - Dump temporal video frames into folder]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
JPG or JPEG can be used, the only restriction the THPConv docs say is that they need to be in the baseline DCT format (which ffmpeg automatically converts them to with the above command).&lt;br /&gt;
&lt;br /&gt;
The minimum frames a THP video can have without breaking the game is 21. Tested with &amp;lt;code&amp;gt;PrologueA.thp&amp;lt;/code&amp;gt; in Riivolution.&lt;br /&gt;
&lt;br /&gt;
Very low width and height values for the THP video (16x16 for example) will allow to show blue rectangles on the screen when reproducing the associated cutscene. Tested it very little so I am unsure if this happens all the time.&lt;br /&gt;
&lt;br /&gt;
To get a video resolution similar to the [temp_video] on your THP video you can use the following flag on the above command &amp;lt;code&amp;gt;-q:v 1&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, to get the audio part of the video execute (Fig. 4):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [temp_video] -acodec pcm_s16le -ar 32000 [WAV_audio].wav&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;[WAV_audio].wav&amp;lt;/code&amp;gt; is the name of the WAV audio file to use with THPConv.&lt;br /&gt;
&lt;br /&gt;
:This will convert the audio of the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; in a WAV audio using the pcm_s16le format.&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-4.webp|right|thumb|Fig. 4 - Create WAV audio file]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
WAV audios are the only audio input THPConv can process. Specifically non-compressed 16-bit PCM data ones.&lt;br /&gt;
&lt;br /&gt;
WAV audios can be Mono or Stereo, they are both supported by THPConv.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-ar 32000&amp;lt;/code&amp;gt; sets the frequency of the WAV audio. 32000 Hz is needed for the audio in SMG1 since different values make the audio sound at a higher or lower pitch.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, to get the THP converted file we do (Fig. 5):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;path\to\THPConv.exe -j temp\output*.jpg -s [WAV_audio].wav -r 59.94 -d [Output THP].thp -v&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-5.webp|right|thumb|Fig. 5 - Create THP file with THPConv]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
The &amp;lt;code&amp;gt;-j&amp;lt;/code&amp;gt; flag is used to select the JPEG sequential frames that are going to be used in the THP video.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; flag is used to select the WAV audio to be used in the THP video (optional).&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-r&amp;lt;/code&amp;gt; flag is used to set the frame rate of the THP video. If you want your video to reproduce normally on SMG1 use 59.94 as frame rate. If omitted THPConv will set the frame rate of the THP video to 29.97 fps.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-d&amp;lt;/code&amp;gt; flag is used to set the THP file creation path and name.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;-v&amp;lt;/code&amp;gt; flag is used to print more info on the CMD when THPConv is converting the JPG frames and WAV audio into a THP video (optional).&lt;br /&gt;
&lt;br /&gt;
To check more info on the commands THPConv has, check its documentation (Wii SDK or [[THPConv | here]]).&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can replace the THP file with the one you want from your SMG1 dump and test the video on game!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
You can use VLC Media Player to play/test THP videos as well as FFmpeg to convert THP videos to other video formats (you can&#039;t convert to THP with FFmpeg).&lt;br /&gt;
&lt;br /&gt;
When testing the THP video on console it is better to not use Riivolution but rather pack the THP into the WBFS file and run said WBFS in a USB Loader. Due to either Riivolution file copying velocity or how inefficient the THP processing algorhythm/video format is (or a combination of both) the video can&#039;t be reproduced at its normal speed when being replaced by Riivolution.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Thanks to Lord-Giganticus and EmilyTheDemon for their support during the guide!&#039;&#039;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=Whitehole&amp;diff=357</id>
		<title>Whitehole</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=Whitehole&amp;diff=357"/>
		<updated>2024-05-09T03:59:23Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: added some whitehole versions information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Whitehole is a Super Mario Galaxy 1 and 2 level editor written in the Java programming language.&lt;br /&gt;
&lt;br /&gt;
== Story and Development ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Whitehole&#039;&#039;&#039; is the successor to [[Anarchy in the Galaxy]] (sometimes just referred to as Anarchy). Both computer programs were developed as stage editors for the Super Mario Galaxy games, where Whitehole added many more features and built-in tools, and most notably, a 3D rendering of the stages (which Anarchy lacked).&lt;br /&gt;
&lt;br /&gt;
Development for Anarchy began sometime in early 2010 or 2011, some even believe before the 2nd Galaxy game came out, by a user(s) known as/by (???). The tool gained popularity as the online [[Kuribo64]] forums opened in 2012, which hosted many of the early Galaxy hacking scenes.&lt;br /&gt;
&lt;br /&gt;
Whitehole wouldn&#039;t begin development until 2012, when its earliest builds would be released to Kuribo64&#039;s uploader.&lt;br /&gt;
&lt;br /&gt;
From this day on; Whitehole, while other projects to replace it have occurred but all failed (Shibboleet&#039;s [[Takochu]], and SuperHackio&#039;s [[Starlight]], to name a few), still remains as the main stage editor for Galaxy hackers.&lt;br /&gt;
&lt;br /&gt;
== Versions ==&lt;br /&gt;
&lt;br /&gt;
There are several Whitehole versions in existence and people often get confused about which one to select. [[#anchor-neo | Whilehole Neo]] is the one of recommended use currently. You can get the Java Runtime Environment (JRE) versions for each Whitehole from [https://adoptium.net/temurin/releases/ here]&lt;br /&gt;
&lt;br /&gt;
==== Whitehole 1.6 ====&lt;br /&gt;
&lt;br /&gt;
This Whitehole version has features that were deleted on Whitehole 1.7. Works for SMG1/2. Requires JRE 8 to work.&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/TheSunCat/Whitehole GitHub Repository]&lt;br /&gt;
* [https://github.com/TheSunCat/Whitehole/releases/v1.6 Direct link to last release]&lt;br /&gt;
&lt;br /&gt;
To setup the object database, grab the &amp;lt;code&amp;gt;objectdb.xml&amp;lt;/code&amp;gt; from [https://raw.githubusercontent.com/SunakazeKun/galaxydatabase/main/objectdb.xml here] and put it in the same place as the &amp;lt;code&amp;gt;Whitehole.jar&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
==== Whitehole 1.7 ====&lt;br /&gt;
&lt;br /&gt;
Works for SMG1/2. Requires JRE 17 to work.&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/TheSunCat/Whitehole GitHub Repository]&lt;br /&gt;
* [https://github.com/TheSunCat/Whitehole/releases/tag/v1.7fix Direct link to last release]&lt;br /&gt;
&lt;br /&gt;
To setup the object database, grab the &amp;lt;code&amp;gt;objectdb.xml&amp;lt;/code&amp;gt; from [https://raw.githubusercontent.com/SunakazeKun/galaxydatabase/main/objectdb.xml here] and put it in the same place as the &amp;lt;code&amp;gt;Whitehole.jar&amp;lt;/code&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; To be able to open SMG1 with this version you have to follow some extra steps (it involves deleting unused SMG1 zones).&lt;br /&gt;
&lt;br /&gt;
==== Whitehole for SMG1 ====&lt;br /&gt;
&lt;br /&gt;
Only to be used with SMG1 and for its Zone-Layer built-in editor. Although you can use it to edit SMG1 levels if you want (you cannot update the object database). Requires JRE 8 to work.&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/SunakazeKun/Whitehole-for-SMG1 GitHub Repository]&lt;br /&gt;
* [https://github.com/SunakazeKun/Whitehole-for-SMG1/releases/tag/v1.0 Direct link to last release]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;anchor-despag&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
==== Whitehole Despaghettification ====&lt;br /&gt;
&lt;br /&gt;
Works with SMG1/2. Can run with JRE 11 up to 17.&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/SunakazeKun/Whitehole-Despaghettification GitHub Repository]&lt;br /&gt;
* [https://github.com/SunakazeKun/Whitehole-Despaghettification/releases/tag/Despag-01072023 Direct link to last release]&lt;br /&gt;
&lt;br /&gt;
The object database file &amp;lt;code&amp;gt;objectdb.json&amp;lt;/code&amp;gt; should be already in the &amp;lt;code&amp;gt;data&amp;lt;/code&amp;gt; folder of the tool so you don’t have to set anything up for it. Despag will auto update the object database each time it is ran.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;anchor-neo&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
==== Whitehole Neo ====&lt;br /&gt;
&lt;br /&gt;
Works with SMG1/2. Can run with JRE 11 up to 17. It is based on [[#anchor-despag | Whitehole Despaghettification]] and it is currently at its beta stage.&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/SMGCommunity/Whitehole-Neo GitHub Repository]&lt;br /&gt;
* [https://github.com/SMGCommunity/Whitehole-Neo/releases Link to beta releases]&lt;br /&gt;
&lt;br /&gt;
== Screenshots ==&lt;br /&gt;
&lt;br /&gt;
* TODO&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting == &lt;br /&gt;
&lt;br /&gt;
If executing Whitehole Despag or 1.7 from Windows and you experience issues (galaxies not opening or part of the rendering screen of the program is blue) paste the following line of code into a &amp;lt;code&amp;gt;Whitehole.bat&amp;lt;/code&amp;gt; file in the same place the &amp;lt;code&amp;gt;Whitehole.jar&amp;lt;/code&amp;gt; is and double click on it to run the program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
java --add-exports=java.desktop/sun.awt=ALL-UNNAMED -Dsun.java2d.uiScale=1.0 -jar Whitehole.jar&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If issues persist, report the bug in the respective tool repository or ask for help in a SMG modding related server. &lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
* If your computer has an old graphics card then Whitehole might not render the galaxies corrently. Specifically, Whitehole 1.7 does not work well under Intel Integrated Graphics.&lt;br /&gt;
* Whitehole Despag downloads automatically (each time it is started) its object database.&lt;br /&gt;
* Newer object databases don&#039;t work for Whitehole for SMG1.&lt;br /&gt;
* Whitehole Despag does not render gravity areas.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/Astral-C/StarForge Starforge]&lt;br /&gt;
&lt;br /&gt;
[[Category:Stage editors]]&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=305</id>
		<title>THPConv-Guide</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=305"/>
		<updated>2023-05-15T22:52:38Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is created specifically to make THP videos for SMG1. Other games that support THP can have a different THP setup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ##### --&amp;gt;&lt;br /&gt;
&amp;lt;!-- TOOLS --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;Required Tools&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* FFmpeg ([https://web.archive.org/web/20200901234146/https://ffmpeg.zeranoe.com/builds/win32/static/ Win32 older builds], for Linux you can use your package manager)&lt;br /&gt;
&lt;br /&gt;
* THPConv.exe (with dsptool.dll, [https://archive.org/details/WiiDevelopmentPackage/ Wii SDK])&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv Alternative THPConv build] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC Media Player] (to reproduce THP files)&lt;br /&gt;
&lt;br /&gt;
* [https://www.winehq.org/ Wine] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ##### --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- STEPS --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;Steps&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Open a &amp;lt;b&amp;gt;CMD&amp;lt;/b&amp;gt; in the same place the video you want to convert is and type the following command (&amp;lt;b&amp;gt;Fig. 1&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;path\to\ffmpeg.exe -i [input_video] -vf scale=&amp;quot;[width]:[height]&amp;quot; -r [fps] [temp_video]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[input_video]&amp;lt;/code&amp;gt; is the &amp;lt;b&amp;gt;video of your choice to convert&amp;lt;/b&amp;gt;. Can be &amp;lt;b&amp;gt;any&amp;lt;/b&amp;gt; video format.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[width]&amp;lt;/code&amp;gt; is the &amp;lt;b&amp;gt;width&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. &amp;lt;b&amp;gt;Cannot exceed 672 pixels&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[height]&amp;lt;/code&amp;gt; is the &amp;lt;b&amp;gt;height&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. There is &amp;lt;b&amp;gt;no limit&amp;lt;/b&amp;gt; on this value.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[fps]&amp;lt;/code&amp;gt; are the &amp;lt;b&amp;gt;frames per second&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. &amp;lt;b&amp;gt;Frame rates&amp;lt;/b&amp;gt; can be from &amp;lt;b&amp;gt;1.0&amp;lt;/b&amp;gt; to &amp;lt;b&amp;gt;59.94&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-1.webp|center|frame|&amp;lt;b&amp;gt;Fig. 1 - Create temp video&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; All this information is extracted from the &amp;lt;b&amp;gt;Wii SDK docs&amp;lt;/b&amp;gt; for &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; SMG uses &amp;lt;b&amp;gt;59.94 fps&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;640x368 video dimensions&amp;lt;/b&amp;gt; for all &amp;lt;b&amp;gt;THP files&amp;lt;/b&amp;gt; in the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;folder&amp;lt;/b&amp;gt;. Use &amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [THP video file]&amp;lt;/code&amp;gt; to see it yourself.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; if you use &amp;lt;b&amp;gt;different frame rates&amp;lt;/b&amp;gt; than &amp;lt;b&amp;gt;59.94&amp;lt;/b&amp;gt; the video on SMG1 will play &amp;lt;b&amp;gt;slower or faster&amp;lt;/b&amp;gt; but not at its &amp;quot;normal&amp;quot; speed.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 4:&amp;lt;/b&amp;gt; You can use different values for the &amp;lt;b&amp;gt;width and height&amp;lt;/b&amp;gt; of the video, be sure they follow the rules said above and that &amp;lt;b&amp;gt;the dimensions are a multiple of 16&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 5:&amp;lt;/b&amp;gt; To get a &amp;lt;b&amp;gt;better video resolution&amp;lt;/b&amp;gt; on the final &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; you can use the following flags on the above command &amp;lt;code&amp;gt;-preset veryslow -b:v 21M&amp;lt;/code&amp;gt; (file size will increase a lot as &amp;lt;code&amp;gt;-b:v&amp;lt;/code&amp;gt; sets the &amp;lt;b&amp;gt;bitrate&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;output video&amp;lt;/b&amp;gt;). &amp;lt;code&amp;gt;21M&amp;lt;/code&amp;gt; was selected because of the &amp;lt;b&amp;gt;bitrates&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;OG THP videos&amp;lt;/b&amp;gt; on the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;folder&amp;lt;/b&amp;gt; (you can select any value you want, &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; means &amp;lt;b&amp;gt;megabyte&amp;lt;/b&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Create a folder &amp;lt;b&amp;gt;named&amp;lt;/b&amp;gt; &amp;lt;code&amp;gt;temp&amp;lt;/code&amp;gt; in the same place the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; is and then type the following command (&amp;lt;b&amp;gt;Fig. 2 and 3&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;path\to\ffmpeg.exe -i [temp_video] temp\output%03d.jpg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;This will dump &amp;lt;b&amp;gt;all the frames&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; has into &amp;lt;b&amp;gt;JPG images&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-2.webp|center|frame|&amp;lt;b&amp;gt;Fig. 2 - Create temp folder&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide Fig-3.webp|center|frame|&amp;lt;b&amp;gt;Fig. 3 - Dump temp video frames into folder&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 6:&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;JPG&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;JPEG&amp;lt;/b&amp;gt; can be used, the only restriction the &amp;lt;b&amp;gt;THPConv docs&amp;lt;/b&amp;gt; say is that they need to be in the :&amp;lt;b&amp;gt;baseline DCT format&amp;lt;/b&amp;gt; (which &amp;lt;b&amp;gt;ffmpeg&amp;lt;/b&amp;gt; automatically converts them to with the above command).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 7:&amp;lt;/b&amp;gt; The minimum frames a &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; can have without breaking the game is &amp;lt;b&amp;gt;21&amp;lt;/b&amp;gt;. Tested with &amp;lt;code&amp;gt;PrologueA.thp&amp;lt;/code&amp;gt; in &amp;lt;b&amp;gt;Riivolution&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 8:&amp;lt;/b&amp;gt; Very low &amp;lt;b&amp;gt;width&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;height&amp;lt;/b&amp;gt; values for the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; (&amp;lt;b&amp;gt;16x16&amp;lt;/b&amp;gt; for example) will allow to show :&amp;lt;b&amp;gt;blue rectangles&amp;lt;/b&amp;gt; on the screen when reproducing the associated &amp;lt;b&amp;gt;cutscene&amp;lt;/b&amp;gt;. Tested it very little so I am unsure if this happens all the time.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 9:&amp;lt;/b&amp;gt; To get a &amp;lt;b&amp;gt;video resolution&amp;lt;/b&amp;gt; similar to the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; on your &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; you can use the following flag on the above command &amp;lt;code&amp;gt;-q:v 1&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Then, to get the &amp;lt;b&amp;gt;audio part&amp;lt;/b&amp;gt; of the video execute (&amp;lt;b&amp;gt;Fig. 4&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;path\to\ffmpeg.exe -i [temp_video] -acodec pcm_s16le -ar 32000 [WAV_audio].wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[WAV_audio].wav&amp;lt;/code&amp;gt; is the name of the &amp;lt;b&amp;gt;WAV audio file&amp;lt;/b&amp;gt; to use with &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;This will convert the &amp;lt;b&amp;gt;audio&amp;lt;/b&amp;gt; of the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; in a &amp;lt;b&amp;gt;WAV audio&amp;lt;/b&amp;gt; using the &amp;lt;b&amp;gt;pcm_s16le format&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-4.webp|center|frame|&amp;lt;b&amp;gt;Fig. 4 - Create WAV audio file&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 10:&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;WAV audios&amp;lt;/b&amp;gt; are the only audio input &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt; can process. Specifically &amp;lt;b&amp;gt;non-compressed 16-bit PCM data&amp;lt;/b&amp;gt; ones.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 11:&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;WAV audios&amp;lt;/b&amp;gt; can be &amp;lt;b&amp;gt;Mono&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;Stereo&amp;lt;/b&amp;gt;, they are both supported by &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 12:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-ar 32000&amp;lt;/code&amp;gt; sets the &amp;lt;b&amp;gt;frequency&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;WAV audio&amp;lt;/b&amp;gt;. &amp;lt;b&amp;gt;32000 Hz&amp;lt;/b&amp;gt; is needed for the audio in SMG1 since different values make the audio sound at a &amp;lt;b&amp;gt;higher or lower pitch&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Finally&amp;lt;/b&amp;gt;, to get the &amp;lt;b&amp;gt;THP&amp;lt;/b&amp;gt; converted file we do (&amp;lt;b&amp;gt;Fig. 5&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;path\to\THPConv.exe -j temp\output*.jpg -s [WAV_audio].wav -r 59.94 -d [Output THP].thp -v&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:THPConv-Guide_Fig-5.webp|center|frame|&amp;lt;b&amp;gt;Fig. 5 - Create THP file with THPConv&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 13:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-j&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to select the &amp;lt;b&amp;gt;JPEG sequential frames&amp;lt;/b&amp;gt; that are going to be used in the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 14:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to select the &amp;lt;b&amp;gt;WAV audio&amp;lt;/b&amp;gt; to be used in the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; (optional).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 15:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-r&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to set the &amp;lt;b&amp;gt;frame rate&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt;. If you want your video to reproduce normally on SMG1 use &amp;lt;b&amp;gt;59.94&amp;lt;/b&amp;gt; as &amp;lt;b&amp;gt;frame rate&amp;lt;/b&amp;gt;. If omitted &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt; will set the &amp;lt;b&amp;gt;frame rate&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; to &amp;lt;b&amp;gt;29.97 fps&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 16:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-d&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to set the &amp;lt;b&amp;gt;THP&amp;lt;/b&amp;gt; file creation path and name.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 17:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-v&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to &amp;lt;b&amp;gt;print more info&amp;lt;/b&amp;gt; on the &amp;lt;b&amp;gt;CMD&amp;lt;/b&amp;gt; when &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt; is converting the &amp;lt;b&amp;gt;JPG frames&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;WAV audio&amp;lt;/b&amp;gt; into a &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; (optional).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 18:&amp;lt;/b&amp;gt; to check more info on the commands &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt; has, check its documentation (&amp;lt;b&amp;gt;Wii SDK&amp;lt;/b&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Now you can replace the &amp;lt;b&amp;gt;THP file&amp;lt;/b&amp;gt; with the one you want from your &amp;lt;b&amp;gt;SMG1 dump&amp;lt;/b&amp;gt; and test the video on game!&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 19:&amp;lt;/b&amp;gt; You can use &amp;lt;b&amp;gt;VLC Media Player&amp;lt;/b&amp;gt; to play/test &amp;lt;b&amp;gt;THP videos&amp;lt;/b&amp;gt; as well as &amp;lt;b&amp;gt;FFmpeg&amp;lt;/b&amp;gt; to convert &amp;lt;b&amp;gt;THP videos&amp;lt;/b&amp;gt; to other &amp;lt;b&amp;gt;video formats&amp;lt;/b&amp;gt; (you can&#039;t convert to &amp;lt;b&amp;gt;THP&amp;lt;/b&amp;gt; with &amp;lt;b&amp;gt;FFmpeg&amp;lt;/b&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 20:&amp;lt;/b&amp;gt; When testing the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; on &amp;lt;b&amp;gt;console&amp;lt;/b&amp;gt; it is better to not use &amp;lt;b&amp;gt;Riivolution&amp;lt;/b&amp;gt; but rather pack the &amp;lt;b&amp;gt;THP&amp;lt;/b&amp;gt; into the &amp;lt;b&amp;gt;WBFS file&amp;lt;/b&amp;gt; and run said &amp;lt;b&amp;gt;WBFS&amp;lt;/b&amp;gt; in a &amp;lt;b&amp;gt;USB Loader&amp;lt;/b&amp;gt;. Due to either &amp;lt;b&amp;gt;Riivolution&amp;lt;/b&amp;gt; file copying velocity or how inefficient the &amp;lt;b&amp;gt;THP processing algorhythm/video format&amp;lt;/b&amp;gt; is (or a combination of both) the video can&#039;t be reproduced at its &amp;lt;b&amp;gt;normal speed&amp;lt;/b&amp;gt; when being replaced by &amp;lt;b&amp;gt;Riivolution&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Thanks to &amp;lt;b&amp;gt;Lord-Giganticus&amp;lt;/b&amp;gt; for his guidence and &amp;lt;b&amp;gt;EmilyTheDemon&amp;lt;/b&amp;gt; for her enthusiasm. Tutorial based on the [https://luma.aurumsmods.com/wiki/THPConv.exe &amp;lt;b&amp;gt;Luma&#039;s Workshop Wiki&amp;lt;/b&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-5.webp&amp;diff=304</id>
		<title>File:THPConv-Guide Fig-5.webp</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-5.webp&amp;diff=304"/>
		<updated>2023-05-15T22:42:28Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: Fig. 5 for THPConv-Guide page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Fig. 5 for THPConv-Guide page&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-4.webp&amp;diff=303</id>
		<title>File:THPConv-Guide Fig-4.webp</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-4.webp&amp;diff=303"/>
		<updated>2023-05-15T22:41:50Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: Fig. 4 for THPConv-Guide page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Fig. 4 for THPConv-Guide page&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-3.webp&amp;diff=302</id>
		<title>File:THPConv-Guide Fig-3.webp</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-3.webp&amp;diff=302"/>
		<updated>2023-05-15T22:41:23Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: Fig. 3 for THPConv-Guide page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Fig. 3 for THPConv-Guide page&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-2.webp&amp;diff=301</id>
		<title>File:THPConv-Guide Fig-2.webp</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-2.webp&amp;diff=301"/>
		<updated>2023-05-15T22:40:42Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: Fig. 2 for THPConv-Guide page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Fig. 2 for THPConv-Guide page&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-1.webp&amp;diff=300</id>
		<title>File:THPConv-Guide Fig-1.webp</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=File:THPConv-Guide_Fig-1.webp&amp;diff=300"/>
		<updated>2023-05-15T13:38:54Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: Fig. 1 for THPConv-Guide page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Fig. 1 for THPConv-Guide page&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=299</id>
		<title>THPConv-Guide</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv-Guide&amp;diff=299"/>
		<updated>2023-05-15T13:36:42Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: Created page with &amp;quot;This guide is created specifically to make THP videos for SMG1. Other games that support THP can have a different THP setup.   &amp;lt;!-- ##### --&amp;gt; &amp;lt;!-- TOOLS --&amp;gt;  &amp;lt;h1&amp;gt;Required Tools&amp;lt;/h1&amp;gt;  * FFmpeg ([https://web.archive.org/web/20200901234146/https://ffmpeg.zeranoe.com/builds/win32/static/ Win32 older builds], for Linux you can use your package manager)  * THPConv.exe (with dsptool.dll, [https://archive.org/details/WiiDevelopmentPackage/ Wii SDK])  * [https://github.com/Master...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is created specifically to make THP videos for SMG1. Other games that support THP can have a different THP setup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ##### --&amp;gt;&lt;br /&gt;
&amp;lt;!-- TOOLS --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;Required Tools&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* FFmpeg ([https://web.archive.org/web/20200901234146/https://ffmpeg.zeranoe.com/builds/win32/static/ Win32 older builds], for Linux you can use your package manager)&lt;br /&gt;
&lt;br /&gt;
* THPConv.exe (with dsptool.dll, [https://archive.org/details/WiiDevelopmentPackage/ Wii SDK])&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv Alternative THPConv build] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC Media Player] (to reproduce THP files)&lt;br /&gt;
&lt;br /&gt;
* [https://www.winehq.org/ Wine] (for Linux users)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ##### --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- STEPS --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;Steps&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Open a &amp;lt;b&amp;gt;CMD&amp;lt;/b&amp;gt; in the same place the video you want to convert is and type the following command (&amp;lt;b&amp;gt;Fig. 1&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;path\to\ffmpeg.exe -i [input_video] -vf scale=&amp;quot;[width]:[height]&amp;quot; -r [fps] [temp_video]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[input_video]&amp;lt;/code&amp;gt; is the &amp;lt;b&amp;gt;video of your choice to convert&amp;lt;/b&amp;gt;. Can be &amp;lt;b&amp;gt;any&amp;lt;/b&amp;gt; video format.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[width]&amp;lt;/code&amp;gt; is the &amp;lt;b&amp;gt;width&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. &amp;lt;b&amp;gt;Cannot exceed 672 pixels&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[height]&amp;lt;/code&amp;gt; is the &amp;lt;b&amp;gt;height&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. There is &amp;lt;b&amp;gt;no limit&amp;lt;/b&amp;gt; on this value.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[fps]&amp;lt;/code&amp;gt; are the &amp;lt;b&amp;gt;frames per second&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; will have. &amp;lt;b&amp;gt;Frame rates&amp;lt;/b&amp;gt; can be from &amp;lt;b&amp;gt;1.0&amp;lt;/b&amp;gt; to &amp;lt;b&amp;gt;59.94&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Example.jpg|center|frame|&amp;lt;b&amp;gt;Fig. 1 - Create temp video&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; All this information is extracted from the &amp;lt;b&amp;gt;Wii SDK docs&amp;lt;/b&amp;gt; for &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; SMG uses &amp;lt;b&amp;gt;59.94 fps&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;640x368 video dimensions&amp;lt;/b&amp;gt; for all &amp;lt;b&amp;gt;THP files&amp;lt;/b&amp;gt; in the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;folder&amp;lt;/b&amp;gt;. Use &amp;lt;code&amp;gt;path\to\ffmpeg.exe -i [THP video file]&amp;lt;/code&amp;gt; to see it yourself.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; if you use &amp;lt;b&amp;gt;different frame rates&amp;lt;/b&amp;gt; than &amp;lt;b&amp;gt;59.94&amp;lt;/b&amp;gt; the video on SMG1 will play &amp;lt;b&amp;gt;slower or faster&amp;lt;/b&amp;gt; but not at its &amp;quot;normal&amp;quot; speed.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 4:&amp;lt;/b&amp;gt; You can use different values for the &amp;lt;b&amp;gt;width and height&amp;lt;/b&amp;gt; of the video, be sure they follow the rules said above and that &amp;lt;b&amp;gt;the dimensions are a multiple of 16&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 5:&amp;lt;/b&amp;gt; To get a &amp;lt;b&amp;gt;better video resolution&amp;lt;/b&amp;gt; on the final &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; you can use the following flags on the above command &amp;lt;code&amp;gt;-preset veryslow -b:v 21M&amp;lt;/code&amp;gt; (file size will increase a lot as &amp;lt;code&amp;gt;-b:v&amp;lt;/code&amp;gt; sets the &amp;lt;b&amp;gt;bitrate&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;output video&amp;lt;/b&amp;gt;). &amp;lt;code&amp;gt;21M&amp;lt;/code&amp;gt; was selected because of the &amp;lt;b&amp;gt;bitrates&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;OG THP videos&amp;lt;/b&amp;gt; on the &amp;lt;code&amp;gt;MovieData&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;folder&amp;lt;/b&amp;gt; (you can select any value you want, &amp;lt;code&amp;gt;M&amp;lt;/code&amp;gt; means &amp;lt;b&amp;gt;megabyte&amp;lt;/b&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Create a folder &amp;lt;b&amp;gt;named&amp;lt;/b&amp;gt; &amp;lt;code&amp;gt;temp&amp;lt;/code&amp;gt; in the same place the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; is and then type the following command (&amp;lt;b&amp;gt;Fig. 2 and 3&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;path\to\ffmpeg.exe -i [temp_video] temp\output%03d.jpg&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;This will dump &amp;lt;b&amp;gt;all the frames&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; has into &amp;lt;b&amp;gt;JPG images&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Example.jpg|center|frame|&amp;lt;b&amp;gt;Fig. 2 - Create temp folder&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Example.jpg|center|frame|&amp;lt;b&amp;gt;Fig. 3 - Dump temp video frames into folder&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 6:&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;JPG&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;JPEG&amp;lt;/b&amp;gt; can be used, the only restriction the &amp;lt;b&amp;gt;THPConv docs&amp;lt;/b&amp;gt; say is that they need to be in the :&amp;lt;b&amp;gt;baseline DCT format&amp;lt;/b&amp;gt; (which &amp;lt;b&amp;gt;ffmpeg&amp;lt;/b&amp;gt; automatically converts them to with the above command).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 7:&amp;lt;/b&amp;gt; The minimum frames a &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; can have without breaking the game is &amp;lt;b&amp;gt;21&amp;lt;/b&amp;gt;. Tested with &amp;lt;code&amp;gt;PrologueA.thp&amp;lt;/code&amp;gt; in &amp;lt;b&amp;gt;Riivolution&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 8:&amp;lt;/b&amp;gt; Very low &amp;lt;b&amp;gt;width&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;height&amp;lt;/b&amp;gt; values for the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; (&amp;lt;b&amp;gt;16x16&amp;lt;/b&amp;gt; for example) will allow to show :&amp;lt;b&amp;gt;blue rectangles&amp;lt;/b&amp;gt; on the screen when reproducing the associated &amp;lt;b&amp;gt;cutscene&amp;lt;/b&amp;gt;. Tested it very little so I am unsure if this happens all the time.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 9:&amp;lt;/b&amp;gt; To get a &amp;lt;b&amp;gt;video resolution&amp;lt;/b&amp;gt; similar to the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; on your &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; you can use the following flag on the above command &amp;lt;code&amp;gt;-q:v 1&amp;lt;/code&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Then, to get the &amp;lt;b&amp;gt;audio part&amp;lt;/b&amp;gt; of the video execute (&amp;lt;b&amp;gt;Fig. 4&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;path\to\ffmpeg.exe -i [temp_video] -acodec pcm_s16le -ar 32000 [WAV_audio].wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;p&amp;gt;&amp;lt;code&amp;gt;[WAV_audio].wav&amp;lt;/code&amp;gt; is the name of the &amp;lt;b&amp;gt;WAV audio file&amp;lt;/b&amp;gt; to use with &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;This will convert the &amp;lt;b&amp;gt;audio&amp;lt;/b&amp;gt; of the &amp;lt;code&amp;gt;[temp_video]&amp;lt;/code&amp;gt; in a &amp;lt;b&amp;gt;WAV audio&amp;lt;/b&amp;gt; using the &amp;lt;b&amp;gt;pcm_s16le format&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Example.jpg|center|frame|&amp;lt;b&amp;gt;Fig. 4 - Create WAV audio file&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 10:&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;WAV audios&amp;lt;/b&amp;gt; are the only audio input &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt; can process. Specifically &amp;lt;b&amp;gt;non-compressed 16-bit PCM data&amp;lt;/b&amp;gt; ones.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 11:&amp;lt;/b&amp;gt; &amp;lt;b&amp;gt;WAV audios&amp;lt;/b&amp;gt; can be &amp;lt;b&amp;gt;Mono&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;Stereo&amp;lt;/b&amp;gt;, they are both supported by &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 12:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-ar 32000&amp;lt;/code&amp;gt; sets the &amp;lt;b&amp;gt;frequency&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;WAV audio&amp;lt;/b&amp;gt;. &amp;lt;b&amp;gt;32000 Hz&amp;lt;/b&amp;gt; is needed for the audio in SMG1 since different values make the audio sound at a &amp;lt;b&amp;gt;higher or lower pitch&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Finally&amp;lt;/b&amp;gt;, to get the &amp;lt;b&amp;gt;THP&amp;lt;/b&amp;gt; converted file we do (&amp;lt;b&amp;gt;Fig. 5&amp;lt;/b&amp;gt;):&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;path\to\THPConv.exe -j temp\output*.jpg -s [WAV_audio].wav -r 59.94 -d [Output THP].thp -v&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:Example.jpg|center|frame|&amp;lt;b&amp;gt;Fig. 5 - Create THP file with THPConv&amp;lt;/b&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 13:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-j&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to select the &amp;lt;b&amp;gt;JPEG sequential frames&amp;lt;/b&amp;gt; that are going to be used in the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 14:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-s&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to select the &amp;lt;b&amp;gt;WAV audio&amp;lt;/b&amp;gt; to be used in the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; (optional).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 15:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-r&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to set the &amp;lt;b&amp;gt;frame rate&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt;. If you want your video to reproduce normally on SMG1 use &amp;lt;b&amp;gt;59.94&amp;lt;/b&amp;gt; as &amp;lt;b&amp;gt;frame rate&amp;lt;/b&amp;gt;. If omitted &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt; will set the &amp;lt;b&amp;gt;frame rate&amp;lt;/b&amp;gt; of the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; to &amp;lt;b&amp;gt;29.97 fps&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 16:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-d&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to set the &amp;lt;b&amp;gt;THP&amp;lt;/b&amp;gt; file creation path and name.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 17:&amp;lt;/b&amp;gt; the &amp;lt;code&amp;gt;-v&amp;lt;/code&amp;gt; &amp;lt;b&amp;gt;flag&amp;lt;/b&amp;gt; is used to &amp;lt;b&amp;gt;print more info&amp;lt;/b&amp;gt; on the &amp;lt;b&amp;gt;CMD&amp;lt;/b&amp;gt; when &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt; is converting the &amp;lt;b&amp;gt;JPG frames&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;WAV audio&amp;lt;/b&amp;gt; into a &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; (optional).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 18:&amp;lt;/b&amp;gt; to check more info on the commands &amp;lt;b&amp;gt;THPConv&amp;lt;/b&amp;gt; has, check its documentation (&amp;lt;b&amp;gt;Wii SDK&amp;lt;/b&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Now you can replace the &amp;lt;b&amp;gt;THP file&amp;lt;/b&amp;gt; with the one you want from your &amp;lt;b&amp;gt;SMG1 dump&amp;lt;/b&amp;gt; and test the video on game!&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 19:&amp;lt;/b&amp;gt; You can use &amp;lt;b&amp;gt;VLC Media Player&amp;lt;/b&amp;gt; to play/test &amp;lt;b&amp;gt;THP videos&amp;lt;/b&amp;gt; as well as &amp;lt;b&amp;gt;FFmpeg&amp;lt;/b&amp;gt; to convert &amp;lt;b&amp;gt;THP videos&amp;lt;/b&amp;gt; to other &amp;lt;b&amp;gt;video formats&amp;lt;/b&amp;gt; (you can&#039;t convert to &amp;lt;b&amp;gt;THP&amp;lt;/b&amp;gt; with &amp;lt;b&amp;gt;FFmpeg&amp;lt;/b&amp;gt;).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 20:&amp;lt;/b&amp;gt; When testing the &amp;lt;b&amp;gt;THP video&amp;lt;/b&amp;gt; on &amp;lt;b&amp;gt;console&amp;lt;/b&amp;gt; it is better to not use &amp;lt;b&amp;gt;Riivolution&amp;lt;/b&amp;gt; but rather pack the &amp;lt;b&amp;gt;THP&amp;lt;/b&amp;gt; into the &amp;lt;b&amp;gt;WBFS file&amp;lt;/b&amp;gt; and run said &amp;lt;b&amp;gt;WBFS&amp;lt;/b&amp;gt; in a &amp;lt;b&amp;gt;USB Loader&amp;lt;/b&amp;gt;. Due to either &amp;lt;b&amp;gt;Riivolution&amp;lt;/b&amp;gt; file copying velocity or how inefficient the &amp;lt;b&amp;gt;THP processing algorhythm/video format&amp;lt;/b&amp;gt; is (or a combination of both) the video can&#039;t be reproduced at its &amp;lt;b&amp;gt;normal speed&amp;lt;/b&amp;gt; when being replaced by &amp;lt;b&amp;gt;Riivolution&amp;lt;/b&amp;gt;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;p&amp;gt;Thanks to &amp;lt;b&amp;gt;Lord-Giganticus&amp;lt;/b&amp;gt; for his guidence and &amp;lt;b&amp;gt;EmilyTheDemon&amp;lt;/b&amp;gt; for her enthusiasm. Tutorial based on the [https://luma.aurumsmods.com/wiki/THPConv.exe &amp;lt;b&amp;gt;Luma&#039;s Workshop Wiki&amp;lt;/b&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=294</id>
		<title>THPConv</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=294"/>
		<updated>2023-05-02T00:11:01Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tools]]{{SDK Reference}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; is a prebuilt Win32 console application that Nintendo provides in the Wii and GCN SDKs. It is used to convert sequential JPEG images into a THP video format (with an option to include audio into it from a WAV audio file) and to include/replace audio of an existent THP video. It needs the &#039;&#039;&#039;dsptool.dll&#039;&#039;&#039; file to work.&lt;br /&gt;
&lt;br /&gt;
There is a similar program called &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; included alonside &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; and according to the Wii SDK docs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;i&amp;gt;there is no difference in how the two behave. Normally you should use THPConv.exe. THPConvD.exe remains in order to maintain compatibility with past systems.&amp;lt;/i&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So you may use either &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; or &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; to make/edit THP files (be sure to have the respective &#039;&#039;&#039;dsptoolD.dll&#039;&#039;&#039; for &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
Linux users can use [https://www.winehq.org/ Wine] to run both programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;Converting Sequential JPEG files to THP Movie Data&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Description&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following describes how to use the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool to convert &#039;&#039;&#039;Sequential JPEG files&#039;&#039;&#039; to &#039;&#039;&#039;THP movie data&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -j &amp;amp;lt;*.jpg&amp;amp;gt; -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-j&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;*.jpg&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input files (sequential JPEG files). Wildcard characters (&amp;quot;*&amp;quot;) can be used. This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the audio file (WAV file) that will be converted to THP audio data. When specifying more than one file for the argument, data is allocated to audio tracks in the order it is specified.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;. When interlace starts from an even numbered field, specify &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt;. If this argument is not specified, the THP video data format is automatically set to non-interlaced (&amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Example&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -j test*.jpg -d output.thp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;When this example is executed from a command line, the sequential JPEG files in the current directory (test001.jpg, test002.jpg, test003.jpg, etc.) are converted to THP video data and collected into a single THP movie data file (output.thp). No WAV audio is specified so the THP video will be just video without audio.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Notes&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; When converting sequential JPEG files to THP movie data, the names of the specified input files must have the extension &amp;quot;.jpg&amp;quot; or &amp;quot;.jpeg&amp;quot;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;Changing THP Audio Data in THP Movie Data&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that some of the commands options above are the same here (being those &#039;&#039;&#039;-s&#039;&#039;&#039;, &#039;&#039;&#039;-d&#039;&#039;&#039;, &#039;&#039;&#039;-r&#039;&#039;&#039;, &#039;&#039;&#039;-o&#039;&#039;&#039;, &#039;&#039;&#039;-non&#039;&#039;&#039;, &#039;&#039;&#039;-even&#039;&#039;&#039;, &#039;&#039;&#039;-odd&#039;&#039;&#039;, &#039;&#039;&#039;-v&#039;&#039;&#039;, &#039;&#039;&#039;-h&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Description&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Below are the instructions for using the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool to change the THP audio data in &#039;&#039;&#039;THP Movie Data&#039;&#039;&#039;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -c &amp;amp;lt;inputfile&amp;amp;gt; -s &amp;amp;lt;wavefile&amp;amp;gt; &amp;amp;lt;wavefile&amp;amp;gt;... -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;border: none;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-c&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;inputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input file (THP file). This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the replacing sound file (&#039;&#039;&#039;WAV file&#039;&#039;&#039;). &amp;lt;br&amp;gt;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). If this argument is not given, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will &amp;lt;strong&amp;gt;overwrite the input file.&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;. When interlace starts from an even numbered field, specify &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt;. If this argument is not specified, the THP video data format will be automatically set to non-interlaced (&amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-trk&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;track No.&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;If you only want to replace a single audio track dataset, use this option instead of &amp;lt;b&amp;gt;-s&amp;lt;/b&amp;gt;. 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 &amp;lt;b&amp;gt;-r&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-o&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;, and &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt; options. This option can only be used with the THP file formats that support multitracks.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Notes&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; When the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 4:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 5:&amp;lt;/b&amp;gt; Unlike the Nintendo GameCube, audio data on the Wii console is output at a set playback frequency (48,000 Hz or 32,000 Hz).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;Compatible file formats for THPConv&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;Sequential JPEG File Format&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool can convert a group of sequential JPEG files having sequence numbers at the end of their filenames (indicating the playback order) to THP movie data. When interleaving audio data in sequential JPEG files, you must either specify the WAV files by using the &amp;lt;b&amp;gt;-s&amp;lt;/b&amp;gt; option at the time the sequential JPEG files are converted, or add the WAV files after conversion. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
The following restrictions apply to groups of sequential JPEG files that can be handled with the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;All JPEG files to be collected into a single THP movie dataset must have the same number of pixels in the horizontal and vertical directions.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; The group of sequential JPEG files must have sequence numbers (corresponding to frame numbers) appended to the end of their filenames.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; The number of the JPEG file corresponding to the initial frame of the THP movie data can be any number. However, the numbers of all files thereafter must be sequential.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; Please add leading zeros to the frame numbers appended to the filenames so that they all match the number of digits in the last frame.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The following restrictions apply to each file in a group of sequential JPEG files:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only the JPEG baseline DCT format is supported.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only sequential encoding is supported.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only supports a sample rate of 4:2:0.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;The pixel counts in both the horizontal and vertical directions must be a multiple of 16.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;The maximum pixel count in the horizontal direction is 672 dots. There is no restriction on the pixel count in the vertical direction.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If the sequential JPEG files do not meet these requirements, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will output an error and stop processing.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Example&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To create four seconds of THP movie data at 30 FPS from sequential JPEG files, the numbers of the sequential JPEG files (testxxx.jpg) should look like the following:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 1 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test001.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 2 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test002.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 3 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test003.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;51 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test051.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;52 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test052.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;118 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test118.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;119 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test119.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;120 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test120.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;WAV file format&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Description&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool can convert a general WAV file to THP audio data and interleave it with THP movie data. The following restrictions apply to WAV files that can be converted by the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
- &amp;lt;b&amp;gt;They must be non-compressed 16-bit PCM data.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
- &amp;lt;b&amp;gt;Monaural (one channel) and stereo (two channels) are supported.&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If the wav file does not meet these requirements, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will output an error and stop processing.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Notes&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt;&amp;lt;/strong&amp;gt; Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE 2: &amp;lt;/b&amp;gt; WAV files having a playback frequency other than 48,000Hz or 32,000Hz can be specified in &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt;. When playing THP movie data created with such WAV files, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Even if you created THP movie data specifying wav files with a playback frequency of 48,000Hz or 32,000Hz, if the playback frequency setting on the Wii is different, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; If you want the THP movie data to contain more than one audio data set, make sure the channel counts and playback frequencies for all data sets are the same.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= Creating a THP video for SMG =&lt;br /&gt;
&#039;&#039;THPConv.exe is originally a Windows binary, but a port to Linux exits. You can find it [https://github.com/MasterofGalaxies/THPConv here]&#039;&#039;&lt;br /&gt;
# Run the following in a shell program: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -vf scale=640:368 temp\frame%03d.jpg&#039;&#039; (Replace Input.mp4 and temp with what you want)&lt;br /&gt;
# If you are going to make the video have audio run this: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -f u16be audio.wav&#039;&#039; (Replace Input.mp4 and audio.wav with what you want)&lt;br /&gt;
# Then, run this if you are not making a video with audio: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -d output.thp&#039;&#039; (Replace temp and output.thp with what you want)&lt;br /&gt;
# If you DO want audio, run this instead: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -s audio.wav -d output.thp&#039;&#039; (Replace temp, audio.wav, and output.thp with what you want)&lt;br /&gt;
# Attempt replacing one of the THP Videos in [[File_system#MovieData|MovieData]] and see if it works.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=293</id>
		<title>THPConv</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=293"/>
		<updated>2023-04-30T15:22:06Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: English skill issue on my end&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tools]]{{SDK Reference}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; is a prebuilt Win32 console application that Nintendo provides in the Wii and GCN SDKs. It is used to convert sequential JPEG images into a THP video format (with an option to include audio into it from a WAV audio file) and to include/replace audio of an existent THP video. It needs the &#039;&#039;&#039;dsptool.dll&#039;&#039;&#039; file to work.&lt;br /&gt;
&lt;br /&gt;
There is a similar program called &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; included alonside &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; and according to the Wii SDK docs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;i&amp;gt;there is no difference in how the two behave. Normally you should use THPConv.exe. THPConvD.exe remains in order to maintain compatibility with past systems.&amp;lt;/i&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So you may use either &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; or &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; to make/edit THP files (be sure to have the respective &#039;&#039;&#039;dsptoolD.dll&#039;&#039;&#039; for &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
Linux users can use [https://www.winehq.org/ Wine] to run both programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Converting Sequential JPEG files to THP Movie Data&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following describes how to use the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool to convert &#039;&#039;&#039;Sequential JPEG files&#039;&#039;&#039; to &#039;&#039;&#039;THP movie data&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -j &amp;amp;lt;*.jpg&amp;amp;gt; -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-j&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;*.jpg&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input files (sequential JPEG files). Wildcard characters (&amp;quot;*&amp;quot;) can be used. This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the audio file (WAV file) that will be converted to THP audio data. When specifying more than one file for the argument, data is allocated to audio tracks in the order it is specified.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;. When interlace starts from an even numbered field, specify &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt;. If this argument is not specified, the THP video data format is automatically set to non-interlaced (&amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -j test*.jpg -d output.thp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;When this example is executed from a command line, the sequential JPEG files in the current directory (test001.jpg, test002.jpg, test003.jpg, etc.) are converted to THP video data and collected into a single THP movie data file (output.thp). No WAV audio is specified so the THP video will be just video without audio.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; When converting sequential JPEG files to THP movie data, the names of the specified input files must have the extension &amp;quot;.jpg&amp;quot; or &amp;quot;.jpeg&amp;quot;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Changing THP Audio Data in THP Movie Data&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that some of the commands options above are the same here. (being those &#039;&#039;&#039;-s&#039;&#039;&#039;, &#039;&#039;&#039;-d&#039;&#039;&#039;, &#039;&#039;&#039;-r&#039;&#039;&#039;, &#039;&#039;&#039;-o&#039;&#039;&#039;, &#039;&#039;&#039;-non&#039;&#039;&#039;, &#039;&#039;&#039;-even&#039;&#039;&#039;, &#039;&#039;&#039;-odd&#039;&#039;&#039;, &#039;&#039;&#039;-v&#039;&#039;&#039;, &#039;&#039;&#039;-h&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Below are the instructions for using the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool to change the THP audio data in &#039;&#039;&#039;THP Movie Data&#039;&#039;&#039;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -c &amp;amp;lt;inputfile&amp;amp;gt; -s &amp;amp;lt;wavefile&amp;amp;gt; &amp;amp;lt;wavefile&amp;amp;gt;... -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-c&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;inputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input file (THP file). This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the replacing sound file (&#039;&#039;&#039;WAV file&#039;&#039;&#039;). &amp;lt;br&amp;gt;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). If this argument is not given, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will &amp;lt;strong&amp;gt;overwrite the input file.&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;. When interlace starts from an even numbered field, specify &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt;. If this argument is not specified, the THP video data format will be automatically set to non-interlaced (&amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-trk&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;track No.&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;If you only want to replace a single audio track dataset, use this option instead of &amp;lt;b&amp;gt;-s&amp;lt;/b&amp;gt;. 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 &amp;lt;b&amp;gt;-r&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-o&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;, and &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt; options. This option can only be used with the THP file formats that support multitracks.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; When the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 4:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 5:&amp;lt;/b&amp;gt; Unlike the Nintendo GameCube, audio data on the Wii console is output at a set playback frequency (48,000 Hz or 32,000 Hz).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Compatible file formats for THPConv&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Sequential JPEG File Format&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool can convert a group of sequential JPEG files having sequence numbers at the end of their filenames (indicating the playback order) to THP movie data. When interleaving audio data in sequential JPEG files, you must either specify the WAV files by using the &amp;lt;b&amp;gt;-s&amp;lt;/b&amp;gt; option at the time the sequential JPEG files are converted, or add the WAV files after conversion. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
The following restrictions apply to groups of sequential JPEG files that can be handled with the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;All JPEG files to be collected into a single THP movie dataset must have the same number of pixels in the horizontal and vertical directions.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; The group of sequential JPEG files must have sequence numbers (corresponding to frame numbers) appended to the end of their filenames.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; The number of the JPEG file corresponding to the initial frame of the THP movie data can be any number. However, the numbers of all files thereafter must be sequential.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; Please add leading zeros to the frame numbers appended to the filenames so that they all match the number of digits in the last frame.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The following restrictions apply to each file in a group of sequential JPEG files:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only the JPEG baseline DCT format is supported.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only sequential encoding is supported.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only supports a sample rate of 4:2:0.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;The pixel counts in both the horizontal and vertical directions must be a multiple of 16.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;The maximum pixel count in the horizontal direction is 672 dots. There is no restriction on the pixel count in the vertical direction.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If the sequential JPEG files do not meet these requirements, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will output an error and stop processing.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To create four seconds of THP movie data at 30 FPS from sequential JPEG files, the numbers of the sequential JPEG files (testxxx.jpg) should look like the following:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 1 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test001.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 2 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test002.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 3 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test003.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;51 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test051.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;52 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test052.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;118 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test118.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;119 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test119.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;120 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test120.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;WAV file format&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool can convert a general WAV file to THP audio data and interleave it with THP movie data. The following restrictions apply to WAV files that can be converted by the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
- &amp;lt;b&amp;gt;They must be non-compressed 16-bit PCM data.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
- &amp;lt;b&amp;gt;Monaural (one channel) and stereo (two channels) are supported.&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If the wav file does not meet these requirements, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will output an error and stop processing.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt;&amp;lt;/strong&amp;gt; Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE 2: &amp;lt;/b&amp;gt; WAV files having a playback frequency other than 48,000Hz or 32,000Hz can be specified in &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt;. When playing THP movie data created with such WAV files, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Even if you created THP movie data specifying wav files with a playback frequency of 48,000Hz or 32,000Hz, if the playback frequency setting on the Wii is different, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; If you want the THP movie data to contain more than one audio data set, make sure the channel counts and playback frequencies for all data sets are the same.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= Creating a THP video for SMG =&lt;br /&gt;
&#039;&#039;THPConv.exe is originally a Windows binary, but a port to Linux exits. You can find it [https://github.com/MasterofGalaxies/THPConv here]&#039;&#039;&lt;br /&gt;
# Run the following in a shell program: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -vf scale=640:368 temp\frame%03d.jpg&#039;&#039; (Replace Input.mp4 and temp with what you want)&lt;br /&gt;
# If you are going to make the video have audio run this: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -f u16be audio.wav&#039;&#039; (Replace Input.mp4 and audio.wav with what you want)&lt;br /&gt;
# Then, run this if you are not making a video with audio: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -d output.thp&#039;&#039; (Replace temp and output.thp with what you want)&lt;br /&gt;
# If you DO want audio, run this instead: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -s audio.wav -d output.thp&#039;&#039; (Replace temp, audio.wav, and output.thp with what you want)&lt;br /&gt;
# Attempt replacing one of the THP Videos in [[File_system#MovieData|MovieData]] and see if it works.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=292</id>
		<title>THPConv</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=292"/>
		<updated>2023-04-30T15:20:25Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: minor format edits&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tools]]{{SDK Reference}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; is a prebuilt Win32 console application that Nintendo provides in the Wii and GCN SDKs. It is used to convert sequential JPEG images into a THP video format (with an option to include audio into it from a WAV audio file) and to include/replace audio of an existent THP video. It needs the &#039;&#039;&#039;dsptool.dll&#039;&#039;&#039; file to work.&lt;br /&gt;
&lt;br /&gt;
There is a similar program called &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; included alonside &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; and according to the Wii SDK docs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;i&amp;gt;there is no difference in how the two behave. Normally you should use THPConv.exe. THPConvD.exe remains in order to maintain compatibility with past systems.&amp;lt;/i&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So you may use either &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; or &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; to make/edit THP files (be sure to have the respective &#039;&#039;&#039;dsptoolD.dll&#039;&#039;&#039; for &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
Linux users can use [https://www.winehq.org/ Wine] to run both program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Converting Sequential JPEG files to THP Movie Data&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following describes how to use the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool to convert &#039;&#039;&#039;Sequential JPEG files&#039;&#039;&#039; to &#039;&#039;&#039;THP movie data&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -j &amp;amp;lt;*.jpg&amp;amp;gt; -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-j&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;*.jpg&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input files (sequential JPEG files). Wildcard characters (&amp;quot;*&amp;quot;) can be used. This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the audio file (WAV file) that will be converted to THP audio data. When specifying more than one file for the argument, data is allocated to audio tracks in the order it is specified.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;. When interlace starts from an even numbered field, specify &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt;. If this argument is not specified, the THP video data format is automatically set to non-interlaced (&amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -j test*.jpg -d output.thp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;When this example is executed from a command line, the sequential JPEG files in the current directory (test001.jpg, test002.jpg, test003.jpg, etc.) are converted to THP video data and collected into a single THP movie data file (output.thp). No WAV audio is specified so the THP video will be just video without audio.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; When converting sequential JPEG files to THP movie data, the names of the specified input files must have the extension &amp;quot;.jpg&amp;quot; or &amp;quot;.jpeg&amp;quot;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Changing THP Audio Data in THP Movie Data&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that some of the commands options above are the same here. (being those &#039;&#039;&#039;-s&#039;&#039;&#039;, &#039;&#039;&#039;-d&#039;&#039;&#039;, &#039;&#039;&#039;-r&#039;&#039;&#039;, &#039;&#039;&#039;-o&#039;&#039;&#039;, &#039;&#039;&#039;-non&#039;&#039;&#039;, &#039;&#039;&#039;-even&#039;&#039;&#039;, &#039;&#039;&#039;-odd&#039;&#039;&#039;, &#039;&#039;&#039;-v&#039;&#039;&#039;, &#039;&#039;&#039;-h&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Below are the instructions for using the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool to change the THP audio data in &#039;&#039;&#039;THP Movie Data&#039;&#039;&#039;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -c &amp;amp;lt;inputfile&amp;amp;gt; -s &amp;amp;lt;wavefile&amp;amp;gt; &amp;amp;lt;wavefile&amp;amp;gt;... -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-c&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;inputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input file (THP file). This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the replacing sound file (&#039;&#039;&#039;WAV file&#039;&#039;&#039;). &amp;lt;br&amp;gt;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). If this argument is not given, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will &amp;lt;strong&amp;gt;overwrite the input file.&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;. When interlace starts from an even numbered field, specify &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt;. If this argument is not specified, the THP video data format will be automatically set to non-interlaced (&amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-trk&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;track No.&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;If you only want to replace a single audio track dataset, use this option instead of &amp;lt;b&amp;gt;-s&amp;lt;/b&amp;gt;. 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 &amp;lt;b&amp;gt;-r&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-o&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;, and &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt; options. This option can only be used with the THP file formats that support multitracks.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; When the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 4:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 5:&amp;lt;/b&amp;gt; Unlike the Nintendo GameCube, audio data on the Wii console is output at a set playback frequency (48,000 Hz or 32,000 Hz).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Compatible file formats for THPConv&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Sequential JPEG File Format&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool can convert a group of sequential JPEG files having sequence numbers at the end of their filenames (indicating the playback order) to THP movie data. When interleaving audio data in sequential JPEG files, you must either specify the WAV files by using the &amp;lt;b&amp;gt;-s&amp;lt;/b&amp;gt; option at the time the sequential JPEG files are converted, or add the WAV files after conversion. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
The following restrictions apply to groups of sequential JPEG files that can be handled with the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;All JPEG files to be collected into a single THP movie dataset must have the same number of pixels in the horizontal and vertical directions.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; The group of sequential JPEG files must have sequence numbers (corresponding to frame numbers) appended to the end of their filenames.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; The number of the JPEG file corresponding to the initial frame of the THP movie data can be any number. However, the numbers of all files thereafter must be sequential.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; Please add leading zeros to the frame numbers appended to the filenames so that they all match the number of digits in the last frame.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The following restrictions apply to each file in a group of sequential JPEG files:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only the JPEG baseline DCT format is supported.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only sequential encoding is supported.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only supports a sample rate of 4:2:0.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;The pixel counts in both the horizontal and vertical directions must be a multiple of 16.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;The maximum pixel count in the horizontal direction is 672 dots. There is no restriction on the pixel count in the vertical direction.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If the sequential JPEG files do not meet these requirements, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will output an error and stop processing.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To create four seconds of THP movie data at 30 FPS from sequential JPEG files, the numbers of the sequential JPEG files (testxxx.jpg) should look like the following:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 1 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test001.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 2 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test002.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 3 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test003.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;51 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test051.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;52 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test052.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;118 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test118.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;119 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test119.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;120 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test120.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;WAV file format&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool can convert a general WAV file to THP audio data and interleave it with THP movie data. The following restrictions apply to WAV files that can be converted by the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
- &amp;lt;b&amp;gt;They must be non-compressed 16-bit PCM data.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
- &amp;lt;b&amp;gt;Monaural (one channel) and stereo (two channels) are supported.&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If the wav file does not meet these requirements, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will output an error and stop processing.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt;&amp;lt;/strong&amp;gt; Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE 2: &amp;lt;/b&amp;gt; WAV files having a playback frequency other than 48,000Hz or 32,000Hz can be specified in &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt;. When playing THP movie data created with such WAV files, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Even if you created THP movie data specifying wav files with a playback frequency of 48,000Hz or 32,000Hz, if the playback frequency setting on the Wii is different, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; If you want the THP movie data to contain more than one audio data set, make sure the channel counts and playback frequencies for all data sets are the same.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= Creating a THP video for SMG =&lt;br /&gt;
&#039;&#039;THPConv.exe is originally a Windows binary, but a port to Linux exits. You can find it [https://github.com/MasterofGalaxies/THPConv here]&#039;&#039;&lt;br /&gt;
# Run the following in a shell program: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -vf scale=640:368 temp\frame%03d.jpg&#039;&#039; (Replace Input.mp4 and temp with what you want)&lt;br /&gt;
# If you are going to make the video have audio run this: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -f u16be audio.wav&#039;&#039; (Replace Input.mp4 and audio.wav with what you want)&lt;br /&gt;
# Then, run this if you are not making a video with audio: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -d output.thp&#039;&#039; (Replace temp and output.thp with what you want)&lt;br /&gt;
# If you DO want audio, run this instead: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -s audio.wav -d output.thp&#039;&#039; (Replace temp, audio.wav, and output.thp with what you want)&lt;br /&gt;
# Attempt replacing one of the THP Videos in [[File_system#MovieData|MovieData]] and see if it works.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=288</id>
		<title>THPConv</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THPConv&amp;diff=288"/>
		<updated>2023-04-29T23:58:41Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: re-write THPConv page (Wii SDK)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Tools]]{{SDK Reference}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; is a prebuilt Win32 console application that Nintendo provides in the Wii and GCN SDKs. It is used to convert sequential JPEG images into a THP video format (with an option to include audio into it from a WAV audio file) and to include/replace audio of an existent THP video. It needs the &#039;&#039;&#039;dsptool.dll&#039;&#039;&#039; file to work.&lt;br /&gt;
&lt;br /&gt;
There is a similar program called &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; included alonside &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; and according to the Wii SDK docs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;i&amp;gt;there is no difference in how the two behave. Normally you should use THPConv.exe. THPConvD.exe remains in order to maintain compatibility with past systems.&amp;lt;/i&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So you may use either &#039;&#039;&#039;THPConv.exe&#039;&#039;&#039; or &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039; to make/edit THP files (be sure to have the respective &#039;&#039;&#039;dsptoolD.dll&#039;&#039;&#039; for &#039;&#039;&#039;THPConvD.exe&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
Linux users can use [https://www.winehq.org/ Wine] to run both program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Converting Sequential JPEG files to THP Movie Data&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following describes how to use the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool to convert &#039;&#039;&#039;Sequential JPEG files&#039;&#039;&#039; to &#039;&#039;&#039;THP movie data&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -j &amp;amp;lt;*.jpg&amp;amp;gt; -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-j&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;*.jpg&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input files (sequential JPEG files). Wildcard characters (&amp;quot;*&amp;quot;) can be used. This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the audio file (WAV file) that will be converted to THP audio data. When specifying more than one file for the argument, data is allocated to audio tracks in the order it is specified.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;. When interlace starts from an even numbered field, specify &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt;. If this argument is not specified, the THP video data format is automatically set to non-interlaced (&amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -j test*.jpg -d output.thp&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;When this example is executed from a command line, the sequential JPEG files in the current directory (test001.jpg, test002.jpg, test003.jpg, etc.) are converted to THP video data and collected into a single THP movie data file (output.thp). No WAV audio is specified so the THP video will be just video without audio.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; When converting sequential JPEG files to THP movie data, the names of the specified input files must have the extension &amp;quot;.jpg&amp;quot; or &amp;quot;.jpeg&amp;quot;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Changing THP Audio Data in THP Movie Data&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that some of the commands options above are the same here. (being those &#039;&#039;&#039;-s&#039;&#039;&#039;, &#039;&#039;&#039;-d&#039;&#039;&#039;, &#039;&#039;&#039;-r&#039;&#039;&#039;, &#039;&#039;&#039;-o&#039;&#039;&#039;, &#039;&#039;&#039;-non&#039;&#039;&#039;, &#039;&#039;&#039;-even&#039;&#039;&#039;, &#039;&#039;&#039;-odd&#039;&#039;&#039;, &#039;&#039;&#039;-v&#039;&#039;&#039;, &#039;&#039;&#039;-h&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Below are the instructions for using the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool to change the THP audio data in &#039;&#039;&#039;THP Movie Data&#039;&#039;&#039;.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;THPConv.exe -c &amp;amp;lt;inputfile&amp;amp;gt; -s &amp;amp;lt;wavefile&amp;amp;gt; &amp;amp;lt;wavefile&amp;amp;gt;... -d &amp;amp;lt;outputfile&amp;amp;gt; [-&amp;amp;lt;option&amp;amp;gt; &amp;amp;lt;argument&amp;amp;gt;]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Options Description&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;option&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;argument&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th bgcolor=&amp;quot;#C0C0C0&amp;quot;&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-c&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;inputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the input file (THP file). This argument must &amp;lt;strong&amp;gt;always be specified&amp;lt;/strong&amp;gt;.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-s&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;br&amp;gt;......&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the replacing sound file (&#039;&#039;&#039;WAV file&#039;&#039;&#039;). &amp;lt;br&amp;gt;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-d&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;outputfile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the output file (THP file). If this argument is not given, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will &amp;lt;strong&amp;gt;overwrite the input file.&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;3&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-r&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;framerate&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Specifies the movie&#039;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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-o&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;THP movie data can internally store offsets to each frame data as a table. If this argument is specified, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-non&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot; rowspan=&amp;quot;3&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td rowspan=&amp;quot;3&amp;quot;&amp;gt;Specifies the THP video data format. When interlace starts the video data from an odd numbered field, specify &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;. When interlace starts from an even numbered field, specify &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt;. If this argument is not specified, the THP video data format will be automatically set to non-interlaced (&amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;).&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-odd&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-even&amp;lt;/th&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-trk&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;&amp;amp;lt;track No.&amp;amp;gt;&amp;lt;br&amp;gt;&amp;amp;lt;wavefile&amp;amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;If you only want to replace a single audio track dataset, use this option instead of &amp;lt;b&amp;gt;-s&amp;lt;/b&amp;gt;. 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 &amp;lt;b&amp;gt;-r&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-o&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-non&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;-odd&amp;lt;/b&amp;gt;, and &amp;lt;b&amp;gt;-even&amp;lt;/b&amp;gt; options. This option can only be used with the THP file formats that support multitracks.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-v&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Turns on Verbose mode.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;th align=&amp;quot;center&amp;quot; width=&amp;quot;50&amp;quot; bgcolor=&amp;quot;#FFFFCC&amp;quot;&amp;gt;-h&amp;lt;/th&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;100&amp;quot; bgcolor=&amp;quot;#E6E6FA&amp;quot;&amp;gt;-&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Displays the option list.&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt; When the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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 &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 2:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 4:&amp;lt;/b&amp;gt; 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.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;NOTE 5:&amp;lt;/b&amp;gt; Unlike the Nintendo GameCube, audio data on the Wii console is output at a set playback frequency (48,000 Hz or 32,000 Hz).&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;&amp;lt;b&amp;gt;Compatible file formats for THPConv&amp;lt;/b&amp;gt;&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;Sequential JPEG File Format&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool can convert a group of sequential JPEG files having sequence numbers at the end of their filenames (indicating the playback order) to THP movie data. When interleaving audio data in sequential JPEG files, you must either specify the WAV files by using the &amp;lt;b&amp;gt;-s&amp;lt;/b&amp;gt; option at the time the sequential JPEG files are converted, or add the WAV files after conversion. &amp;lt;br&amp;gt; The following restrictions apply to groups of sequential JPEG files that can be handled with the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;All JPEG files to be collected into a single THP movie dataset must have the same number of pixels in the horizontal and vertical directions.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; The group of sequential JPEG files must have sequence numbers (corresponding to frame numbers) appended to the end of their filenames.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; The number of the JPEG file corresponding to the initial frame of the THP movie data can be any number. However, the numbers of all files thereafter must be sequential.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt; Please add leading zeros to the frame numbers appended to the filenames so that they all match the number of digits in the last frame.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The following restrictions apply to each file in a group of sequential JPEG files.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only the JPEG baseline DCT format is supported.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only sequential encoding is supported.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Only supports a sample rate of 4:2:0.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;The pixel counts in both the horizontal and vertical directions must be a multiple of 16.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;left&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;th width=&amp;quot;10&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;-&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;The maximum pixel count in the horizontal direction is 672 dots. There is no restriction on the pixel count in the vertical direction.&amp;lt;/th&amp;gt;     &lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If the sequential JPEG files do not meet these requirements, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will output an error and stop processing.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;To create four seconds of THP movie data at 30 FPS from sequential JPEG files, the numbers of the sequential JPEG files (testxxx.jpg) should look like the following:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 1 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test001.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 2 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test002.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; 3 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test003.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;51 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test051.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;52 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test052.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt; … : &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt; …&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;118 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test118.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;119 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test119.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
    &amp;lt;tr align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;td align=&amp;quot;center&amp;quot; width=&amp;quot;80&amp;quot;&amp;gt;Frame&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td align=&amp;quot;right&amp;quot; width=&amp;quot;60&amp;quot;&amp;gt;120 : &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;180&amp;quot;&amp;gt;test120.jpg&amp;lt;/td&amp;gt;&lt;br /&gt;
    &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;&amp;lt;b&amp;gt;WAV file format&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool can convert a general WAV file to THP audio data and interleave it with THP movie data. The following restrictions apply to WAV files that can be converted by the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
- &amp;lt;b&amp;gt;They must be non-compressed 16-bit PCM data.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
- &amp;lt;b&amp;gt;Monaural (one channel) and stereo (two channels) are supported.&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;If the wav file does not meet these requirements, the &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt; tool will output an error and stop processing.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;&amp;lt;b&amp;gt;Notes&amp;lt;/b&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;hr style=&amp;quot;background-color:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;&amp;lt;b&amp;gt;NOTE 1:&amp;lt;/b&amp;gt;&amp;lt;/strong&amp;gt; Unlike the Nintendo GameCube, audio data is output at the set playback frequency (of 48,000 Hz or 32,000 Hz) on the Wii.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE 2: &amp;lt;/b&amp;gt; WAV files having a playback frequency other than 48,000Hz or 32,000Hz can be specified in &amp;lt;code&amp;gt;THPConv&amp;lt;/code&amp;gt;. When playing THP movie data created with such WAV files, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Even if you created THP movie data specifying wav files with a playback frequency of 48,000Hz or 32,000Hz, if the playback frequency setting on the Wii is different, use &amp;lt;code&amp;gt;THPPlayerStrmAX&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE 3:&amp;lt;/b&amp;gt; If you want the THP movie data to contain more than one audio data set, make sure the channel counts and playback frequencies for all data sets are the same.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
= Creating a THP video for SMG =&lt;br /&gt;
&#039;&#039;THPConv.exe is originally a Windows binary, but a port to Linux exits. You can find it [https://github.com/MasterofGalaxies/THPConv here]&#039;&#039;&lt;br /&gt;
# Run the following in a shell program: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -vf scale=640:368 temp\frame%03d.jpg&#039;&#039; (Replace Input.mp4 and temp with what you want)&lt;br /&gt;
# If you are going to make the video have audio run this: &#039;&#039;ffmpeg -i Input.mp4 -r 59.94 -f u16be audio.wav&#039;&#039; (Replace Input.mp4 and audio.wav with what you want)&lt;br /&gt;
# Then, run this if you are not making a video with audio: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -d output.thp&#039;&#039; (Replace temp and output.thp with what you want)&lt;br /&gt;
# If you DO want audio, run this instead: &#039;&#039;THPConv.exe -j temp\*.jpg -r 59.94 -s audio.wav -d output.thp&#039;&#039; (Replace temp, audio.wav, and output.thp with what you want)&lt;br /&gt;
# Attempt replacing one of the THP Videos in [[File_system#MovieData|MovieData]] and see if it works.&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THP&amp;diff=287</id>
		<title>THP</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THP&amp;diff=287"/>
		<updated>2023-04-29T01:30:36Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: Added GM&amp;#039;s port of THPConv for Linux as tool&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:File formats]]&lt;br /&gt;
{{SDK Reference}}&lt;br /&gt;
&#039;&#039;&#039;THP&#039;&#039;&#039; does not stand for anything unlike other file formats. It&#039;s mainly used for prerendered cutscenes and other prerendered videos. This format was also used on the Nintendo GameCube.&lt;br /&gt;
&lt;br /&gt;
= Format Specifications =&lt;br /&gt;
Below you&#039;ll find helpful tables on how the file is structured&lt;br /&gt;
== Header ==&lt;br /&gt;
Each THP starts with a &#039;&#039;header&#039;&#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || String || &amp;quot;THP0&amp;quot; in ASCII&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || &#039;&#039;Version Number&#039;&#039;. SMG uses 0x1048832&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || The Maximum Frame data size&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt32 || Max no. of Audio Samples. SMG uses 0x570556416&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 || Float || Frame Rate. Defaults to 29.97 in &#039;&#039;THPConv.exe&#039;&#039;. SMG uses 59.97 (the max value)&lt;br /&gt;
|-&lt;br /&gt;
| 0x14 || UInt32 || Total number of frames&lt;br /&gt;
|-&lt;br /&gt;
| 0x18 || UInt32 || The length of the first frame&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C || UInt32 || The length of ALL frames&lt;br /&gt;
|-&lt;br /&gt;
| 0x20 || UInt32 || Offset to components&lt;br /&gt;
|-&lt;br /&gt;
| 0x24 || UInt32 || Offset to FrameOffsetData&lt;br /&gt;
|-&lt;br /&gt;
| 0x28 || UInt32 || First frame offset&lt;br /&gt;
|-&lt;br /&gt;
| 0x2C || UInt32 || Last frame offset&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
== Frame Comp Info ==&lt;br /&gt;
This section is for the Component structure&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Number of components in this frame. Max is 16&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt8[16] || Component types (0 = video, 1 = audio, -1 = none)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
== Video ==&lt;br /&gt;
This section contains the video data.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Width. SMG uses 640&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || Height. SMG uses 368&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || Video format (Only used in certain versions)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Audio ==&lt;br /&gt;
This sections contains the audio data.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Number of Audio Channels (Min is 0, Max is 2)&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || Frequency&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || Number of samples played&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt32 || Number of tracks (Only used in certain versions)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
== Frame ==&lt;br /&gt;
A frame starts with a frame &#039;&#039;header&#039;&#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Total size of the next frame&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || Total size of previous frame&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || Total size of the current frame&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt32 || Audio size (Only if there is audio in the current frame)&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C or 0x10 || colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center; background: #d0d0d0;&amp;quot; | Image Data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
=== Video ===&lt;br /&gt;
Video data&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Int8[&#039;&#039;&#039;I&#039;&#039;&#039;] || Image Data&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;I&#039;&#039;&#039; || colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center; background: #d0d0d0;&amp;quot; | End of Image Data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
=== Audio ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Channel size&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || Number of samples&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || Int16[16] || Table 1&lt;br /&gt;
|-&lt;br /&gt;
| 0x28 || Int16[16] || Table 2&lt;br /&gt;
|-&lt;br /&gt;
| 0x48 || Int16 || Channel 1 previous 1&lt;br /&gt;
|-&lt;br /&gt;
| 0x4A || Int16 || Channel 1 previous 2&lt;br /&gt;
|-&lt;br /&gt;
| 0x4C || Int16 || Channel 2 previous 1&lt;br /&gt;
|-&lt;br /&gt;
| 0x4E || Int16 || Channel 2 previous 2&lt;br /&gt;
|-&lt;br /&gt;
| 0x50 || colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center; background: #d0d0d0;&amp;quot; | Audio Data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Int8[&#039;&#039;&#039;M&#039;&#039;&#039;] || Audio Data&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;M&#039;&#039;&#039; || colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center; background: #d0d0d0;&amp;quot; | End of Audio Data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
= Tools =&lt;br /&gt;
The following tools can handle THP files:&lt;br /&gt;
* [https://github.com/soopercool101/BrawlCrate BrawlCrate] (Can only view the files)&lt;br /&gt;
* [https://www.ffmpeg.org/ ffmpeg] (Can convert THP videos to other video formats)&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC media player] (Can reproduce THP video files)&lt;br /&gt;
* [https://sites.google.com/site/wiiflowiki4/trailers/thp-video-convertor Wiiflow THP Video Converter] (Creates THP videos. Only supports 30 fps)&lt;br /&gt;
* [https://github.com/Lord-Giganticus/THP-Conveter THP-Converter] (Can convert to and from THP files using other programs)&lt;br /&gt;
* [[THPConv|THPConv.exe]] (Nintendo&#039;s internal program to make THP videos, used by other programs)&lt;br /&gt;
* [https://github.com/MasterofGalaxies/THPConv THPConv (for Linux)] (Port of Nintendo&#039;s THPConv tool to Linux)&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
	<entry>
		<id>https://mariogalaxy.org/w/index.php?title=THP&amp;diff=286</id>
		<title>THP</title>
		<link rel="alternate" type="text/html" href="https://mariogalaxy.org/w/index.php?title=THP&amp;diff=286"/>
		<updated>2023-04-29T00:17:14Z</updated>

		<summary type="html">&lt;p&gt;HummingOwl: Added VLC as tool to open THP videos&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:File formats]]&lt;br /&gt;
{{SDK Reference}}&lt;br /&gt;
&#039;&#039;&#039;THP&#039;&#039;&#039; does not stand for anything unlike other file formats. It&#039;s mainly used for prerendered cutscenes and other prerendered videos. This format was also used on the Nintendo GameCube.&lt;br /&gt;
&lt;br /&gt;
= Format Specifications =&lt;br /&gt;
Below you&#039;ll find helpful tables on how the file is structured&lt;br /&gt;
== Header ==&lt;br /&gt;
Each THP starts with a &#039;&#039;header&#039;&#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || String || &amp;quot;THP0&amp;quot; in ASCII&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || &#039;&#039;Version Number&#039;&#039;. SMG uses 0x1048832&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || The Maximum Frame data size&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt32 || Max no. of Audio Samples. SMG uses 0x570556416&lt;br /&gt;
|-&lt;br /&gt;
| 0x10 || Float || Frame Rate. Defaults to 29.97 in &#039;&#039;THPConv.exe&#039;&#039;. SMG uses 59.97 (the max value)&lt;br /&gt;
|-&lt;br /&gt;
| 0x14 || UInt32 || Total number of frames&lt;br /&gt;
|-&lt;br /&gt;
| 0x18 || UInt32 || The length of the first frame&lt;br /&gt;
|-&lt;br /&gt;
| 0x1C || UInt32 || The length of ALL frames&lt;br /&gt;
|-&lt;br /&gt;
| 0x20 || UInt32 || Offset to components&lt;br /&gt;
|-&lt;br /&gt;
| 0x24 || UInt32 || Offset to FrameOffsetData&lt;br /&gt;
|-&lt;br /&gt;
| 0x28 || UInt32 || First frame offset&lt;br /&gt;
|-&lt;br /&gt;
| 0x2C || UInt32 || Last frame offset&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
== Frame Comp Info ==&lt;br /&gt;
This section is for the Component structure&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Number of components in this frame. Max is 16&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt8[16] || Component types (0 = video, 1 = audio, -1 = none)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
== Video ==&lt;br /&gt;
This section contains the video data.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Width. SMG uses 640&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || Height. SMG uses 368&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || Video format (Only used in certain versions)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Audio ==&lt;br /&gt;
This sections contains the audio data.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Number of Audio Channels (Min is 0, Max is 2)&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || Frequency&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || Number of samples played&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt32 || Number of tracks (Only used in certain versions)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
== Frame ==&lt;br /&gt;
A frame starts with a frame &#039;&#039;header&#039;&#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Total size of the next frame&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || Total size of previous frame&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || UInt32 || Total size of the current frame&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C || UInt32 || Audio size (Only if there is audio in the current frame)&lt;br /&gt;
|-&lt;br /&gt;
| 0x0C or 0x10 || colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center; background: #d0d0d0;&amp;quot; | Image Data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
=== Video ===&lt;br /&gt;
Video data&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Int8[&#039;&#039;&#039;I&#039;&#039;&#039;] || Image Data&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;I&#039;&#039;&#039; || colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center; background: #d0d0d0;&amp;quot; | End of Image Data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
=== Audio ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || UInt32 || Channel size&lt;br /&gt;
|-&lt;br /&gt;
| 0x04 || UInt32 || Number of samples&lt;br /&gt;
|-&lt;br /&gt;
| 0x08 || Int16[16] || Table 1&lt;br /&gt;
|-&lt;br /&gt;
| 0x28 || Int16[16] || Table 2&lt;br /&gt;
|-&lt;br /&gt;
| 0x48 || Int16 || Channel 1 previous 1&lt;br /&gt;
|-&lt;br /&gt;
| 0x4A || Int16 || Channel 1 previous 2&lt;br /&gt;
|-&lt;br /&gt;
| 0x4C || Int16 || Channel 2 previous 1&lt;br /&gt;
|-&lt;br /&gt;
| 0x4E || Int16 || Channel 2 previous 2&lt;br /&gt;
|-&lt;br /&gt;
| 0x50 || colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center; background: #d0d0d0;&amp;quot; | Audio Data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Offset !! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| 0x00 || Int8[&#039;&#039;&#039;M&#039;&#039;&#039;] || Audio Data&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;M&#039;&#039;&#039; || colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:center; background: #d0d0d0;&amp;quot; | End of Audio Data&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
= Tools =&lt;br /&gt;
The following tools can handle THP files:&lt;br /&gt;
* [https://github.com/soopercool101/BrawlCrate BrawlCrate] (Can only view the files)&lt;br /&gt;
* [https://www.ffmpeg.org/ ffmpeg] (Can convert THP videos to other video formats)&lt;br /&gt;
* [https://www.videolan.org/vlc/ VLC media player] (Can reproduce THP video files)&lt;br /&gt;
* [https://sites.google.com/site/wiiflowiki4/trailers/thp-video-convertor Wiiflow THP Video Converter] (Creates thp videos. Only supports 30 fps)&lt;br /&gt;
* [https://github.com/Lord-Giganticus/THP-Conveter THP-Converter] (Can convert to and from THP files using other programs)&lt;br /&gt;
* [[THPConv|THPConv.exe]] (Nintendo&#039;s internal program to make thp videos, used by other programs)&lt;/div&gt;</summary>
		<author><name>HummingOwl</name></author>
	</entry>
</feed>