Archive for the 'Technology' Category

Earth’s Travel Pattern Results in Leap Years


Today, we’re going to talk about a kind of travel that’s unavoidable.

As you sit reading this, though unbeknownst to you (but knownst to us), you are traveling at roughly 107,218 KM an hour (66,622 mph). Think you’re special for this? Sorry, you’re not. Everyone on planet Earth is going this fast as the Earth makes its way around the sun every second of every minute of every hour of every day of every year, to create the seasons. That’s not even taking into account the relative speed of the Earth’s rotation, but let’s keep things simple for now. Being on a living planet such as this, it was probably inevitable that the inhabitants would eventually discover just how tricky the Earth’s orbit really was, especially in the area of time. Today is Leap Day, and I’d like to share some discoveries I’ve made pertaining to it, and perhaps provide a new perspective on the mystery and intrigue of February 29th.

That Darn Julian

For the past 2000 years or so, February 29th, an inherently made up day, has been special. As of 45 BC (after Intercalaris was abolished), February 29th has been modern civilization’s answer to the inconvenient fact that the Earth only makes an orbit around the sun about every 365.24219878 days instead of a happy round number like 365. To make up for this pesky result of messy orbits, 1 day was inserted every 4 years, giving us the leap day. However, this still wasn’t close enough to the true planetary orbit, and after a while the calendar fell farther and farther out of pace with the reality of the seasons.

Time To Make Some Minor Changes

By the time Pope Gregory XIII proclaimed the aptly named Gregorian calendar in 1582, the old Julian calendar had to be adjusted a hefty 11 days forward from October 4, 1582 to October 15, 1582. (So if anyone ever tells you about October 5, 1582, you can safely tell them that it never happened. Unless they’re using dates adjusted to the Gregorian calendar, of course.) Shifting over to the Gregorian calendar was clearly a step in the right direction, and it’s the same calendar that most of the world uses today. The change was simple. In the Julian calendar, every 4th year had a leap day on February 29th. In the new Gregorian calendar, years divisible by 100 are not leap years unless they are also divisible by 400. For instance, the year 1900 was not a leap year, but the year 2000 was because 2000/400 = 500. With this new Gregorian calendar, the average length of a year is 365.2425 days, just a mere 0.00008247% off from the true orbit of 365.24219878 days. This means that the Gregorian calendar only accumulates 1 day of error every 3300 years. Not bad for a calendar approved 426 years ago.

Room for Improvement

However, there’s room for improvement. I came across a clever Swiss man named John Walker who has made an excellent point at his Calendar Converter page (which also works as a superb tool for converting between different calendar systems). John Walker discovered that the Gregorian calendar could be revised to bring the margin of error “comparable to errors due to tidal braking of the rotation of the Earth.” To do this one only has to remove any leap days from years divisible by 4000, which amounts to an average of 365.24225 days per year. According to John, this is the “equivalent to an error of one day over a period of about 19,500 years.” Can’t get much better than that.

Happy Leap Day. :)

How to Encode Video for a Podcast


It’s occurred to me that some of you may be interested in how to create your own high quality web video. I’ve already explained how I create a widescreen movie without an HD camera, but that article did not go into depth about exactly how I encode my video for internet delivery. Much of video encoding is considered a “black art” because different video genres require different levels of data, as well as the dizzying amount of options that most video codecs (or coder/decoders) have. Constant motion through a forest would require a higher rate of data per second than someone talking in front of a stationary background, for example. Creating web video doesn’t have to be difficult, though. Here’s a brief look at how a byteful video is dealt with after its edited.

The Platform: Blip.TV

In the early 21st century as I write this, there are a vast array of places available for content creators to upload their video. The most obvious choice would be YouTube because of its popularity. There is a Byteful Video account on YouTube, but while YouTube is strong in its community, its video quality and flexibility are inferior to many other services.

