<?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>Digitalwerks &#187; mp4</title>
	<atom:link href="http://www.digitalwerks.org/tag/mp4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digitalwerks.org</link>
	<description>Complex issues, efficient discussion.</description>
	<lastBuildDate>Fri, 11 Feb 2011 04:51:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Video encoding for the Android: Step-by-Step</title>
		<link>http://www.digitalwerks.org/2009/03/15/video-encoding-for-the-android-step-by-step/</link>
		<comments>http://www.digitalwerks.org/2009/03/15/video-encoding-for-the-android-step-by-step/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 06:51:45 +0000</pubDate>
		<dc:creator>kosmonaut</dc:creator>
				<category><![CDATA[General tech]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[aac]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[avs]]></category>
		<category><![CDATA[g-1]]></category>
		<category><![CDATA[G1]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google phone]]></category>
		<category><![CDATA[googlephone]]></category>
		<category><![CDATA[gphone]]></category>
		<category><![CDATA[h.264]]></category>
		<category><![CDATA[HTC]]></category>
		<category><![CDATA[megui]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[t-mobile]]></category>
		<category><![CDATA[tmobile]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://www.digitalwerks.org/?p=245</guid>
		<description><![CDATA[I have written a couple of previousÂ posts about my experiences using the T-Mobile HTC G1 Android Google phone, including an in-depth look at how it handles video playback. Â As a way to help other G1 users get video on to their phones, I put together this step-by-step guide to using the MeGUI application to encode [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.digitalwerks.org/wp-content/uploads/fileplaying.png" alt="" /></p>
<p>I have written a <a href="http://www.digitalwerks.org/2009/02/27/video-on-the-android-g1/">couple</a> of previousÂ <a href="http://www.digitalwerks.org/2009/01/15/a-few-weeks-with-an-android/">posts</a> about my experiences using the T-Mobile HTC G1 Android Google phone, including an in-depth look at how it handles video playback. Â As a way to help other G1 users get video on to their phones, I put together this step-by-step guide to using the MeGUI application to encode video into a format that the G1 can play, while retaining as much quality as possible. Â Because of the relatively low resolution of G1 compatible video, I have <strong>not </strong>focused as much on making the files as small in size as possible, but once you&#8217;ve mastered the basic steps outlined here, you should not have too much trouble tweaking the process to get smaller sizes if that is of importance to you. Â With microSD cards getting cheaper and cheaper, I frankly have not found much need to really optimize encoding for size, but your needs may differ.</p>
<div><span style="text-decoration: underline;">Necessary tools:</span></div>
<div>The first step is to download and install the required software. Â This first version of this guide is <strong>PC only</strong>, but again, it would not take too much effort to replicate the steps shown here on a Mac of Linux computer. Â If anybody has specific questions about those alternatives, please just drop me a line. Â <span id="more-245"></span></div>
<p><img src="http://www.digitalwerks.org/wp-content/uploads/meguibasee.png" alt="" /></p>
<div>MeGUI is a free, open source encoding application available for <a href="http://sourceforge.net/projects/megui/">download</a> from Sourceforge. Â It is quite mature and is very powerful, although we will only be scratching the surface of its capabilities here. Â </div>
<div>Also necessary is the <a href="http://www.nero.com/eng/downloads-nerodigital-nero-aac-codec.php">AAC encoding executable</a> from Nero. Â The AAC encoder is also free, but after download, make sure to note where on your system the application gets installed. Â Later on, you will need to show MeGUI where it is located.</div>
<div>After basic installation of MeGUI and neroaacenc.exe, you will want to update MeGUI using the built in update function. Â The application actually bundles a number of other apps, all of which are updated quite frequently, so it is always worth your while to make sure everything is as current as possible. Â <br />
<img src="http://www.digitalwerks.org/wp-content/uploads/meguiupdate2e-300x188.png" alt="" /><br />
After updating, also check to ensure that the neroaacenc executable is properly installed.</div>
<p><img src="http://www.digitalwerks.org/wp-content/uploads/neroaacence-300x291.png" alt="" /></p>
<div>Next, you will want to download my Android-G1 encoding <a href="http://www.digitalwerks.org/x264%20Device-Android%20G1.zip">profile</a>. Â Once downloaded, you will import it to MeGUI to make it available for use.</div>
<p><img src="http://www.digitalwerks.org/wp-content/uploads/import2e-300x204.png" alt="" /></p>
<div><span style="text-decoration: underline;">Step 1: AVS Script</span></div>
<div>So, you should be all set up by this point, and ready to actually get to the task of encoding. Â MeGUI is a bit different from many other video encoding applications, in that it requires you to create an AVISynth file, or AVS script. Â It&#8217;s not as complicated as it sounds, but it is an extra step. Â Luckily, MeGUI takes the hard part out of it by providing an interface for inputing the necessary information into your script under the Tools menu.</div>
<p><img src="http://www.digitalwerks.org/wp-content/uploads/avs1e-291x300.png" alt="" /><br />
<img src="http://www.digitalwerks.org/wp-content/uploads/avs2e-258x300.png" alt="" /><br />
The key items to pay attention to for Android encodes are <strong>resize </strong>and <strong>crop</strong>.  Set the first number (width) of resize to 480, and then let the program automatically set the resulting width while maintaining the proper aspect ratio.  Then click the &#8220;crop&#8221; button and hit auto-crop.  If there are any black borders to remove (which is very important when screen real estate is at a premium as on the Android) the program will figure it out automatically.<br />
Once finished with resize and crop settings you will click &#8220;Save&#8221; which should pop up a preview window of what the new video will look like, and take you back to the original MeGUI interface page.</p>
<p><span style="text-decoration: underline;">Step 1: Prepping the encode</span><br />
After creating your AVS script, and assuming you have the G1-Android preset properly imported, then the only setting you need to look at now is output format, which needs to be set to &#8220;MP4.&#8221;  If so, hit &#8220;Enqueue.&#8221;<br />
At this stage you can also set up the <strong>audio </strong>encoding.  Choose the original souce file for input, select the Nero AAC: NDAAC-LC 96kbps preset, make sure the audio output format is MP4-AAC, select a new name for the audio output file, and hit &#8220;Enqueue.&#8221;<br />
<img src="http://www.digitalwerks.org/wp-content/uploads/config2e.png" alt="" /></p>
<p><span style="text-decoration: underline;">Step 2: Encoding</span><br />
Click the Queue tab, see that your audio and video encoding jobs are lined up properly, and hit &#8220;Start.&#8221;<br />
One progress on both audio and video is finished, open up the Muxing/Muxing MP4 tool, and queue up the process of bringing together the audio and video streams into one MP4 file.<br />
<img src="http://www.digitalwerks.org/wp-content/uploads/mux1e.png" alt="" /><br />
Once that job is finished, you should be all set to transfer the completed file to your Android phone.  If you have a Video Player application installed from the Android Marketplace, you should be now watching high quality video on your Android.</p>
<p><span style="text-decoration: underline;">MPEG-2 Sources</span><br />
For MPEG-2 sources, there are additional steps.  The first is the DG Indexer -&gt; D2V creator.<br />
<img src="http://www.digitalwerks.org/wp-content/uploads/d2vbaseE.png" alt="" /><br />
Run your source file through the D2V creator. (You will have to Queue the process up and run it).<br />
<img src="http://www.digitalwerks.org/wp-content/uploads/d2vscreen.png" alt="" /><br />
Afterwards you will have an audio stream for later encoding, while for video the AVS script creator will pop up using the D2V file you&#8217;ve created.  For MPEG-2 sources you will most likely want to<strong> de-interlace</strong> the video, so that will be set at this stage as well.<br />
Go to the Filters tab of the AVS script creator and click &#8220;Analyze.&#8221;<br />
<img src="http://www.digitalwerks.org/wp-content/uploads/avsdeinterlace1.png" alt="" /><br />
It will take a little while for the analysis process to complete, but at the end you if you are in need of it, the &#8220;Deinterlace button&#8221; will be automatically clicked for you. At this point you can go back to the main AVS script creator page and move ahead in the encoding process normally, as described above.  When it comes time to set the encoding processes from the main MeGUI interface, choose the audio stream that was established by the D2V creation process to be encoded into AAC audio.<br />
<img src="http://www.digitalwerks.org/wp-content/uploads/d2venc3.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalwerks.org/2009/03/15/video-encoding-for-the-android-step-by-step/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Video on the Android G1</title>
		<link>http://www.digitalwerks.org/2009/02/27/video-on-the-android-g1/</link>
		<comments>http://www.digitalwerks.org/2009/02/27/video-on-the-android-g1/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 09:07:41 +0000</pubDate>
		<dc:creator>kosmonaut</dc:creator>
				<category><![CDATA[General tech]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[G1]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[googlephone]]></category>
		<category><![CDATA[gphone]]></category>
		<category><![CDATA[h.264]]></category>
		<category><![CDATA[megui]]></category>
		<category><![CDATA[mkv]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://www.digitalwerks.org/?p=218</guid>
		<description><![CDATA[As a follow up to my previous posts about the G1 Android phone from T-Mobile (and Google!), and from a personal interest, I wanted to gather as much information about the phone&#8217;s video capabilities as I could. Â In general, there has not been much information available about the detailed video specifications of the G1, which [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="domo arigato mr. roboto" src="http://www.digitalwerks.org/wp-content/uploads/domoarigatomrroboto.jpg" alt="far dorkier than Data ever was!" /></p>
<p>As a follow up to my previous <a href="http://www.digitalwerks.org/2009/01/15/a-few-weeks-with-an-android/">posts </a>about the <strong>G1 Android phone from T-Mobile</strong> (and Google!), and from a personal interest, I wanted to gather as much information about the phone&#8217;s video capabilities as I could. Â In general, there has not been much information available about the detailed video specifications of the G1, which has proven somewhat <a href="http://blogs.amd.com/patmoorhead/archive/2008/10/27/unlock-some-secret-of-the-android-g1-video-encode-decode.aspx">frustrating </a>to those people interested in using it as a portable viewing device.</p>
<div>At the basic level, the G1 can decode the <a href="http://en.wikipedia.org/wiki/H.264">h.264</a> codec in .mp4 and .m4v container formats. Â If you are familiar with iPod/iPhone video capabilities, you should recognize those specs, as they are pretty close to what Apple is using. Â And that is likely not a coincidence, as my guess is that video was somewhat neglected in the G1&#8242;s development and choices were defaulted to an already established format. Â I assume that video as a category was overlooked for a number of reasons: unlike the iPhone with iTunes, there is no established commercial entity selling video content for the G1. Â But probably more important is the fact that Android isÂ a platform targeted for a number of different hardware devices, and not just phones but MID&#8217;s, netbooks, etc. It probably did not make a lot of sense for the Android developers at Google to put a lot of time into a video format that may only be specific one device, the G1. Â And from the other direction, the actual manufacturer of the phone, HTC, I suspect probably handed everything over to Google, since video can be something of a headache for phone makers without a lot of expertise in this area. Â In other words, G1 users were kind of left on their own when it comes to video, something pretty clearly shown by the fact that the phone did not even come with a native video player application! Â A couple popped up almost immediately, but they are not particularly sophisticated or polished.<br />
Â </div>
<div><span id="more-218"></span>So, reaching back to my days with the <a href="http://www.divx.com/en/partner/certified-programs">DivX Certification</a> lab, I devised to determine what, in fact, the video capabilities of the phone actually are and then to come up with an encoding profile that would take the most advantage of what the G1 offers. Â I created dozens of test clips with a wide variety of encoding parameters and tried to play them on the phone. Â Once I had learned what the G1 can and cannot play, I started looking at which options provided the best compression compromise between size of file, quality of image, and speed of encoding process. Â Dozens of PSNR and SSIM tests later, I had some preliminary answers. Â Usually, a compressionist can only have two of the three (quality, size, and speed) but must make sacrifices on the third. Â In my case, I favored quality and speed, without too much attention paid to size since with the G1 we are not limited by a specific medium size (i.e. we are not trying fit a file on a 700MB CD or something similar to that. Â A G1 user can fit however much video they want on to whichever size microSD card they have. Â I recently purchased an 8GB card from <a href="http://www.frys.com/">Fry&#8217;s</a> for less than $20, which provides a great deal of space and does not make size concerns primary for me. Â Your mileage may vary, of course.<br />
Â </div>
<div>It turns out that the G1&#8242;s capabilities are pretty similar to later generation iPods, iPhones and Zunes. Â H.264 video on the G1 needs to conform to the Baseline Profile and the 3.0 Level, which govern some of theÂ impermissibleÂ encoding options like CABAC and B-Slices, that are powerful options but also drastically increase the complexity of the file and the power needed to decode the video content. Maybe even more crucially, G1 video has to be follow very strict resolution limits, as no video can be wider than <strong>480</strong> pixels across and no higher than <strong>368</strong> pixels. Bitrate does not appear to be nearly as strict. Â I&#8217;ve gotten the G1 to play files with surprisingly high bitrates, up to 2000 kbps, but that is generally way overkill for files with sub-SD resolutions.<br />
Â </div>
<div>In order to make my findings useful, I created a profile for the encoding application <a href="http://en.wikipedia.org/wiki/MeGUI">MeGUI</a>, considered to be the pre-eminent solution for high quality encoding of h.264 video (using the amazing <a href="http://x264.nl/">x264</a> implementation) into .mp4&#8242;s or .mkv&#8217;s (mkv, the <a href="http://www.matroska.org/">matroska</a> container format is the accepted standard for high def x264 video among current file traders but is not currently supported on the G1). Â Barring any hidden bugs I&#8217;ve missed, myÂ <a href="http://www.digitalwerks.org/x264%20Device-Android%20G1.zip">G1-Android profile</a> should become available for MeGUI auto-updates in the future, or you can download and install it yourself right now. Â I also checked with the lead developer of x264 to make sure the profile made sense from a compression standpoint, so I am fairly confident in it. Â But test it out for yourself and see if it meets your particular needs. Â If you are not interested in using MeGUI, you can just read the profile as an XML file and take the encoding settings and apply them manually in whichever application you prefer (Handbrake, Ripbot, etc.).<br />
Â </div>
<div>One reminder, when using MeGUI you will need to create an Avisynth script first, in which you will need to re-size the video to Â 480&#215;368 or below. Â You should also <strong>crop </strong>and <strong>de-interlace</strong> the video if necessary at that stage. Then MeGUI can use the G1 Android profile to do the actual encoding.<br />
Â </div>
<div>You will also notice I did not say much about audio, but that is pretty clear for the G1 encoders should stick with MeGUI&#8217;s Nero AAC LC 96 kbps profile. Â That will be more than sufficient for portable watching, imo.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalwerks.org/2009/02/27/video-on-the-android-g1/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>divx, h264, and (maybe) mkv on Windows 7?</title>
		<link>http://www.digitalwerks.org/2009/01/26/divx-h264-and-maybe-mkv-on-windows-7/</link>
		<comments>http://www.digitalwerks.org/2009/01/26/divx-h264-and-maybe-mkv-on-windows-7/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 20:34:36 +0000</pubDate>
		<dc:creator>kosmonaut</dc:creator>
				<category><![CDATA[General P2P]]></category>
		<category><![CDATA[General tech]]></category>
		<category><![CDATA[advanced]]></category>
		<category><![CDATA[avc]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[blu-ray]]></category>
		<category><![CDATA[codec]]></category>
		<category><![CDATA[divx]]></category>
		<category><![CDATA[doom9]]></category>
		<category><![CDATA[h.264]]></category>
		<category><![CDATA[hdtv]]></category>
		<category><![CDATA[hi-def]]></category>
		<category><![CDATA[matroska]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mkv]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[mpeg-4]]></category>
		<category><![CDATA[mpeg4]]></category>
		<category><![CDATA[vc-1]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[xvid]]></category>

		<guid isPermaLink="false">http://www.digitalwerks.org/?p=153</guid>
		<description><![CDATA[An interesting bit of news from the doom9 forums. Â As anyone who is testing the Windows 7 beta has discovered, and as the above photo shows, Microsoft is breaking with their tradition and including more codec support in the upcoming Windows bundle. Â Previous Windows versions did not even include MPEG-2 decoding, which proved to be [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="AVC in Windows 7 beta" src="http://www.digitalwerks.org/wp-content/uploads/windows7_AVCa.png" alt="mkv?" /></p>
<p>An interesting bit of news from the <a href="http://forum.doom9.org/">doom9 </a>forums. Â As anyone who is testing the Windows 7 beta has discovered, and as the above photo shows, Microsoft is breaking with their tradition and including more codec support in the upcoming Windows bundle. Â Previous Windows versions did not even include MPEG-2 decoding, which proved to be quite mystifying to many users trying to watch a DVD in their computers for the first time. Â And, needless to say, Microsoft stayed far away from any of the more esoteric codecs, including the key MPEG-4 ASP implementations such as DivX and Xvid. Â </p>
<p>However, the beta of Windows 7 includes the ability to play back DivX, and Xvid, and even the next generation MPEG-4 AVC, better known as h.264. Â Why is this important? Â A couple things. Â First, if anybody needed further proof that VC-1 is essentially dead in the water, this is another nail in its coffin (to mix macabre metaphors). Â Secondly, and more importantly, it appears that Microsoft is jumping on the bandwagon of broad interoperability, allowing Windows users to play back a range of video formats right out of the box, something that will surely be a boon to less sophisticated users who just want to be able to watch something without having to even know what a codec is, much less a container format, audio stream, etc.</p>
<p>Even more intriguing is the news that Microsoft may be working on an implementation of the matroska container, or mkv for Windows 7 (according to madshi and haali on doom9). Â For the file-trading community, this is quite significant. Â H.264 has a ton of &#8220;legitimate&#8221; uses today, notably in higher quality Flash videos on YouTube and elsewhere. Â MKV however, is almost exclusively used currently by pirates, particularly those sharing HD video. Â Blu-Ray rips and high def TV captures are generally distributed as x264 encodes with AC3 audio in mkv containers (both 720p and 1080p), and while HD video content is still a small minority of what is shared relative to standard def video, it is growing and is likely to become the dominant format before long. Â Maybe Microsoft is just getting back at the movie studios that went with Blu-Ray instead of the MS-backed HD-DVD formats, but regardless, it would be good news if mkv support signaled that Microsoft was thinking about their users first, and video business strategies second.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalwerks.org/2009/01/26/divx-h264-and-maybe-mkv-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

