<?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; x264</title>
	<atom:link href="http://www.digitalwerks.org/tag/x264/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>MKV&#8217;s on Blu-Ray Players</title>
		<link>http://www.digitalwerks.org/2009/04/27/mkvs-on-blu-ray-players/</link>
		<comments>http://www.digitalwerks.org/2009/04/27/mkvs-on-blu-ray-players/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 19:56:08 +0000</pubDate>
		<dc:creator>kosmonaut</dc:creator>
				<category><![CDATA[General P2P]]></category>
		<category><![CDATA[General tech]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blu]]></category>
		<category><![CDATA[blu-ray]]></category>
		<category><![CDATA[BR]]></category>
		<category><![CDATA[htpc]]></category>
		<category><![CDATA[matroska]]></category>
		<category><![CDATA[mkv]]></category>
		<category><![CDATA[p2p]]></category>
		<category><![CDATA[ray]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://www.digitalwerks.org/?p=338</guid>
		<description><![CDATA[The fight for dominance in the living room continues apace, with a large number of contenders and no clear cut leader at the moment. Â Everybody wants their device to be the central hub for delivering content, both local and Internet-based to the masses on their couches. Â The major players remain: Cable Set-Top-Boxes Gaming systems (PS3, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.digitalwerks.org/wp-content/uploads/mkvlogo.png" alt="" /></p>
<div>The fight for dominance in the living room continues apace, with a large number of contenders and no clear cut leader at the moment. Â Everybody wants their device to be the central hub for delivering content, both local and Internet-based to the masses on their couches. Â The major players remain:</div>
<div>
</p>
<ul>
<li>Cable Set-Top-Boxes</li>
<li>Gaming systems (PS3, Xbox 360)</li>
<li>Stand alone devices (Roku, Tivo, AppleTV, etc.)</li>
<li>Digital Media Adaptors (Popcorn Hour, DLNA devices, etc.)</li>
<li>Networked HDTV&#8217;s (DLNA, widgets, etc.)</li>
<li>Blu-Ray devices with extended functionality</li>
<li>Home theater PC&#8217;s (Windows Media Center, Mac Mini w/ Boxee, etc.)</li>
</ul>
</div>
<p></p>
<div>All of the above have both positive and negative aspects, and none of them have really taken off enough to be considered a mainstream success, at least in the context of advanced content delivery. Cost and complexity are probably the biggest hurdles to wide acceptance for all of them, but we are seeing some interesting moves to increase attractiveness to consumers. Â <br />
<br />On Saturday, Richard Lawler on EngadgetHD <a href="http://www.engadgethd.com/2009/04/25/jvc-xv-pb1-blu-ray-player-surprises-with1080p-mkv-support/">reported</a> that the first JVC Blu-Ray player to hit the US will be the first such device to support the playback of <a href="http://www.matroska.org/">Matroska</a> (.mkv) files. Â The move to support codecs and file formats beyond those required for the official player specifications developed on standard definition DVD players in 2003 and then really took off with the growth of DivX certification thereafter. Â The move by JVC is interesting for a few reasons. Â First, the Matroska format is not officially backed by any legitimate content creators, it is wholly used for the distribution of Blu-Ray rips among file-sharing communities. Â Generally speaking Hollywood Blu-Ray rips at 1920x1080p are encoded in h.264 or VC-1 using the .mts transport stream format, with sizes ranging from 20GB to 50GB&#8217;s. Â After being cracked, these discs get re-compressed using the open source x264 implementation of h.264 to either 9GB at 1920&#215;1080 or 4.5GB for 1280&#215;720. Â The 5.1 DTS or AC3 soundtrack along with subtitles are included as well depending on the particular film. Â Without knowing the specifics of the JVC player&#8217;s capabilities it&#8217;s impossible to say for sure that it could play back these files, but from a horsepower perspective it should not be difficult, though, for the bitrates of the rips is significantly lower than those of the original discs. Â It would be good to know as well if the JVC player can play back .mkv&#8217;s from burned Blu-Ray discs, from DVD-R&#8217;s, from USB devices or from networked sources. Â I would suspect yes to all, but until some one gives it a thorough review of the player it&#8217;s impossible to know.</div>
<div></div>
<p></p>
<div>Clearly JVC is trying to differentiate themselves from their Blu-Ray player competitors by appealing to a subset of consumers that are downloading Blu-Ray rips but would like to watch them on devices other than their PC&#8217;s. Â Also interesting is that JVC is not working with DivX to do this, in fact they explicitly say &#8220;DivX files&#8221; are incompatible. Â I wonder if they mean .avi files encoded in DivX or the specific .divx file format? Â In any case, this is certainly not a good sign for the success of the DivX Plus/7 hardware certification program, as it was explicitly designed to support playback of .mkv&#8217;s on Blu-Ray devices.</div>
<div></div>
<p></p>
<div>From my perspective, I am not sure how successful this particular JVC device will be, or the attempt to increase the functionality of Blu-Ray devices in general (adding Netflix, YouTube, etc.). Â Despite the much lauded AACS DRM scheme, Blu-ray rips have been available almost from the first release of Blu-Ray discs, so anybody interested in watching these kinds of files has probably been doing it for quite some time by now, and has their own method of doing so. Â Likely that method is watching from an HTPC of some kind. Â Once someone connects a PC to their main viewing device, and accepts the cost, complexity and noise issues, going back to a CE device seems like a significant step backwards, in my opinion. Â No matter how well JVC (or more likely whomever their ODM is in) implement .mkv playback, or YouTube integration, it is not likely to match the user experience of an HTPC. Â That is not to say HTPC&#8217;s are generally user friendly, for in fact putting one together is currently far beyond the capabilities of the mainstream, but I suspect things are likely to change in the near future. Â Services like Boxee, hardware like the Atom platform from Intel, or the Ion from AMD, the hoped-for improvements from Windows 7 point towards a real opportunity for HTPCs to become far more accepted in mainstream living rooms. Â As someone who has used an HTPC for many years, and is currently putting together a second one for the bedroom, I certainly know the difficulties of the process, but that said, I have absolutely no interest in switching to a Blu-Ray player, even with expanded capabilities. Â There is no way that a CE device could possibly cover all the things I want to do, all the content I want to watch, all the services I would like to try, at least in comparison to a general purpose PC with a high speed Internet connection. Â Maybe if the prices got really, really low ($99 or less) but certainly not at the reported MSRP of $299 for the JVC player.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.digitalwerks.org/2009/04/27/mkvs-on-blu-ray-players/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<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>
	</channel>
</rss>

