<?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>aaron-kelley.net &#187; Windows codecs</title>
	<atom:link href="http://aaron-kelley.net/blog/tag/codecs/feed/" rel="self" type="application/rss+xml" />
	<link>http://aaron-kelley.net</link>
	<description>My little corner of the Internet</description>
	<lastBuildDate>Tue, 01 May 2012 19:11:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Use Windows 7&#8242;s built-in h.264 decoder in Media Player Classic Homecinema</title>
		<link>http://aaron-kelley.net/blog/2009/08/use-windows-7s-built-in-h-264-decoder-in-media-player-classic-homecinema/</link>
		<comments>http://aaron-kelley.net/blog/2009/08/use-windows-7s-built-in-h-264-decoder-in-media-player-classic-homecinema/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 19:17:28 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Blu-ray]]></category>
		<category><![CDATA[CCCP]]></category>
		<category><![CDATA[CoreAVC]]></category>
		<category><![CDATA[Multimedia]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows codecs]]></category>

		<guid isPermaLink="false">http://aaron-kelley.net/?p=492</guid>
		<description><![CDATA[On Windows, I always install the CCCP to get all of the codecs I need.  It&#8217;s a nice pack of mostly open source software.  Most of the audio and video decoding functionality it provides is provided by libavcodec from the FFmpeg project &#8212; this library also powers the decoding of VLC, Perian, and most notable [...]]]></description>
			<content:encoded><![CDATA[<p>On Windows, I always install the <a href="http://www.cccp-project.net/" target="_blank">CCCP</a> to get all of the codecs I need.  It&#8217;s a nice pack of mostly open source software.  Most of the audio and video decoding functionality it provides is provided by libavcodec from the <a href="http://ffmpeg.org/" target="_blank">FFmpeg project</a> &#8212; this library also powers the decoding of <a href="http://www.videolan.org/vlc/" target="_blank">VLC</a>, <a href="http://perian.org/" target="_blank">Perian</a>, and most notable media players on Linux.  With the CCCP, this is provided in the form of FFDShow, a set of DirectShow filters that can be used by any Windows application that supports DirectShow.  The CCCP also includes Media Player Classic, a nice, light player, pre-configured to just play everything right.  No thinking involved, just install the CCCP.</p>
<p>However, I find that libavcodec is not fast enough to decode high-bitrate h.264 content in real-time on my machine (2.4 GHz Core 2 Duo) &#8212; say, for example, the h.264 content that you would find on a Blu-ray disc.  So, I set out looking for alternatives.</p>
<p><span id="more-492"></span>The most obvious choice is <a href="http://www.coreavc.com/" target="_blank">CoreAVC</a> (although that will cost you $15!).  They boast having the fastest software h.264 decoder available &#8212; and they&#8217;re probably right.  I downloaded the trial version and found that it allowed my computer, for the first time, to play back a Blu-ray encoding without stuttering or hiccuping or dropping frames.  Unfortunately, my particular Blu-ray movie (Stargate: Continuum) <a href="http://forum.corecodec.com/viewtopic.php?f=3&amp;t=1572" target="_blank">apparently was encoded by some encoder that did not follow the AVC spec completely</a>, and thus, CoreAVC has some <a href="http://aaron-kelley.net/wp-content/uploads/2009/08/sgc-1.jpg" target="_blank">decoding</a> <a href="http://aaron-kelley.net/wp-content/uploads/2009/08/sgc-2.jpg" target="_blank">errors</a> (although the video is decoded fine by libavcodec, if a bit too slowly).  <a href="http://forum.corecodec.com/viewtopic.php?f=3&amp;t=2868" target="_blank">I&#8217;ve been promised that a workaround for this issue will be present in CoreAVC 2.0</a>, which may come along at around the same time as Windows 7&#8242;s general availability.</p>
<p>There&#8217;s also hardware-assisted decoding.  Maybe if you have a good GPU, this is an option.  On my machine, the GPU supports h.264 decoding, but it is even slower than libavcodec.</p>
<p>Another option is just to use Windows 7&#8242;s built-in h.264 support, that I had read about at some point, but completely slipped my mind until after I checked out CoreAVC.  So, here&#8217;s how to configure Media Player Classic to prefer Windows 7&#8242;s native support over that provided by FFDShow.</p>
<p>First, go to View -&gt; Options.  Select &#8220;External Filters&#8221; on the left, and then click &#8220;Add Filter&#8221; in the top right.  Find &#8220;Microsoft DTV-DVD Video Decoder&#8221; and click &#8220;OK.&#8221;</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-489" title="Using Microsoft h.264 filter in MPC - 1" src="http://aaron-kelley.net/wp-content/uploads/2009/08/msh264-1.png" alt="Using Microsoft h.264 filter in MPC - 1" width="476" height="366" /></p>
<p>Now, select this filter in the list of filters, and choose the &#8220;Prefer&#8221; option on the right.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-490" title="Using Microsoft h.264 filter in MPC - 2" src="http://aaron-kelley.net/wp-content/uploads/2009/08/msh264-2.png" alt="Using Microsoft h.264 filter in MPC - 2" width="692" height="531" /></p>
<p>This filter will take over the playback of some other types of media as well.  If you don&#8217;t want that, remove everything except the h.264 subtype and the subtypes in {braces} from the list at the bottom of this window.</p>
<p>Press &#8220;OK,&#8221; and then close and restart Media Player Classic.  And then, enjoy your h.264.</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-491" title="Using Microsoft h.264 filter in MPC - 3" src="http://aaron-kelley.net/wp-content/uploads/2009/08/msh264-3.png" alt="Using Microsoft h.264 filter in MPC - 3" width="800" height="588" /></p>
<p>(By the way, this is the h.264 encoding found on the Blu-ray disc, and it has not been re-encoded or re-compressed or anything.  I had to rip it because that&#8217;s the only way I could get it to play at all&#8230; but that&#8217;s <a href="/blog/2008/10/blu-ray-woes/">another story</a>.)</p>
<p>If you ever decide you want to undo this, just go back to the &#8220;External Filters&#8221; config and remove the Microsoft DTV-DVD filter from the list, and then restart Media Player Classic again.</p>
<p>I&#8217;ve found Windows 7&#8242;s native support to be faster than libavcodec, but slower than CoreAVC.  It also doesn&#8217;t have any of the decoding errors that I saw in CoreAVC.  It is <em>almost fast enough</em> to play the movie on my system, but I still notice some slight stuttering.  I&#8217;ll live with it until CoreAVC 2.0 is available, and then we&#8217;ll see how that stacks up.</p>
]]></content:encoded>
			<wfw:commentRss>http://aaron-kelley.net/blog/2009/08/use-windows-7s-built-in-h-264-decoder-in-media-player-classic-homecinema/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
	</channel>
</rss>

