A Django site.
April 20, 2008

Hans Fugal
no nic
The Fugue :
» 64-bit Transcoding

I have a 64-bit desktop machine, that has rarely been run as a 64-bit machine. The hassle was too great and I couldn't really see a reason to put up with it.

I think that 64-bit support has come a long way in the meantime, and it may be time to try it out. It sounds like a livable situation. So with the pending release of the next Ubuntu version I'm thinking of wiping and going 64-bit.

One of the primary motivators is that 64-bit holds some promise for transcoding video, and now that I have an HDHomeRun to capture over-the-air HDTV signals, I will be doing quite a bit of video transcoding for MythTV (to save disk space—a full-quality HDTV program is about 9 gigabytes per hour).

But before taking the plunge, I thought I'd do an empirical test and see if there would be any real savings. I captured a couple of minutes of HD content from PBS, then transcoded 60 seconds using ffmpeg and mencoder. Then I did the same with the Ubuntu 64-bit live CD. The 64-bit execution difference was statistically significant.

ffmpeg was about 1.12 times as fast—a savings of about 10 seconds per minute, or 10 minutes per hour.

mencoder was about 1.08 times as fast—similar savings.

I didn't test mythtranscode itself, since getting it installed in a live CD environment would be too much work. I also must point out some other possible confounding variables. I used the Ubuntu 7.10 versions of ffmpeg and mencoder in 32-bit, and the Ubuntu 8.04 versions in 64-bit. Did both projects improve their code to be about 10% faster in the meantime? Unlikely, but perhaps not unfathomable.

So will I make the switch? I don't know yet. 10% faster is significant, but not obviously worth it. I'll have to think about it.

For the curious, here's my numbers. I did at least two runs of each to check for agreement, and what you see is the average. Of course, these would not be the settings you'd necessarily use to transcode—ffmpeg has a pretty low default bitrate for example—but I think we can agree the speedup is likely to be in the same ballpark no matter what settings you're using.

# 64-bit    32-bit
# 86 s      95 s
time ffmpeg -y -t 60 -i foo.avi -acodec copy bar.avi
# 55 s      64 s
time ffmpeg -y -t 60 -i foo.avi -acodec copy -s 640x480 bar.avi
# 83 s      90 s
time mencoder foo.avi -oac copy -ovc lavc -frames $[30*60] -o baz.avi

February 10, 2008

Jesse Stay
obfuscated, Uncle_Jesse
Stay N' Alive » OSS
» Amazon, the Social Network?

Did you know Amazon has a Social Network?  In fact, it’s pretty robust!  In Amazon, if you click “(your name)’s Amazon”, then “Your Profile”, you have the option to set up a profile, including a biography, information about yourself, and get this - a list of all your friends currently on Amazon.com. It can show your recent purchases, your favorite items, your wish list, and more. It even gives you a blog in which you can send messages to those that are friends with you. You can also import your own blog’s rss into the blog feed. Amazon has even MySpace beat, with an activity feed of recent activity by your friends.

The real power comes for authors. As an author, I can have people add me as a friend, and I can keep an open dialog with my readers. I can introduce deals, notify when new editions of the book are released, and more. You can see my favorite books, movies, and music, my wishlist, and my biography. You can also see the other books I have written. Amazon also lets you verify through a publisher or agent that a book was written by you, so your books on Amazon can link back to your profile.

Amazon has quite a tool here that I wouldn’t put past them building on in the future. If you think the MySpace OpenSocial announcement was big, imagine if Amazon were to embrace an API such as OpenSocial. In the USA alone, Amazon has over 60 million members in its network. Each one of those members is tied to a bank account of some sort and has probably bought something at some point from the site. Add to that the existing APIs Amazon provides, allowing users to query the Amazon database, associate affiliate IDs and sell items based on commission, Amazon could have the first proven revenue model for a Social Network.

Amazon and Google aren’t the best of friends. Would Amazon embrace Google’s OpenSocial, or create their own as they have through Amazon AWS? Visit my Profile and add me as a friend on Amazon!:

http://www.amazon.com/gp/pdp/profile/A1NYWKPQAI1F5R

Jesse Stay's Amazon Profile

Share This

Share This

Gregarious FeedFlare