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 7, 2008

Jesse Stay
obfuscated, Uncle_Jesse
Stay N' Alive » OSS
» Google Releases Spreadsheets Forms - S3 Equivalent Coming?

Google FormsYesterday Google announced a rather interesting, and I believe strategic move, allowing users of Google Docs to put forms in front of their online spreadsheets through Google Docs.  I didn’t realize this until now, but Google really has a dynamic, unflattened data source that they have been providing through their Google Spreadsheets.  Now, with the ability to add forms, in many ways we are seeing another hosted development platform for website owners to use for whatever they would like to collect data for.  This has been long needed - I can’t tell you how many people have asked me at some time to install Formmail.pl for them to send them e-mails of a simple form they have installed on their website.  Now, they can just set up a Google doc, and a form to front that doc, and no e-mail is necessary!

The functionality is very simple right now, but one has to remember this is Google, which at one point was just a simple search engine.  Google always starts simple, and takes over the world with that simple plan.  Imagine if Google were to incorporate their new graphing API into these forms for simple survey-taking capabilities.  Now, add to that the ability for more robust reporting beyond that, ability to include single cells from a spreadsheet, and perhaps a query language of sorts to interface with it.  Google could very soon be competing with perhaps at first the likes of Amazon S3 storage services, but even more, their SimpleDB query engine, at a much more robust level.  This is Google after all.  I wouldn’t put it past them.

Share This

Share This

Gregarious FeedFlare