<?php session_start() ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta content="application/xhtml+xml; charset=utf-8" http-equiv="content-type" />
		<meta name="description" content="Free Linux tools to encode MP4 songs and movies for PC, PSP, iPOd, Phones and many other..." />
		<meta name="keywords" content="matteo,croce,mp4tools,aacplusenc,nokiatagger,mp4,ipod,psp,h264,aac,aac+,eAAC+,mencoder,mp4box" />
		<title>mp4tools - free tools to easily make mp4 files under Linux</title>
		<style type="text/css">
			img {
				border: 0;
			}
			p {
				text-align: justify;
			}
			h1 {
				color: #900;
				text-align: center;
			}
			h2 {
				border-bottom: 2px dashed #666;
				color: #900;
			}
			a {
				color: #36a;
				outline: none;
			}
			a:hover, a:visited{
				color: #69C;
			}
		</style>
<?php
$dburi='sqlite:../../../db/comments.db';
include('../../../lib/comments_header.php');
?>
<script type="text/javascript" src="swfobject.js"></script>
	<script type="text/javascript">
		function play(file, w, h) {
			var swf = new SWFObject('player.swf', 'single', w, h, '9.0.60');
			swf.addParam('wmode','opaque');
			swf.addParam('allowfullscreen', 'true');
			swf.addParam('flashvars', 'file='+file+'&amp;controlbar=over&amp;autostart=true');
			swf.write('player');
		}
	</script>
	</head>
	<body onload="doalg();">
<?php include('../../../lib/ga.html');?>
		<h1>mp4tools</h1>
		<p style="text-align: center;"><a href="#overview">Overview</a> |
			<a href="#quality">Quality</a> |
			<a href="#download">Download</a> |
			<a href="#install">Install</a> |
			<a href="#ubuntu">Ubuntu packages</a> |
			<a href="#usage">Usage</a> |
			<a href="#nokiatagger">nokiatagger</a> |
			<a href="#windows">Windows binaries</a> |
			<a href="#macosx">Mac OS X binaries</a> |
			<a href="#contact">Contact</a> |
			<a href="#comments">Comments</a>
		</p>
<script type="text/javascript"><!--
google_ad_client = "pub-8495275815154498";
/* mp4tools */
google_ad_slot = "6449696172";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
		<h2 id="overview">Overview</h2>
		<p>
			mp4tools are a set of scripts to encode Audio and Video in Isomedia (aka MP4) format<br />
			mp4tools uses opensources programs as backends like mencoder, MP4Box, xvid, x264 <br />
			and its quality is very good.<br />
			There are presets for most common devices like Sony PSP, Apple iPod, Nokia S60 phones,<br />
			so you haven't to go in the jungle of encoding options, firmware bugs, unsupported configurations<br />
			common in all embedded devices.<br />
			mp4tools hot functions are:
		</p>
		<ul>
			<li>support for embedded devices</li>
			<li>direct rip from DVD</li>
			<li>autocrop of black borders to have a bigger visual </li>
			<li>audio peak normalization to make audio sound louder, useful on devices with poor speakers</li>
		</ul>
		<h2 id="quality">Quality</h2>
		<p>mp4tools quality is good since it uses x264 (the best h.264 encoder ever) or<br />
			xvid (the best mpeg4 encoder ever).<br />
			Here there are some video samples, so you can have a look before installing<br />
			It's the Ocean's 13 official trailer (resolutions are the ones before autocropping)</p>
		<div id="player"><small><b>Note:</b> you need Flash Player 9.0.60 or above to play the samples: <a href="http://get.adobe.com/flashplayer/">Click here</a>  to download it from Adobe</small></div>
		<ul>
			<li>PC, Max quality (800x600@400kbps) 7.8 MB <a href="pc.mp4">Download</a></li>
			<li>iPod (320x240@160kbps) 3.6 MB <a href="javascript:play('iPod.m4v', 320, 128);">View</a> <a href="iPod.m4v">Download</a></li>
			<li>PSP (480x272@200kbps) 4.4 MB <a href="javascript:play('psp.mp4', 480, 208);">View</a> <a href="psp.mp4">Download</a></li>
			<li>3gp (176x144@80kbps) 1.6 MB <a href="phone.3gp">Download</a> </li>
			<li>Nokia S60 (320x240@160kbps) 3.2 MB <a href="S60.mp4">Download</a></li>
		</ul>
		<p>And this is a song encoded with aacplusenc at a very low bitrate</p>
		<ul>
			<li><a href="Time.mp4">HE-AAC+v2 (44100Hz Stereo@32kbps) 1.1 MB</a></li>
		</ul>
		<h2 id="download">Download</h2>
		<p>mp4tools consist of 3 archives which can be downloaded separately:</p>
		<ul>
			<li>The shell scripts: <a href="http://ppa.launchpad.net/teknoraver/ppa/ubuntu/pool/main/m/mp4tools/mp4tools_0.6.8.tar.gz">mp4tools_0.6.8.tar.gz</a></li>
			<li>aacplusenc, the AAC+ encoder: <a href="http://ppa.launchpad.net/teknoraver/ppa/ubuntu/pool/main/a/aacplusenc/aacplusenc_0.17.5.tar.gz">aacplusenc_0.17.5.tar.gz</a></li>
			<li>amrenc, the AMR encoder: <a href="http://ppa.launchpad.net/teknoraver/ppa/ubuntu/pool/main/a/amrenc/amrenc_0.5.3.tar.gz">amrenc_0.5.3.tar.gz</a><br /></li>
		</ul>
		<h2 id="install">Install</h2>
		<p>
			Extract all the archives and run in each subdir<br />
			<code>make install</code><br />
			Read the mp4tools README to know about dependencies you have to met
		</p>
		<h2 id="ubuntu">Ubuntu packages</h2>
		<p>
			There are Ubuntu packages for all the above tools, you just have to use this repository by<br />
			either editing /etc/apt/sources.list by hand or adding it to Synaptic or Adept<br /><br />
			<code>deb <a href="http://ppa.launchpad.net/teknoraver/ubuntu">http://ppa.launchpad.net/teknoraver/ubuntu</a> maverick main<br />