Byteful Video’s primary video distribution site is Blip.TV because it provides a wonderful and free way to publish and syndicate your own video podcast, what I refer to as a netshow. Blip.TV refers to itself as “blip”, so henceforth I will refer to it as such.

Blip’s strength lies in its flexibility. When a new video is uploaded, Blip automatically creates a Flash video version of the content which is the same format YouTube uses. Flash video is preferred because Flash video works on a wide range of computers. Blip also allows for a customizable show player, which is featured on the Byteful Video page, and even provides a sidebar widget. However, the most important feature is blip’s easy to use RSS syndication. As mentioned in The Importance of RSS, the video feed provides an easy way to be notified of new videos from Byteful Video, and if you add the RSS address to a podcast aggregator such as iTunes or Miro player, new videos will be automatically downloaded as they are released – the basis for the podcasting revolution.

Some of the internet’s best netshows use blip, including Winelibrary TV, Wallstrip, and Mahalo Daily. Even one of my very favorite netshows Beachwalks.tv, who recently featured this site in an episode, uses blip to host its shows. And once again, I’d like to thank Beachwalks for their support. If you want to experience a bit of the Ahola Spirit, I suggest you check them out.

The Key Ingredient for Quality

To ensure quality in online video, the key is understanding how to properly compress the video. With the sheer complexity of most video codecs, there are plenty of technical settings to consider. Many people sidestep this complexity by using iMovie 6’s “Share” menu presets because the resulting video is actually quite good. However, to get the best quality per bit, there is an “expert” option as well. The main issue at hand, and the reason codecs were invented, is to balance a small file size with quality. Finding the sweet spot between a small file size and great quality takes time. Here is how a byteful video is exported: In Quicktime player or iMovie (both use the same encoder), export the movie as “Movie to MPEG-4″. This container is preferred because compatible over a wide range of devices. Then click the “options” button and set these settings:

Byteful Video Settings

- In the “Video” tab -

Video Format: h.264 (most efficient video codec for the web)
Data Rate: 1500 Kbps, Optimized for Download
Image size: 640×360 for widescreen, 640×480 for fullscreen
Frame rate: Current
Key frame: automatic (best to choose auto with h.264, it’s very smart)

• Click the Video options button and choose:

Encoding Mode: Best Quality (multi-pass) (which looks much better)
Restrict profiles to: Baseline (which makes it compatible with all iPods, as long as you’re using 1500kbps data rate and not much higher)

• Click “OK”

- In the “Audio” tab -

Audio Format: AAC-LC (music)
Data Rate: 128kbps (can be set it lower if there is no music)
Channels: Stereo
Output Sample Rate: 44.100khz
Encoding quality: Best

- In the “Streaming” tab -

• Check “Enable Streaming” and leave the numbers as they are (this allows your movie to download as it’s playing. this is also known as “hinting.” go figure.)

Encoding Takes Time

Click “Okay”, click “Save”, and go make a banana smoothie or something as this will probably take a while. On a 1.5ghz Powerbook, it takes about 4-5 hours to compress a 22 minute movie with these settings, so you’ll definitely want to experiment with a short clip of perhaps 10 seconds. However, make sure that clip contains a lot of variety so you can see how the settings affect different situations. If you want to have chapter markers in your video, you must use Apple’s Compressor program to preserve the chapter markers in the final file. Thanks Steve and the other guys at Revision3 for their help in figuring this out.

Experiment for Yourself

I’ve reached these settings after much experimentation. These settings work best for Byteful Video because they’re completely compatible with all video iPods, Apple TVs, devices that play MPEG-4 video, and all computers with Quicktime 7 installed; and more importantly, the settings are a great balance between a small file size and sharp high quality video. However, depending on how you want to use your video, these settings may not be the best choice for you. As I said before, finding the sweet spot between a small file size and great quality takes time. When you export, just make sure you experiment with only a short piece of your work. You can choose only a small portion of video in iMovie by checking “export selected clip only” when you go to “export” in the “share” menu.

As always, experiment and learn.