<?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>TikiRobot! &#187; tracey pooh</title>
	<atom:link href="http://www.tikirobot.net/wp/author/tracey-pooh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tikirobot.net/wp</link>
	<description>Mai Tais and Blinky Lights, Ahoy!</description>
	<lastBuildDate>Wed, 01 Feb 2012 22:14:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Star Wars re-remastered to high quality 1977 version!</title>
		<link>http://www.tikirobot.net/wp/2010/04/18/star-wars-re-remastered-to-high-quality-1977-version/</link>
		<comments>http://www.tikirobot.net/wp/2010/04/18/star-wars-re-remastered-to-high-quality-1977-version/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 18:41:05 +0000</pubDate>
		<dc:creator>tracey pooh</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[remaster]]></category>
		<category><![CDATA[star wars]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=3099</guid>
		<description><![CDATA[So I wanted to sit down in my updated home theatre and watch one of my favorite films, &#8220;Star Wars&#8221;. Problem is, I have two versions on DVD, and neither are ideal. The 2004 DVD version has remastered audio and video, but also added scenes and changes I really don&#8217;t like. The 1977 DVD version [...]]]></description>
			<content:encoded><![CDATA[<p>So I wanted to sit down in my updated home theatre and watch one of my favorite films, &#8220;Star Wars&#8221;.  Problem is, I have two versions on DVD, and neither are ideal.  The 2004 DVD version has remastered audio and video, but also added scenes and changes I really don&#8217;t like.  The 1977 DVD version is a poor quality transfer and encoding.</p>
<p>So I <strong> combined the 1977 and 2004 DVDs</strong> into the highest quality 1977 version of the film!   I show all my scripts and techniques here, too, so you can make the same version from your two DVDs, too!<br />
<a href="http://www.archive.org/details/reremaster">http://www.archive.org/details/reremaster</a></p>
<p><div class="wp-caption alignleft" style="width: 434px"><a href="http://www.archive.org/details/reremaster"><img title="star wars comparison of two films" src="http://www.archive.org/download/reremaster/both10107-small.jpg" alt="star wars comparison of two films" width="424" height="480" /></a><p class="wp-caption-text">star wars comparison of two films</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2010/04/18/star-wars-re-remastered-to-high-quality-1977-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fotobook widget and plugin for wordpress</title>
		<link>http://www.tikirobot.net/wp/2009/05/24/fotobook-widget-and-plugin-for-wordpress/</link>
		<comments>http://www.tikirobot.net/wp/2009/05/24/fotobook-widget-and-plugin-for-wordpress/#comments</comments>
		<pubDate>Mon, 25 May 2009 06:36:24 +0000</pubDate>
		<dc:creator>tracey pooh</dc:creator>
				<category><![CDATA[photos]]></category>
		<category><![CDATA[code code]]></category>
		<category><![CDATA[ddAdd new tag]]></category>
		<category><![CDATA[word]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2508</guid>
		<description><![CDATA[Make your facebook photos magically appear on your wordpress site OK I&#8217;m certainly not all that and a bag of chips, but set to roll out in one week for a 565 mile bike trip to LA (over 7 days &#8212; I&#8217;m not *that* crazy 8-) I wanted to see if there was a nice/cute [...]]]></description>
			<content:encoded><![CDATA[<h3>Make your facebook photos magically appear on your wordpress site</h3>
<p>OK I&#8217;m certainly not all that and a bag of chips, but set to roll out in one week for a 565 mile bike trip to LA (over 7 days &#8212; I&#8217;m not *that* crazy 8-) I wanted to see if there was a nice/cute way to make me:</p>
<ul>
<li>take pictures with my ifone</li>
<li>use the facebook app (to either take a picture or select one from ifone)</li>
<li>upload to facebook</li>
<li>have it automatically show up on my site</li>
</ul>
<p>the first 3 are easy-peasy.  you throw money at the problem and get the ifone with its legendarily crappy cell service and the free facebook app.</p>
<p>for the last point, i searched around wordpress plugins and <strong>found</strong><strong> &#8220;fotobook&#8221; plugin</strong> (which also comes with two default disabled widgets).</p>
<p>it&#8217;s a liddle scary &#8212; you login to facebook while it&#8217;s &#8220;bugging&#8221; you, but once you done that (and given it your car keys) it figures out all your photo albums.   you can pick which albums you want to show/hide.   you can login/auth more accounts/people too (but so far I only love myself).  to make my left-hand column &#8220;NEW TRACEY PIX&#8221; on</p>
<p><a href="http://www.dumbbunny.org/">my wordpress site</a></p>
<p>show up, I enabled the &#8220;photos widget&#8221;, set it to &#8220;most recent&#8221;, and tweaked the underlying PHP code to make a simple link to my facebook &#8220;mobile uploads&#8221; public page.</p>
<p>I think there&#8217;s an &#8220;update all albums&#8221; button somewhere, but there&#8217;s also simple instruction to &#8220;cron a get of url [X]&#8221; every X period of time so I did that.  Next, I tested it and &#8220;voila!&#8221; 5 minutes later, and then a few hours later when Hunter tagged me in some pictures, the left-hand widget updated as if by magic.</p>
<p>I guess this sort of thing excites me.  May be old hat.  I know raj got tikirobot auto-posting the twitter feeds so maybe he&#8217;s figured something like this out already too.</p>
<p>neat, no?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2009/05/24/fotobook-widget-and-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ranchtronix case</title>
		<link>http://www.tikirobot.net/wp/2009/05/08/ranchtronix-case/</link>
		<comments>http://www.tikirobot.net/wp/2009/05/08/ranchtronix-case/#comments</comments>
		<pubDate>Sat, 09 May 2009 06:04:44 +0000</pubDate>
		<dc:creator>tracey pooh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[tronix]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/2009/05/08/ranchtronix-case/</guid>
		<description><![CDATA[RaNChTroNiX has the same spelling as RANchTronix (or maybe every1 already knew that 8-)]]></description>
			<content:encoded><![CDATA[<p>RaNChTroNiX<br />
has the same spelling as<br />
RANchTronix<br />
(or maybe every1 already knew that 8-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2009/05/08/ranchtronix-case/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>archive.org supports random seeking in their videos now!</title>
		<link>http://www.tikirobot.net/wp/2009/05/08/archiveorg-supports-random-seeking-in-their-videos-now/</link>
		<comments>http://www.tikirobot.net/wp/2009/05/08/archiveorg-supports-random-seeking-in-their-videos-now/#comments</comments>
		<pubDate>Sat, 09 May 2009 04:03:34 +0000</pubDate>
		<dc:creator>tracey pooh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/2009/05/08/archiveorg-supports-random-seeking-in-their-videos-now/</guid>
		<description><![CDATA[i finally found the magic dead chicken to use with flowplayer + lighttpd + mod_h264_streaming. it turns out one needs to download and use an additional .swf file to get the scrubber bar to send the (already working) &#8220;?start=610&#8243; (to start 610 seconds in) parameter to our litey on archive.org phew! yay!]]></description>
			<content:encoded><![CDATA[<p>i finally found the magic dead chicken to use<br />
with flowplayer + lighttpd + mod_h264_streaming.<br />
it turns out one needs to download and use an additional<br />
.swf file to get the scrubber bar to send the<br />
(already working) &#8220;?start=610&#8243; (to start 610 seconds in)<br />
parameter to our litey on archive.org</p>
<p>phew!   yay!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2009/05/08/archiveorg-supports-random-seeking-in-their-videos-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ffmpeg building on mac intel/x386</title>
		<link>http://www.tikirobot.net/wp/2009/04/01/ffmpeg-building-on-mac-intelx386/</link>
		<comments>http://www.tikirobot.net/wp/2009/04/01/ffmpeg-building-on-mac-intelx386/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 05:14:36 +0000</pubDate>
		<dc:creator>tracey pooh</dc:creator>
				<category><![CDATA[osx]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[ffmpeg]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2409</guid>
		<description><![CDATA[ffmpeg v0.5 just came out. it&#8217;s the bomb. it&#8217;s got tons of fixes and massive amounts of new codecs that it can read. for example, it can now decode my professional filmmaker brother&#8217;s &#8220;DVC ProHD&#8221; highly proprietary (and massive bitrate!) format! it can also decode flac and 24-bit flac. (encoding flac is disappointing though). at [...]]]></description>
			<content:encoded><![CDATA[<p>ffmpeg v0.5 just came out.  it&#8217;s the bomb.  it&#8217;s got tons of fixes and massive amounts of new codecs that it can read.  for example, it can now decode my professional filmmaker brother&#8217;s &#8220;DVC ProHD&#8221; highly proprietary (and massive bitrate!) format!   it can also decode flac and 24-bit flac.  (encoding flac is disappointing though).</p>
<p>at any rate!   macports is a great way to get it installed on your mac.<br />
the current way of setting up macports and then doing<br />
   sudo port install ffmpeg<br />
works fine on my PPC at work (oddly &#8212; pretty old computer now) but not my Air (intel x386)</p>
<p>So I set out to find the fixes needed to make it work.  Here they are:</p>
<p>step 1: install  macports &#8212; see http://www.macports.org/install.php</p>
<p>sudo port install x264 +noasm   # for i386 (not needed for PPC)<br />
sudo port fetch ffmpeg<br />
sudo port checksum ffmpeg<br />
sudo port extract ffmpeg<br />
sudo port patch ffmpeg<br />
remove &#8220;&#8211;enable-shared&#8221; from /opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/ffmpeg/Portfile<br />
sudo port install ffmpeg</p>
<p>(and &#8220;ffplay&#8221; is pretty cool now!  i am considering using it over mplayer, hmm&#8230;.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2009/04/01/ffmpeg-building-on-mac-intelx386/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tracey and Hunter go to Obama&#8217;s Inauguration</title>
		<link>http://www.tikirobot.net/wp/2009/02/03/tracey-and-hunter-go-to-obamas-inauguration/</link>
		<comments>http://www.tikirobot.net/wp/2009/02/03/tracey-and-hunter-go-to-obamas-inauguration/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 07:13:27 +0000</pubDate>
		<dc:creator>tracey pooh</dc:creator>
				<category><![CDATA[video]]></category>
		<category><![CDATA[excursions]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2262</guid>
		<description><![CDATA[Hunter and I travelled from CA to D.C. to watch Obama&#8217;s Inauguration. We stood in the very cold historic day for 5 hours (after 3 hours getting from VA to DC) but were THRILLED! We watched from The Mall, at 12 Street, about 2/3 of the distance from The Capitol to the Washington Monument. I [...]]]></description>
			<content:encoded><![CDATA[<p>Hunter and I travelled from CA to D.C. to watch Obama&#8217;s Inauguration.<br />
We stood in the very cold historic day for 5 hours (after 3 hours getting from VA to DC) but were <strong>THRILLED</strong>!<br />
We watched from The Mall, at 12 Street, about 2/3 of the distance from The Capitol to the Washington Monument.</p>
<p>I made a 7 minute short video of our 70 hour trip 8-)</p>
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="322"><param name="movie" value="http://www.archive.org/flow/flowplayer.commercial-3.0.3.swf" /><param name="allowfullscreen" value="true" /><param name="flashvars" value='config={"key":"#$b6eb72a0f2f1e29f3d4","autoBuffering":true,"playlist":[{"url":"http://www.archive.org/download/inauguration2009/inauguration2009.thumbs/inauguration2009_512kb_000001.jpg","autoPlay":true},{"url":"http://www.archive.org/download/inauguration2009/inauguration2009_512kb.mp4","autoPlay":false,"accelerated":true,"scaling":"fit"}],"clip":{"autoPlay":false,"accelerated":true,"scaling":"fit"},"plugins":{"audio":{"url":"http://www.archive.org/flow/flowplayer.audio-3.0.3-dev.swf"},"controls":{"playlist":true,"fullscreen":true,"gloss":"high","backgroundColor":"0x000000","backgroundGradient":"medium","sliderColor":"0x777777","progressColor":"0x777777","timeColor":"0xeeeeee","durationColor":"0x01DAFF","buttonColor":"0x333333","buttonOverColor":"0x505050"}}}' /><embed type="application/x-shockwave-flash" width="400" height="322" allowfullscreen="true" src="http://www.archive.org/flow/flowplayer.commercial-3.0.3.swf" flashvars='config={"key":"#$b6eb72a0f2f1e29f3d4","autoBuffering":true,"playlist":[{"url":"http://www.archive.org/download/inauguration2009/inauguration2009.thumbs/inauguration2009_512kb_000001.jpg","autoPlay":true},{"url":"http://www.archive.org/download/inauguration2009/inauguration2009_512kb.mp4","autoPlay":false,"accelerated":true,"scaling":"fit"}],"clip":{"autoPlay":false,"accelerated":true,"scaling":"fit"},"plugins":{"audio":{"url":"http://www.archive.org/flow/flowplayer.audio-3.0.3-dev.swf"},"controls":{"playlist":true,"fullscreen":true,"gloss":"high","backgroundColor":"0x000000","backgroundGradient":"medium","sliderColor":"0x777777","progressColor":"0x777777","timeColor":"0xeeeeee","durationColor":"0x01DAFF","buttonColor":"0x333333","buttonOverColor":"0x505050"}}}'/></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2009/02/03/tracey-and-hunter-go-to-obamas-inauguration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://www.archive.org/download/inauguration2009/inauguration2009_512kb.mp4" length="57105677" type="video/mp4" />
		</item>
		<item>
		<title>ffmpeg hook to aid with &#8220;rectangular pixels&#8221;</title>
		<link>http://www.tikirobot.net/wp/2008/11/16/ffmpeg-hook-to-aid-with-rectangular-pixels/</link>
		<comments>http://www.tikirobot.net/wp/2008/11/16/ffmpeg-hook-to-aid-with-rectangular-pixels/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 19:44:51 +0000</pubDate>
		<dc:creator>tracey pooh</dc:creator>
				<category><![CDATA[video]]></category>
		<category><![CDATA[code code]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[rectangular pixels]]></category>
		<category><![CDATA[widescreen]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=2048</guid>
		<description><![CDATA[Tired of screen-scraping the output of ffmpeg and/or mplayer to get the parameters / clip info for a media file? This hook attempts to remedy this by printing simple information about the passed in video from the cmd line. It will also print out whether or not the clip is using &#8220;rectangular pixels&#8221;. WTF is a rectangular [...]]]></description>
			<content:encoded><![CDATA[<p>Tired of screen-scraping the output of ffmpeg and/or mplayer to get the parameters / clip info for a media file?</p>
<p><strong>This hook attempts to remedy this by printing simple information about the passed in video</strong> from the cmd line.</p>
<p><strong><span style="font-weight: normal;">It</span> will also print out whether or not the clip is using &#8220;rectangular pixels&#8221;.</strong></p>
<h2>WTF is a rectangular pixel?</h2>
<p> </p>
<p>Well, the easiest examples are DVDs.  You <strong>only want to buy a DVD</strong> if it says one of two standard phrases on it &#8212; &#8220;<strong>Enhanced for 16:9 TVs</strong>&#8221; or &#8220;<strong><a href="http://en.wikipedia.org/wiki/Anamorphic_widescreen#Packaging">Anamorphic widescreen</a></strong>&#8220;.  They both mean the same thing &#8212; namely that the video on the DVD disk is wider than 4:3 aspect (pretty much all films are ratio 16:9 or even wider like ratio 2.35:1) *and* that it didn&#8217;t *waste* any DVD bytes by encoding &#8220;top/bottom black bars&#8221;.  (If it doesn&#8217;t say those code phrases, it&#8217;s an older, crappy/low budget produced, or worse a &#8220;pan-n-scan&#8221; chopped film (where they lop off the left and right sides of each frame to fit into a 4:3 TV!)  Worst yet, if the DVD <em>only</em> says something like &#8220;widescreen version&#8221;, though it sounds good, it means while they didn&#8217;t cut off the picture, they wasted 25% (or more!) of the pixels encoding &#8220;black bars&#8221; on the top and bottom.  So you have less pixels in the DVD encoding the picture compared to an &#8220;anamorphic&#8221; version of the same thing.  Hello crappy quality!)</p>
<p> </p>
<p> </p>
<h3>Anamorphic DVDs are encoded internally at 720&#215;480 pixels per image.</h3>
<p>Now look at this:</p>
<p>  4:3 video == 1.33 ratio == <span style="text-decoration: underline;">640&#215;480</span> pixels image</p>
<p>16:9 video  == 1.78 ratio == <span style="text-decoration: underline;">854&#215;480</span> pixels image</p>
<p>so <strong>w</strong><strong>hat is <span style="text-decoration: underline;">720&#215;480</span>?  it&#8217;s almost perfectly in the middle of those two</strong> &#8212; math: 720/480 = 1.5</p>
<p>So the &#8220;encoded transport image size&#8221; is neither 16:9, nor 4:3 &#8212; it&#8217;s right in the middle, capable to encode either a 4:3 video (like non-high def TV, many computer screens) or 16:9 video (high def TV, some digital video).  I like to think of it as &#8220;how the formats that came out right before HDTV took off, compromised to hedge there bets to be between 4:3 and 16:9&#8243;.</p>
<p>The final <strong>critical bit of information about a DVD is the &#8220;aspect ratio&#8221; </strong>(not of the overall image, confusingly, but <strong>of each encoded *pixel*</strong>!)  This says &#8220;wait, this pixel isn&#8217;t square, literally, like you&#8217;d think if you just read the image &#8212; it&#8217;s actually supposed to be stretched to make the *overall image* either 640 pixels wide (squoosh down from 720) or 854 (stretch wider to 854).  So the video track is &#8220;flagged&#8221; with a &#8220;pixel aspect&#8221; (often referred to as PAR (Pixel Aspect Ratio), SAR (Sample Aspect Ratio), or DAR (Display Aspect Ratio) &#8212; some of those have some slight nuances/differences, but that&#8217;s digging too deep).  Anyway, neat, huh?  Your anamorphic DVD is a changeling!  (maybe &#8220;anamorphic&#8221; makes more sense mnemonically now 8-)  (PS: &#8220;DV&#8221; video &#8212; the most common format that digital camcorders that write to tape use &#8212; is similar.  720&#215;480 pixels/image plus a &#8220;flag&#8221; for what each pixel &#8220;shape&#8221; is).</p>
<p> </p>
<p><strong>This hook I wrote will output information about the clip</strong> (like &#8220;ffmpeg -i&#8221; will do, but in a format easier to parse) <strong>as well as information about the pixels</strong> (unlike ffmpeg).  So you can then know more about a clip if you are going to do things like pull single frames/thumbnails from it or convert it to another format.  We have been using this at Internet Archive for our movies for over a year and a half now and it works great!</p>
<p> </p>
<h3><a href="http://www.archive.org/~tracey/downloads/identify.c">C Code is here</a>.  </h3>
<p>There are some instructions for compiling with an ffmpeg source at the top of the C code.  (There is also an ubuntu-on-AMD compiled &#8220;.so&#8221; at that link by changing the suffix from &#8220;.c&#8221; to &#8220;.so&#8221;, FWIW)</p>
<p> </p>
<h2>Example invocation and output:</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-vhook</span> <span style="color: #ff0000;">&quot;/petabox/deriver/identify.so oldpresidio.mpeg&quot;</span>
FFmpeg version SVN-rUNKNOWN, Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2000</span>-<span style="color: #000000;">2007</span> Fabrice Bellard, et al.
  configuration: <span style="color: #660033;">--enable-gpl</span> <span style="color: #660033;">--enable-pp</span> <span style="color: #660033;">--enable-libvorbis</span> <span style="color: #660033;">--enable-libogg</span> <span style="color: #660033;">--enable-liba52</span> <span style="color: #660033;">--enable-libdts</span> <span style="color: #660033;">--enable-dc1394</span> <span style="color: #660033;">--enable-libgsm</span> <span style="color: #660033;">--disable-debug</span> <span style="color: #660033;">--enable-libfaac</span> <span style="color: #660033;">--enable-libfaad</span> <span style="color: #660033;">--enable-libmp3lame</span> <span style="color: #660033;">--enable-x264</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>
  libavutil version: 49.3.0
  libavcodec version: 51.38.0
  libavformat version: 51.10.0
  built on Nov <span style="color: #000000;">30</span> <span style="color: #000000;">2007</span> <span style="color: #000000;">19</span>:09:<span style="color: #000000;">20</span>, <span style="color: #c20cb9; font-weight: bold;">gcc</span>: 4.1.3 <span style="color: #000000;">20070929</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>prerelease<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>Ubuntu 4.1.2-16ubuntu2<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Video: mpeg2video, yuv420p, 720x480, <span style="color: #007800;">q</span>=<span style="color: #000000;">2</span>-<span style="color: #000000;">31</span>, <span style="color: #000000;">8000</span> kb<span style="color: #000000; font-weight: bold;">/</span>s
width: <span style="color: #000000;">720</span>
height: <span style="color: #000000;">480</span>
aspect: <span style="color: #000000;">32</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">27</span>
fps: <span style="color: #000000;">29.97</span>
duration: 00:03:<span style="color: #000000;">05.2</span>
audio: <span style="color: #c20cb9; font-weight: bold;">true</span>
Failed to Configure <span style="color: #000000; font-weight: bold;">/</span>petabox<span style="color: #000000; font-weight: bold;">/</span>deriver<span style="color: #000000; font-weight: bold;">/</span>identify.so
Failed to add video hook <span style="color: #000000; font-weight: bold;">function</span>: <span style="color: #000000; font-weight: bold;">/</span>petabox<span style="color: #000000; font-weight: bold;">/</span>deriver<span style="color: #000000; font-weight: bold;">/</span>identify.so oldpresidio.mpeg</pre></div></div>

<div>The &#8220;failure&#8221; above at the end is deliberate/OK (it just makes sure ffmpeg stops and doesn&#8217;t try to transcode).</div>
<div>So we see that <a href="http://www.archive.org/details/oldpresidio">this video clip:</a></div>
<div style="background-color:black; text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="320" height="268" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.archive.org/flow/FlowPlayerLight.swf?config={embedded:true,showFullScreenButton:true,showMuteVolumeButton:true,showMenu:false,autoBuffering:false,autoPlay:false,initialScale:'fit',usePlayOverlay:false,playList:[{url:'oldpresidio/oldpresidio_512kb.mp4'}],controlBarGloss:'high',showVolumeSlider:true,baseURL:'http://www.archive.org/download/',loop:false,controlBarBackgroundColor:'0x000000',splashImageFile:'oldpresidio/oldpresidio.thumbs/oldpresidio_00000001.jpg'}" /><embed type="application/x-shockwave-flash" width="320" height="268" src="http://www.archive.org/flow/FlowPlayerLight.swf?config={embedded:true,showFullScreenButton:true,showMuteVolumeButton:true,showMenu:false,autoBuffering:false,autoPlay:false,initialScale:'fit',usePlayOverlay:false,playList:[{url:'oldpresidio/oldpresidio_512kb.mp4'}],controlBarGloss:'high',showVolumeSlider:true,baseURL:'http://www.archive.org/download/',loop:false,controlBarBackgroundColor:'0x000000',splashImageFile:'oldpresidio/oldpresidio.thumbs/oldpresidio_00000001.jpg'}"></embed></object></div>
<div>is indeed widescreen by the &#8220;aspect&#8221; line above (indicating the pixels are rectangular, not square) with value 32/27.</div>
<div>If we multiply the encoded image width of &#8220;720&#8243; by 32 and divide by 27, we get the magic/correct 853.33 (round up or down to nearest pixel).</div>
<div>We use this utility at Internet Archive to make user friendly formats like &#8220;h.264 .mp4&#8243; videos and &#8220;Ogg Theora .ogv&#8221; videos that get converted to the proper square pixel equivalent (and *not* messup widescreen videos 8-)</div>
]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2008/11/16/ffmpeg-hook-to-aid-with-rectangular-pixels/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>geek stuff from archive.org &#8212; making Ogg Theora videos</title>
		<link>http://www.tikirobot.net/wp/2008/11/06/geek-stuff-from-archiveorg-making-ogg-theora-videos/</link>
		<comments>http://www.tikirobot.net/wp/2008/11/06/geek-stuff-from-archiveorg-making-ogg-theora-videos/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 01:38:34 +0000</pubDate>
		<dc:creator>tracey pooh</dc:creator>
				<category><![CDATA[video]]></category>
		<category><![CDATA[archive.org]]></category>
		<category><![CDATA[code code]]></category>
		<category><![CDATA[ogg]]></category>
		<category><![CDATA[theora]]></category>

		<guid isPermaLink="false">http://www.tikirobot.net/wp/?p=1973</guid>
		<description><![CDATA[Fast, reliable way to encode Theora Ogg videos using ffmpeg, libtheora, and liboggz archive.org has started to make theora derivatives for movie files, where we create an Ogg Theora video format output for each movie file.   after trying a bunch of tools over a good corpus of wide-ranging videos, i found a neat way to [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="text-decoration: underline;">Fast, reliable way to encode Theora Ogg videos using ffmpeg, libtheora, and liboggz</span></h2>
<p>archive.org has started to make theora derivatives for movie files, where we create an <span style="text-decoration: underline;">Ogg </span><span style="text-decoration: underline;">Theora video</span> format output for each movie file.     after trying a bunch of tools over a good corpus of wide-ranging videos, i found a neat way to make the Archive derivatives.</p>
<h3> High Level:</h3>
<h3>
<ul>
<li><span style="font-weight: normal;">use </span><a href="http://ffmpeg.mplayerhq.hu">ffmpeg</a><span style="font-weight: normal;"> to turn any video to &#8220;rawvideo&#8221;. </span></li>
<li><span style="font-weight: normal;">pipe its output to *another* ffmpeg to turn the video to &#8220;yuv4mpegpipe&#8221;.</span></li>
<li><span style="font-weight: normal;">pipe its output to the </span><a rel="nofollow" href="http://www.theora.org/downloads/"><span style="color: #000000; text-decoration: none;"><span style="font-weight: normal;">libtheora</span></span></a><span style="font-weight: normal;"> tool.  </span></li>
<li><span style="font-weight: normal;">for videos with audio, ffmpeg create a vorbis audio .ogg file.  </span></li>
<li><span style="font-weight: normal;">add tasty metadata (with <a href="http://svn.annodex.net/liboggz/trunk/"><strong>liboggz</strong></a> utils).  </span></li>
<li><span style="font-weight: normal;">combine the video and audio ogg files to an .ogv output!     </span></li>
</ul>
</h3>
<h3>Detailed example:   </h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-v</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-an</span> <span style="color: #660033;">-deinterlace</span>  <span style="color: #660033;">-s</span> 400x300 <span style="color: #660033;">-r</span> <span style="color: #000000;">20.00</span> <span style="color: #660033;">-i</span> CapeCodMarsh.avi <span style="color: #660033;">-vcodec</span> rawvideo -pix_fmt yuv420p <span style="color: #660033;">-f</span> rawvideo -  <span style="color: #000000; font-weight: bold;">|</span> \
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-v</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-an</span> <span style="color: #660033;">-f</span> rawvideo   <span style="color: #660033;">-s</span> 400x300 <span style="color: #660033;">-r</span> <span style="color: #000000;">20.00</span> <span style="color: #660033;">-i</span> - <span style="color: #660033;">-f</span> yuv4mpegpipe -  <span style="color: #000000; font-weight: bold;">|</span> \
<span style="color: #000000; font-weight: bold;">/</span>petabox<span style="color: #000000; font-weight: bold;">/</span>deriver<span style="color: #000000; font-weight: bold;">/</span>libtheora-<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">/</span>lt-encoder_example <span style="color: #660033;">--video-rate-target</span> 512k - <span style="color: #660033;">-o</span> tmp.ogv;
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ffmpeg</span> <span style="color: #660033;">-y</span> <span style="color: #660033;">-i</span> CapeCodMarsh.avi <span style="color: #660033;">-vn</span> <span style="color: #660033;">-acodec</span> vorbis <span style="color: #660033;">-ac</span> <span style="color: #000000;">2</span> <span style="color: #660033;">-ab</span> 128k <span style="color: #660033;">-ar</span> <span style="color: #000000;">44100</span> audio.ogg;
<span style="color: #000000; font-weight: bold;">/</span>petabox<span style="color: #000000; font-weight: bold;">/</span>sw<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>oggz-comment audio.ogg <span style="color: #660033;">-o</span> audio2.ogg <span style="color: #007800;">TITLE</span>=<span style="color: #ff0000;">&quot;Cape Cod Marsh&quot;</span> <span style="color: #007800;">ARTIST</span>=<span style="color: #ff0000;">&quot;Tracey Jaquith&quot;</span> <span style="color: #007800;">LICENSE</span>=<span style="color: #ff0000;">&quot;http://creativecommons.org/licenses/publicdomain/&quot;</span> <span style="color: #007800;">DATE</span>=<span style="color: #ff0000;">&quot;2004&quot;</span> <span style="color: #007800;">ORGANIZATION</span>=<span style="color: #ff0000;">&quot;Dumb Bunny Productions&quot;</span>  <span style="color: #007800;">LOCATION</span>=http:<span style="color: #000000; font-weight: bold;">//</span>www.archive.org<span style="color: #000000; font-weight: bold;">/</span>details<span style="color: #000000; font-weight: bold;">/</span>CapeCodMarsh;
<span style="color: #000000; font-weight: bold;">/</span>petabox<span style="color: #000000; font-weight: bold;">/</span>sw<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>oggzmerge tmp.ogv audio2.ogg <span style="color: #660033;">-o</span> CapeCodMarsh.ogv;</pre></div></div>

<h3>WTFs:</h3>
<ul>
<li>Why the double pipe above? Some videos could not go directly to yuv4mpegpipe format such that libtheora (or ffmpeg2theora) would work all the time.</li>
<li>We do the vorbis audio outside of libtheora (or ffmpeg2theora) to avoid any issues with Audio/Video sync.</li>
<li>We convert to yuv420p in the rawvideo step because ffmpeg2theora has (i think) some known issues of not handling all yuv422 video inputs (i found at least a few videos that did this).</li>
<li>We add the metadata to the audio vorbis ogg because adding it to the video ogv file wound up making the first video frame not a keyframe (!)</li>
</ul>
<p>So this will end up working in <strong>Firefox 3.1 and greater &#8212; the new HTML &#8220;video&#8221; tag:</strong></p>
<p style="padding-left: 30px;">&lt;video controls=&#8221;true&#8221; autoplay=&#8221;true&#8221; src=&#8221;http://www.archive.org/download/commute/commute.ogv&#8221;&gt; for firefox betans &lt;/video&gt;</p>
<p>This technique above worked nicely across a wide range of source and &#8220;trashy&#8221; 46 videos that I use for QA before making live a new way to derive our videos at archive.org ( <a href="http://www.archive.org/~MY-FIRST-NAME/_/stream.php">http://www.archive.org/~MY-FIRST-NAME</a><a href="http://www.archive.org/~MY-FIRST-NAME/_/stream.php">/_/stream.php</a>  [sorry don't necessarily want all that crawled by non rajbot robots] )</p>
<p>-tracey jaquith   &#8220;don&#8217;t make me 3:2 pulldown you&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tikirobot.net/wp/2008/11/06/geek-stuff-from-archiveorg-making-ogg-theora-videos/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
<enclosure url="http://www.archive.org/download/commute/commute.ogv" length="9155291" type="video/ogg" />
		</item>
	</channel>
</rss>

