<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Hasta la vista, Vista! &#187; Vista&#8217;s Video Nasties</title>
	<atom:link href="http://hastalavistavista.com/category/vistas-video-nasties/feed/" rel="self" type="application/rss+xml" />
	<link>http://hastalavistavista.com</link>
	<description>Vista is on trial and my XP install disk is within easy reach</description>
	<lastBuildDate>Sun, 05 Feb 2012 11:50:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hastalavistavista.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Hasta la vista, Vista! &#187; Vista&#8217;s Video Nasties</title>
		<link>http://hastalavistavista.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hastalavistavista.com/osd.xml" title="Hasta la vista, Vista!" />
	<atom:link rel='hub' href='http://hastalavistavista.com/?pushpress=hub'/>
		<item>
		<title>Vista&#8217;s Video Nasties #4: H.264 recipe revealed</title>
		<link>http://hastalavistavista.com/2007/12/04/vistas-video-nasties-4-h264-recipe-revealed/</link>
		<comments>http://hastalavistavista.com/2007/12/04/vistas-video-nasties-4-h264-recipe-revealed/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 16:43:10 +0000</pubDate>
		<dc:creator>Dennis Wright</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[Vista's Video Nasties]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[XP]]></category>
		<category><![CDATA[Home video]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Vimeo]]></category>
		<category><![CDATA[Windows Movie Maker]]></category>

		<guid isPermaLink="false">http://hastalavistavista.wordpress.com/2007/12/04/vistas-video-nasties-4-h264-recipe-revealed/</guid>
		<description><![CDATA[Here is the promised magic recipe, the complete solution, for automated H.264 encoding on Vista (or XP for that matter). (Note that since I first published this post I have found an alternative, direct way to embed video into blogs where the video quality is as high as I wish. Details are here.) Scenario Input: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=183&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" alt="Vista busy cursor" /> <span style="color:#000000;">Here is the promised magic recipe, the complete solution, for automated H.264 encoding on Vista (or XP for that matter).</span></p>
<p><span style="color:#800080;">(Note that since I first published this post I have found an alternative, direct way to embed video into blogs where the video quality is as high as I wish.  Details <a href="http://hastalavistavista.wordpress.com/2008/01/21/embedded-video-of-arbitrarily-good-quality/">are here</a>.)</span></p>
<p><span style="color:#0000ff;"><strong>Scenario</strong></span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">Input:</span> The video to be encoded is an avi file in DV format, such as you might capture from a camcorder using Windows Movie Maker or other video editing application.  The video may have been edited, so long as the edited footage has then been saved in DV format in an avi file.  Audio content is assumed to be in PCM (uncompressed) format, typically with a 48,000 Hz sampling rate.</span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">Output:</span> The encoding process results in an mp4 file containing H.264 encoded video and AAC audio.  The output file is suitable for uploading to on-line video hosting services such as youTube or vimeo.</span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">Defaults:</span> The default settings are video resolution of 448 x 336 and H.264 encoding quality of 26.  These can be overridden by changing the relevant lines in the video.avs and video.bat files (see below).</span></p>
<p><span style="color:#0000ff;"><strong>Preliminary</strong></span></p>
<p><span style="color:#000000;">It makes sense to create a folder on your PC where you will keep the relevant programs and working files.  For the purposes of the post I will assume this is c:\videoenc</span></p>
<p><span style="color:#0000ff;"><strong>What you need to download and install</strong></span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">AviSynth</span></span></p>
<p><span style="color:#000000;">AviSynth 2.5 is a frameserver which we use here to perform the preliminary processing such as cropping and deinterlacing.  Download the file  			Avisynth_257.exe from <a href="http://sourceforge.net/project/showfiles.php?group_id=57023&amp;package_id=72557&amp;release_id=366702">here</a>.  Run it to install AviSynth.  Accept all defaults.</span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">Smooth Deinterlacer</span></span></p>
<p><span style="color:#000000;">Get it from <a href="http://www.guthspot.se/video/AVSPorts/SmoothDeinterlacer/">here</a> and save the file smoothdeinterlacer.dll to c:\videoenc.   Be sure to select the version designed to work with AviSynth 2.5x not the older version for AviSynth 2.0x.</span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">x264</span></span></p>
<p><span style="color:#000000;">This is the H.264 encoder program itself.  You can get it from <a href="http://www.x264.nl/">here*</a>. Click on any of the mirror links, e.g. mirror 01, next to x264.exe in the table of encoder download options.  Save the x264.exe file to c:\videoenc.   You don&#8217;t need to install  anything.  The file just needs to be in that folder.</span></p>
<p><span style="color:#800000;">[<strong>*Update 5 Dec 07</strong>: The link above appears to be down or unreliable.  I have found another source for the x264.exe file <a href="http://www.digital-digest.com/software/download.php?sid=997&amp;ssid=0&amp;did=6">here</a> but have not yet had the opportunity to check its origin, version or to test it] </span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">MP4Box</span></span></p>
<p><span style="color:#000000;">MP4Box takes the raw compressed video file and places it in an mp4 container file.  The program is available from <a href="http://kurtnoise.free.fr/mp4tools/">here</a>.  I downloaded version 0.4.4 compiled 3 June 2007. Again, you just need MP4Box.exe to be in the folder c:\videoenc.</span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">MPlayer</span></span></p>
<p><span style="color:#000000;">You can get this from <a href="http://www.mplayerhq.hu/design7/dload.html">here</a>.  Download &#8220;MPlayer 1.0rc1 Windows&#8221; (<strong>not</strong> the GUI version) from any of the mirror site links. </span><span style="color:#000000;">You need MPlayer to extract the uncompressed audio from the DV video file, so it can then be compressed as AAC audio. You only need the mplayer.exe file.  Put it in c:\videoenc.</span></p>
<p><span style="color:#000000;"><span style="text-decoration:underline;">faac</span></span></p>
<p><span style="color:#000000;">The utility that compresses your extracted audio in AAC format.  Available from <a href="http://megui.org/auto/stable/">here</a>.  Download the faac-1.26.1.zip file.  Place the faac.exe file in c:\videoenc.</span></p>
<p><span style="color:#0000ff;"><strong>Creating the text files that automate the process</strong></span></p>
<p><span style="color:#000000;">Within the c:\videoenc folder create a text file called video.txt.  Open it and copy the following text into it:</span></p>
<p><span style="color:#800080;">LoadPlugin(&#8220;SmoothDeinterlacer.dll&#8221;)<br />
DirectShowSource(&#8220;c:\videoenc\video.avi&#8221;)<br />
SmoothDeinterlace(tff=false, doublerate=false)<br />
LanczosResize(448,336)<br />
converttoyv12()</span></p>
<p><span style="color:#000000;">Close it, saving the changes.  Change the filename to video.avs.</span></p>
<p><span style="color:#000000;">Next create another file called video.txt. Open it and copy the following text into it:</span></p>
<p><span style="color:#800080;">@ECHO OFF<br />
x264.exe &#8211;fps 25 &#8211;qp 26 &#8211;progress &#8211;output video.264 video.avs<br />
MP4Box -flat -add video.264:fps=25 -v -new video.mp4<br />
mplayer -vc null -vo null -ao pcm:fast video.avi<br />
faac -b 128 &#8211;mpeg-vers 4 audiodump.wav<br />
MP4box -add audiodump.aac video.mp4<br />
PAUSE<br />
CLS<br />
EXIT</span></p>
<p><span style="color:#000000;">Close it, saving the changes.  Change the filename to video.bat.</span></p>
<p><span style="color:#000000;"><strong>NOTE:</strong> The commands in video.bat as shown above assume a PAL DV source hence a frame rate of 25 fps.  If your source video is in NTSC format you need to modify lines 2 and 3 to refer to a frame rate of 30 fps.</span></p>
<p><span style="color:#0000ff;"><strong>Encoding a DV avi file</strong></span></p>
<p><span style="color:#000000;">Just save your raw or edited DV file to the c:\videoenc folder.  It has to be called video.avi so save it under that name or rename it as applicable.</span></p>
<p><span style="color:#000000;">Double click the video.bat file in the same folder. </span></p>
<p><span style="color:#000000;">That&#8217;s it. </span><span style="color:#000000;">The whole encoding process will now run from beginning to end under control of the commands in that file. </span><span style="color:#000000;">You can go and make a cup of coffee. </span></p>
<p><span style="color:#000000;">Meantime a DOS box will open and display lots of stuff.  Eventually, the display stops changing and the bottom line reads &#8220;Press any key to continue &#8230;&#8221;  When you do that the DOS box disappears.</span></p>
<p><span style="color:#000000;">You can then find your encoded file, containing H.264 encoded video and AAC encoded audio, </span><span style="color:#000000;">in c:\videoenc</span><span style="color:#000000;">.  It is called video.mp4.  You can now upload it directly to youTube, vimeo, veoh, whatever.</span></p>
<p><span style="color:#0000ff;"><strong>Changing settings</strong></span></p>
<p><span style="color:#000000;">The default resolution is 448 x 336 pixels.  If you want something different just change line 4 of the video.avs file.  You can just open the file with Notepad to make the changes.  You must though ensure that both the horizontal and vertical resolutions are multiples of 16. </span></p>
<p><span style="color:#000000;">The default H.264 encoding quality is 26, on a scale from 1 to 51, using single-pass encoding.  You can modify the quality setting by changing the &#8220;qp&#8221; parameter in line 2 of video.bat.  Lower values for qp improve quality but increase the bitrate and filesize, vice versa for higher values.</span></p>
<p><span style="color:#000000;">In principle it should be possible to obtain better quality for the same filesize by using 2-pass or 3-pass encoding.  So far I haven&#8217;t seen much improvement in my experiments with multi-pass encoding but it&#8217;s early days.  I&#8217;ll report on my discoveries in a future exciting episode of <a href="http://hastalavistavista.wordpress.com/category/vistas-video-nasties/">Vista&#8217;s Video Nasties</a>.</span></p>
<p><span style="color:#0000ff;"><strong>Credits</strong></span></p>
<p><span style="color:#000000;">I found <a href="http://aflux.deltaanime.net/Zero1/MP4/x264.html">this</a> very helpful when I was getting started with a command line solution for use of x264.  It seems to be part of an encoding guide that looked highly promising but was abandoned years ago.  Shame.</span></p>
<p><span style="color:#000000;">The rest of it was down to trial, error and slog.</span></p>
<p align="center"><a title="Bookmark using any bookmark manager!" href="http://www.addthis.com/bookmark.php"><img src="http://s3.addthis.com/button1-bm.gif" border="0" alt="AddThis Social Bookmark Button" width="125" height="16" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hastalavistavista.wordpress.com/183/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hastalavistavista.wordpress.com/183/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hastalavistavista.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hastalavistavista.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hastalavistavista.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hastalavistavista.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hastalavistavista.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hastalavistavista.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hastalavistavista.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hastalavistavista.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hastalavistavista.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hastalavistavista.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hastalavistavista.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hastalavistavista.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hastalavistavista.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hastalavistavista.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=183&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hastalavistavista.com/2007/12/04/vistas-video-nasties-4-h264-recipe-revealed/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/76a0a43f23a4d435c49a5800e0488f2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">hastalavistavista</media:title>
		</media:content>

		<media:content url="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" medium="image">
			<media:title type="html">Vista busy cursor</media:title>
		</media:content>

		<media:content url="http://s3.addthis.com/button1-bm.gif" medium="image">
			<media:title type="html">AddThis Social Bookmark Button</media:title>
		</media:content>
	</item>
		<item>
		<title>Vista&#8217;s Video Nasties #3</title>
		<link>http://hastalavistavista.com/2007/11/30/vistas-video-nasties-3/</link>
		<comments>http://hastalavistavista.com/2007/11/30/vistas-video-nasties-3/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 13:21:14 +0000</pubDate>
		<dc:creator>Dennis Wright</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[Vista's Video Nasties]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[meGUI]]></category>
		<category><![CDATA[Vimeo]]></category>
		<category><![CDATA[x264]]></category>

		<guid isPermaLink="false">http://hastalavistavista.wordpress.com/2007/11/30/vistas-video-nasties-3/</guid>
		<description><![CDATA[I promised in #2 of the Vista&#8217;s Video Nasties series that I would publish a complete Vista-compatible solution for producing decent quality H.264 mp4 videos from camcorder DV footage, for uploading to on-line video hosting services such as youTube and vimeo. I have my solution sorted and it will appear shortly as #4 in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=177&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" alt="Vista busy cursor" /> <font color="#000000">I promised <a href="http://hastalavistavista.wordpress.com/2007/11/16/vistas-video-nasties-2/">in #2</a> of the <a href="http://hastalavistavista.wordpress.com/category/vistas-video-nasties/">Vista&#8217;s Video Nasties</a> series that I would publish a complete Vista-compatible solution for producing decent quality H.264 mp4 videos from camcorder DV footage, for uploading to on-line video hosting services such as youTube and <a href="http://www.vimeo.com/">vimeo</a>.</font></p>
<p><font color="#000000">I have my solution sorted and it will appear shortly as #4 in the series.</font></p>
<p><font color="#000000">What gets me is that I have had to resort to DOS-style batch files, having had no joy with Windows user interfaces for <a href="http://en.wikipedia.org/wiki/X264">x264</a> such as <a href="http://forum.doom9.org/showthread.php?t=96032">meGUI</a>.  </font></p>
<p><font color="#000000">The batch file approach is not so bad.  Once all the right command line instructions are in place you can double-click your batch file and the entire encoding process is pretty much automatic from there.</font></p>
<p><font color="#000000">It does though seem ironic that despite two decades of  successive versions of Windows, each supposedly a step forward from its predecessor, the technology is  still so rickety that you can find yourself having to resort to the world of DOS when things get too complicated.</font></p>
<p><font color="#000000"> </font></p>
<p align="center"><a href="http://www.addthis.com/bookmark.php" title="Bookmark using any bookmark manager!"><img src="http://s3.addthis.com/button1-bm.gif" alt="AddThis Social Bookmark Button" border="0" height="16" width="125" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hastalavistavista.wordpress.com/177/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hastalavistavista.wordpress.com/177/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hastalavistavista.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hastalavistavista.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hastalavistavista.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hastalavistavista.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hastalavistavista.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hastalavistavista.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hastalavistavista.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hastalavistavista.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hastalavistavista.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hastalavistavista.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hastalavistavista.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hastalavistavista.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hastalavistavista.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hastalavistavista.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=177&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hastalavistavista.com/2007/11/30/vistas-video-nasties-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/76a0a43f23a4d435c49a5800e0488f2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">hastalavistavista</media:title>
		</media:content>

		<media:content url="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" medium="image">
			<media:title type="html">Vista busy cursor</media:title>
		</media:content>

		<media:content url="http://s3.addthis.com/button1-bm.gif" medium="image">
			<media:title type="html">AddThis Social Bookmark Button</media:title>
		</media:content>
	</item>
		<item>
		<title>Vista&#8217;s Video Nasties #2</title>
		<link>http://hastalavistavista.com/2007/11/16/vistas-video-nasties-2/</link>
		<comments>http://hastalavistavista.com/2007/11/16/vistas-video-nasties-2/#comments</comments>
		<pubDate>Fri, 16 Nov 2007 11:07:09 +0000</pubDate>
		<dc:creator>Dennis Wright</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Vista's Video Nasties]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[COM Surrogate]]></category>
		<category><![CDATA[DEP]]></category>
		<category><![CDATA[meGUI]]></category>
		<category><![CDATA[video encoding]]></category>
		<category><![CDATA[Vimeo]]></category>
		<category><![CDATA[youTube]]></category>

		<guid isPermaLink="false">http://hastalavistavista.wordpress.com/2007/11/16/vistas-video-nasties-2/</guid>
		<description><![CDATA[I think I am closing in on a reliable, largely automated method of encoding DV video clips, for uploading to on-line video hosting sites such as Vimeo or youTube, in a way that yields decent quality. As mentioned in earlier posts in the Vista&#8217;s Video Nasties series, it has not exactly been plain sailing. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=170&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> <img src="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" alt="Vista busy cursor" />   <font color="#000000">I think I am closing in on a reliable, largely automated method of encoding DV video clips, for uploading to on-line video hosting sites such as <a href="http://vimeo.com/">Vimeo</a> or <a href="http://www.youtube.com/">youTube</a>, in a way that yields decent quality.</font></p>
<p><font color="#000000">As mentioned in earlier posts in the <a href="http://hastalavistavista.wordpress.com/category/vistas-video-nasties/">Vista&#8217;s Video Nasties</a> series, it has not exactly been plain sailing.</font></p>
<p><font color="#000000">I abandoned the <a href="http://www.xvid.org/">XviD</a> codec because it could be relied upon to crash Vista&#8217;s <a href="http://www.howtogeek.com/howto/windows-vista/fix-for-com-surrogate-has-stopped-working-error-in-vista/">COM Surrogate</a> process, and accessing an XviD file in a Windows folder could bring down and force a restart of Windows Explorer.</font></p>
<p><font color="#000000">For a while I switched to <a href="http://www.divx.com/">DivX</a>, which did not seem to upset Vista&#8217;s delicate constitution as much.  This at least allowed me to bring the COM Surrogate back within <a href="http://ask-leo.com/how_do_i_turn_off_data_execution_prevention_errors.html">DEP</a>&#8216;s protective fold.</font></p>
<p><font color="#000000">I then turned my attention to <a href="http://theshapeofdays.com/2005/05/11/a-demonstration-of-h264-encoding.html">H.264</a> in the search for better quality at lower file sizes, having decided that Vimeo, <a href="http://hastalavistavista.wordpress.com/2007/11/05/vimeo-crushes-youtube/">rather than youTube</a>, was the way to go.  Now for Mac users, producing H.264 encoded video is trivial.  It drops out of iMovie without a second thought.  For Windows users, the options are far more limited.  That probably explains why <a href="http://www.vimeo.com/help/imovie">Vimeo&#8217;s guidance</a> on preparing video for upload is so Apple-centric.</font></p>
<p><font color="#000000">I wanted to experiment with H.264, but there is only one free option, namely <a href="http://www.videolan.org/developers/x264.html">x264</a>.  This is a command line program for encoding avi files into H.264 format.  The encoding options are numerous and baffling, but at least there is a GUI program for it called <a href="http://sourceforge.net/projects/megui">meGUI</a> which handles all the details.  This includes the automatic creation of an &#8220;avs&#8221; file whose job it is to  control a pre-processing tool called <a href="http://avisynth.org/mediawiki/Main_Page">AviSynth</a> which I am familiar with from my old DVD encoding experiences.  AviSynth handles the resizing, deinterlacing and so forth which is required before passing the video to x264 for compression.</font></p>
<p><font color="#000000">It seemed too good to be true, and was too good to be true.  I could open meGUI but whenever I tried to open up a video file for processing I was greeted with a Windows dialog box announcing the fact that &#8220;meGUI had stopped working&#8221;, whereupon meGUI closed.</font></p>
<p><font color="#000000">I spent a while looking for answers on the Internet, but was not able to find any.  I could run meGUI on XP which is how I produced the H.264 encoded <a href="http://hastalavistavista.wordpress.com/2007/11/05/vimeo-crushes-youtube/">clip of Sunlight Rock</a> (Gulangyu Island, China) which I then uploaded to Vimeo.  But nothing could induce meGUI to run on Vista.</font></p>
<p><font color="#000000">The <a href="http://forum.doom9.org/showthread.php?t=125121">only advice</a> I was able to find on the web was that it might start working if I reinstalled Vista from scratch. Really useful. Thanks, pal!</font></p>
<p align="center"><a href="http://www.addthis.com/bookmark.php" title="Bookmark using any bookmark manager!"><img src="http://s3.addthis.com/button1-bm.gif" alt="AddThis Social Bookmark Button" border="0" height="16" width="125" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hastalavistavista.wordpress.com/170/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hastalavistavista.wordpress.com/170/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hastalavistavista.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hastalavistavista.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hastalavistavista.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hastalavistavista.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hastalavistavista.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hastalavistavista.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hastalavistavista.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hastalavistavista.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hastalavistavista.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hastalavistavista.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hastalavistavista.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hastalavistavista.wordpress.com/170/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hastalavistavista.wordpress.com/170/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hastalavistavista.wordpress.com/170/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=170&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hastalavistavista.com/2007/11/16/vistas-video-nasties-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/76a0a43f23a4d435c49a5800e0488f2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">hastalavistavista</media:title>
		</media:content>

		<media:content url="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" medium="image">
			<media:title type="html">Vista busy cursor</media:title>
		</media:content>

		<media:content url="http://s3.addthis.com/button1-bm.gif" medium="image">
			<media:title type="html">AddThis Social Bookmark Button</media:title>
		</media:content>
	</item>
		<item>
		<title>Vista&#8217;s Video Nasties #1</title>
		<link>http://hastalavistavista.com/2007/11/07/vistas-video-nasties-1/</link>
		<comments>http://hastalavistavista.com/2007/11/07/vistas-video-nasties-1/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 10:25:04 +0000</pubDate>
		<dc:creator>Dennis Wright</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[Vista's Video Nasties]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[XP]]></category>
		<category><![CDATA[COM Surrogate]]></category>
		<category><![CDATA[DEP]]></category>
		<category><![CDATA[meGUI]]></category>
		<category><![CDATA[video encoding]]></category>
		<category><![CDATA[Vimeo]]></category>

		<guid isPermaLink="false">http://hastalavistavista.wordpress.com/2007/11/07/vistas-video-nasties-1/</guid>
		<description><![CDATA[After my early trials and tribulations with Vista, as detailed in earlier posts, and having briefly sought refuge in XP, I have for the last few months been settled in a sort of Vista comfort land. Some improvements to hardware, a few key updates from Microsoft and finding workarounds to some of the most annoying [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=162&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" alt="Vista busy cursor" />  <font color="#000000">After my early trials and tribulations with Vista, as detailed in earlier posts, and having briefly sought refuge in XP, I have for the last few months been settled in a sort of Vista comfort land.  Some improvements to hardware, a few key updates from Microsoft and finding workarounds to some of the most annoying problems had combined to bring me to the point where everyday use of Vista had ceased to be painful or aggravating.</font></p>
<p><font color="#000000">But then I decided to start dabbling in video work, for the first time in earnest since acquiring a Vista PC.  I&#8217;m now in a world where the <a href="http://hastalavistavista.wordpress.com/2007/10/23/vista-xvid-and-the-com-surrogate/">COM Surrogate crashes</a> with alarming regularity, the video tools I try to use (eg <a href="http://sourceforge.net/projects/megui">meGUI</a>) stop working and even Windows Explorer keeps going down.  To add to this disconcerting mix, a couple of days ago Outlook 2007 crashed while downloading mail (it looked like a buffer overrun stopped by <a href="http://hastalavistavista.wordpress.com/2007/07/18/guess-what-i-turned-dep-on-and-the-sky-didnt-fall-in/">DEP</a>) but I couldn&#8217;t really tell whether that was related to all the other crashes or if it was something genuinely up with Microsoft Office.  In any event, Vista invited me to install the latest Office updates and Outlook seems to have been fine since.</font></p>
<p><font color="#000000">The Explorer crash seems to be associated with video files that have been consigned to the Recycle Bin, in particular videos encoded with codecs that Vista or possibly DEP don&#8217;t like.  I would open the Recycle Bin and select all the files, to see how much space the Bin was taking up.  That would be enough to crash Explorer.  Selecting the one problem file would also do it.  I could not delete it singly &#8211; any attempt to highlight it for deletion would bring on the Explorer crash &#8211; so I had to empty the whole Bin.</font></p>
<p><font color="#000000">I also tried running DEP at its less intrusive level, where it only guards against exploits in Windows components, but that did not stop the flurry of crashes so I turned it back up to full coverage again.</font></p>
<p><font color="#000000">My confidence in Vista has been shaken again.  I&#8217;m well out of comfort land and have had to return to XP for recent video encoding work.  Not satisfied that this is sustainable in the long run I&#8217;ve started the slow painful process of finding workarounds so I can encode my video reliably in Vista.</font></p>
<p><font color="#000000">I will continue to document my experiences on this blog, in future posts under the <a href="http://hastalavistavista.wordpress.com/category/vistas-video-nasties/">Vista&#8217;s Video Nasties</a> series.  The aim is to arrive at robust methodology for creating high quality video that I can upload to one of the better on-line video hosts such as <a href="http://www.vimeo.com/">Vimeo</a>.  I will document the definitive process for anyone who is interested.</font></p>
<p><font color="#000000">Wish me luck and patience.</font></p>
<p align="center"><a href="http://www.addthis.com/bookmark.php" title="Bookmark using any bookmark manager!"><img src="http://s3.addthis.com/button1-bm.gif" alt="AddThis Social Bookmark Button" border="0" height="16" width="125" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hastalavistavista.wordpress.com/162/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hastalavistavista.wordpress.com/162/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hastalavistavista.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hastalavistavista.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hastalavistavista.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hastalavistavista.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hastalavistavista.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hastalavistavista.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hastalavistavista.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hastalavistavista.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hastalavistavista.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hastalavistavista.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hastalavistavista.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hastalavistavista.wordpress.com/162/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hastalavistavista.wordpress.com/162/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hastalavistavista.wordpress.com/162/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=162&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hastalavistavista.com/2007/11/07/vistas-video-nasties-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/76a0a43f23a4d435c49a5800e0488f2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">hastalavistavista</media:title>
		</media:content>

		<media:content url="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" medium="image">
			<media:title type="html">Vista busy cursor</media:title>
		</media:content>

		<media:content url="http://s3.addthis.com/button1-bm.gif" medium="image">
			<media:title type="html">AddThis Social Bookmark Button</media:title>
		</media:content>
	</item>
		<item>
		<title>Vista, XviD and the COM Surrogate</title>
		<link>http://hastalavistavista.com/2007/10/23/vista-xvid-and-the-com-surrogate/</link>
		<comments>http://hastalavistavista.com/2007/10/23/vista-xvid-and-the-com-surrogate/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 11:58:50 +0000</pubDate>
		<dc:creator>Dennis Wright</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[Vista's Video Nasties]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Vista]]></category>
		<category><![CDATA[COM Surrogate]]></category>
		<category><![CDATA[video codecs]]></category>
		<category><![CDATA[Xvid]]></category>
		<category><![CDATA[youTube]]></category>

		<guid isPermaLink="false">http://hastalavistavista.wordpress.com/2007/10/23/vista-xvid-and-the-com-surrogate/</guid>
		<description><![CDATA[I thought things were going too smoothly with Vista. Should have known. This time I made the cardinal error of installing the XviD codec so I could compress some video taken on my travels for upload to YouTube. A new error message started to appear: &#8220;The COM Surrogate has stopped working&#8221; Huh? What the hell [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=153&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" alt="Vista busy cursor" />  <font color="#000000">I thought things were going too smoothly with Vista.  Should have known.</font></p>
<p><font color="#000000">This time I made the cardinal error of installing the <a href="http://www.free-codecs.com/Koepi_XviD_download.htm">XviD codec</a> so I could compress some video taken on my travels for upload to <a href="http://www.youtube.com/">YouTube</a>.  A new error message started to appear:</font></p>
<p><font color="#000000">&#8220;The COM Surrogate has stopped working&#8221;</font></p>
<p><font color="#000000">Huh?  What the hell is the COM Surrogate, thought I?  Well, it turns out this is the new Vista name for the dll host service (dllhost.exe).  This is the dummy process that acts as  a host to &#8220;unattached&#8221; dlls, dynamic link libraries that are normally called by applications to do common tasks for them.  Sometimes these dlls are required to run &#8220;on their own&#8221;, rather than being loaded up by a specific program, and Windows provides a host process, dllhost.exe, to load them up and run them.</font></p>
<p><font color="#000000">OK, dllhost is not exactly an inspired name but COM Surrogate is hardly clearer.  It just puts me in mind of stand-in mothers and biological engineering.  Horrid name.</font></p>
<p><font color="#000000">Anyway, certain <a href="http://en.wikipedia.org/wiki/Video_codec">video codecs</a> seem to fall foul of <a href="http://hastalavistavista.wordpress.com/2007/07/18/guess-what-i-turned-dep-on-and-the-sky-didnt-fall-in/">Data Execution Prevention (DEP)</a>, XviD being one.  Vista itself may or may not be implicated, I&#8217;m not sure.  Whichever way, DEP kills the host process, resulting in the error message. </font></p>
<p><font color="#000000">The only cure I have to date is to add dllhost.exe to the list of applications whitelisted for DEP purposes.   It is not dreadfully satisfactory.  What if some real malware exploited a buffer overrun vulnerability in a dll hosted by the COM Surrogate?  I&#8217;ve now exempted all dlls running under the COM Surrogate from DEP checks, not just XviD.</font></p>
<p><font color="#000000">I may look for a less troublesome codec.  I only picked on XviD because of the <a href="http://www.google.com/support/youtube/bin/answer.py?answer=55745&amp;topic=10526">recommendations</a> on the youTube website.</font></p>
<h5><font color="#000000">PS (added 7 Nov 07):  With hindsight this post is really a precursor to the <a href="http://hastalavistavista.wordpress.com/category/vistas-video-nasties/">Vista&#8217;s Video Nasties</a> series of posts, so I&#8217;m giving it the honorary subtitle of Vista&#8217;s Video Nasties #0.</font></h5>
<p align="center"><a href="http://www.addthis.com/bookmark.php" title="Bookmark using any bookmark manager!"><img src="http://s3.addthis.com/button1-bm.gif" alt="AddThis Social Bookmark Button" border="0" height="16" width="125" /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hastalavistavista.wordpress.com/153/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hastalavistavista.wordpress.com/153/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hastalavistavista.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hastalavistavista.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hastalavistavista.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hastalavistavista.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hastalavistavista.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hastalavistavista.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hastalavistavista.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hastalavistavista.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hastalavistavista.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hastalavistavista.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hastalavistavista.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hastalavistavista.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hastalavistavista.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hastalavistavista.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hastalavistavista.com&amp;blog=921390&amp;post=153&amp;subd=hastalavistavista&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hastalavistavista.com/2007/10/23/vista-xvid-and-the-com-surrogate/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/76a0a43f23a4d435c49a5800e0488f2b?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">hastalavistavista</media:title>
		</media:content>

		<media:content url="http://i30.photobucket.com/albums/c341/rivermeadave/busyanimated.gif" medium="image">
			<media:title type="html">Vista busy cursor</media:title>
		</media:content>

		<media:content url="http://s3.addthis.com/button1-bm.gif" medium="image">
			<media:title type="html">AddThis Social Bookmark Button</media:title>
		</media:content>
	</item>
	</channel>
</rss>