deb-src <a href="http://ppa.launchpad.net/teknoraver/ubuntu">http://ppa.launchpad.net/teknoraver/ubuntu</a> maverick main</code><br /><br />
			and then run:<br /><br />
			<code>apt-get install mp4tools</code>
		</p>
		<h2 id="usage">Usage</h2>
		<p>After installing you will have two type of scripts, some named mk* and other named dvd2*<br />
			For example, mkipod encodes a video file to the ipod format, while dvd2ipod rips a DVD into the same format<br />
			The included scripts are:
		</p>
		<table>
			<tr>
				<th>Script</th>
				<th>Description</th>
			</tr>
			<tr>
				<td>mk3gp</td>
				<td>encodes a standard 3gp file</td>
			</tr>
			<tr>
				<td>mks60</td>
				<td>encodes an high quality 3gp file (may not play on older phones)</td>
			</tr>
			<tr>
				<td>mkamr</td>
				<td>encodes an AMR file (ringtone)</td>
			</tr>
			<tr>
				<td>mkmp4</td>
				<td>encodes an highest quality H.264 Video file, for PC playback</td>
			</tr>
			<tr>
				<td>mkipod</td>
				<td>encodes a movie for the Apple iPod</td>
			</tr>
			<tr>
				<td>mkpsp</td>
				<td>encodes a movie for the Sony PSP</td>
			</tr>
			<tr>
				<td>dvd23gp</td>
				<td>rips a DVD to a standard 3gp file</td>
			</tr>
			<tr>
				<td>dvd2s60</td>
				<td>rips a DVD to an high quality 3gp file</td>
			</tr>
			<tr>
				<td>dvd2psp</td>
				<td>rips a DVD to a movie for the Sony PSP</td>
			</tr>
			<tr>
				<td>dvd2ipod</td>
				<td>rips a DVD to a movie for the Apple iPod</td>
			</tr>
		</table>
		<p>Additionally, there are amrenc and aacplusenc, which respectively encodes to AMR and AAC+</p>
		<h2 id="nokiatagger">nokiatagger</h2>
		<p>If you use mp4tools to encode songs to listen them in a Nokia phone<br />
			you will notice that you will not be able to tag your encoded files.<br />
			This because Nokia uses a non standard tag system.<br />
			Fortunately I made my own tool to tag them, so feel free to use it.<br />
			Download it: <a href="../nokiatagger.c">nokiatagger.c</a><br />
			and compile it in the usual way:<br />
			<code>gcc nokiatagger.c -o nokiatagger</code>
		</p>
		<h2 id="windows">Windows binaries</h2>
		<p>
			Currently I have Windows binary only for the HE-AAC+ encoder,<br />
			Download it here: <a href="aacplusenc.exe">aacplusenc.exe</a>
		</p>
		<h2 id="macosx">Mac OS X binaries</h2>
		<p>
			Currently I have Mac OS X binary only for the HE-AAC+ encoder,<br />
			Download it here: <a href="aacplusenc">aacplusenc</a>
		</p>
		<h2 id="contact">Contact</h2>
		<p>You can reach me via:</p>
		<ul>
			<li>email: <img alt="mail me" src="/icons/mail.png" /></li>
			<li>IRC: matteo on irc.freenode.net #mplayer</li>
			<li>Google Talk / Jabber: <img alt="mail me" src="/icons/gtalk.png" /></li>
		</ul>
<?php
$web20_title='mp4tools';
include('../../../lib/web20.php');
include('../../../lib/comments.php');
include('../../../lib/end.php');
?>
</body>
</html>
