<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wintense.com &#187; video</title>
	<atom:link href="http://wintense.com/tag/video/feed" rel="self" type="application/rss+xml" />
	<link>http://wintense.com</link>
	<description>Tools, plugins and other cool stuff</description>
	<lastBuildDate>Sun, 07 Feb 2010 02:46:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mp4patch</title>
		<link>http://wintense.com/tools/mp4patch</link>
		<comments>http://wintense.com/tools/mp4patch#comments</comments>
		<pubDate>Thu, 26 Feb 2009 12:51:23 +0000</pubDate>
		<dc:creator>pieceofsummer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://wintense.com/?page_id=91</guid>
		<description><![CDATA[There are many ways to convert video for your iPod/iPhone. You may use user-friendly GUI programs or command-line utilities like ffmpeg or mencoder&#8230; But almost none of them could embed soft sublitles to resulting mp4 file. Hard-coded subtitles are the best what they can.
But there&#8217;s a cross-platform tool called MP4Box to deal with mp4 containers. [...]]]></description>
			<content:encoded><![CDATA[<p>There are many ways to convert video for your iPod/iPhone. You may use user-friendly GUI programs or command-line utilities like <a href="http://ffmpeg.org/">ffmpeg</a> or <a href="http://www.mplayerhq.hu/">mencoder</a>&#8230; But almost none of them could embed <em>soft</em> sublitles to resulting mp4 file. Hard-coded subtitles are the best what they can.</p>
<p>But there&#8217;s a cross-platform tool called <a title="GPAC project homepage" href="http://gpac.sourceforge.net/">MP4Box</a> to deal with mp4 containers. It can add subtitle streams by typing smth like:</p>
<blockquote><p><code>mp4box -add source.mp4 <strong>-add subtitle.srt:lang=en</strong> output.mp4</code></p></blockquote>
<p>This allows you to add audio tracks as well.</p>
<p>The resulted file will play great on a PC, but your iPod would fail to recognize subtitles and alternative audio tracks.</p>
<h4>Solution</h4>
<p>mp4patch is a small cross-platform utility to solve this incompatibility issue. It takes an mp4 file and changes it to make acceptable by iPod Touch and iPhone devices (older iPods don&#8217;t support soft subtitles and track selection).</p>
<p>Usage is quite simple:</p>
<blockquote><p><code>mp4patch input.mp4</code></p></blockquote>
<p>If you&#8217;re running Windows, you may download <a title="Download" href="http://wintense.com/download/mp4patch.zip">mp4patch</a> binary. If you&#8217;re running other OS (or you&#8217;re a geek) you can compile it from source.</p>
<h4>How to compile</h4>
<p>First of all, download source code: <a title="Download" href="http://wintense.com/download/mp4patch.c">mp4patch.c</a>.</p>
<p>If you are going to compile it under Windows and Visual C++, you also need <a title="Download" href="http://wintense.com/download/stdint.h">stdint.h</a> header. Put it near the source.</p>
<p>If you&#8217;re using gcc, use smth like</p>
<blockquote><p><code>gcc -o mp4patch mp4patch.c</code></p></blockquote>
<p>If you&#8217;re using VC++, use</p>
<blockquote><p><code>cl /GF /O2 /TP /I . /MT mp4patch.c /link /manifest<br />
mt -manifest mp4patch.exe.manifest -outputresource:mp4patch.exe<br />
del mp4patch.obj mp4patch.exe.manifest</code></p>
<p><span style="font-size: small;"><strong>Notes:</strong><br />
1. All the mess with manifest file is to make UAC happy.<br />
2. <strong>/MT</strong> switch makes static linking with C runtime. You may use <strong>/MD</strong> instead to link dynamically and to get smaller output size.</span></p></blockquote>
<p>If you use some other compiler, please refer to its documentation.</p>
]]></content:encoded>
			<wfw:commentRss>http://wintense.com/tools/mp4patch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
