Feeds

Tiny C code bests seven-line DVD decoder

Smaller, way faster

  • alert
  • submit to reddit

The essential guide to IT transformation

Coder Charles M Hannum has created the smallest program capable of decoding a Content Scrambling System (CSS) DVD file, beating last week's seven-line Perl shell script 442 bytes to 472 (excluding newline bytes).

Hannum's C program, called efdtt, is no slouch, either. The programmer claims it can "descramble in excess of 21.5MBps" - faster than the DVD spec. allows for. The speed comes "without even particularly trying to optimise the I/O. This makes it pretty insignificant compared to the rest of the decoding process" = in other words, it's quick enough not to impede the MPEG 2 decode operation which turns the data into a moving image.

Apparently, the latter may be a problem with qrpff, the Perl CSS descrambler written by Keith Winstein and Marc Horowitz, and posted on Carnegie Mellon University professor David Touretzky's DSS Descrambler Gallery Web site. Winstein and Horowitz' code was capable of supporting realtime decode and playback, but we're told the output was occasionally jerky.

Hannum's code should allow smooth playback.

Both scripts do what the controversial DVD-on-Linux utility DeCSS does - and demonstrate how simple CSS, the DVD standard's copyright protection mechanism, is to decode. The Motion Picture Association of America has been pretty successful in repressing the distribution of DeCSS, viewing it as a threat to movie industry copyright - and movie industry profits.

"So what's the MPAA gonna do now?" Touretzky asks. "This code is small enough to put on a cocktail napkin. Commit to memory. Knit into a scarf. Whatever. It cannot be suppressed." ®

Related Link

Dave Touretzky's Gallery of CSS Descramblers
Charles M Hannum's efdtt.c

Related Story

Seven-line program beats DVD crypto

Boost IT visibility and business value

More from The Register

next story
Munich considers dumping Linux for ... GULP ... Windows!
Give a penguinista a hug, the Outlook's not good for open source's poster child
The Return of BSOD: Does ANYONE trust Microsoft patches?
Sysadmins, you're either fighting fires or seen as incompetents now
Intel's Raspberry Pi rival Galileo can now run Windows
Behold the Internet of Things. Wintel Things
Microsoft cries UNINSTALL in the wake of Blue Screens of Death™
Cache crash causes contained choloric calamity
Eat up Martha! Microsoft slings handwriting recog into OneNote on Android
Freehand input on non-Windows kit for the first time
Time to move away from Windows 7 ... whoa, whoa, who said anything about Windows 8?
Start migrating now to avoid another XPocalypse – Gartner
You'll find Yoda at the back of every IT conference
The piss always taking is he. Bastard the.
prev story

Whitepapers

5 things you didn’t know about cloud backup
IT departments are embracing cloud backup, but there’s a lot you need to know before choosing a service provider. Learn all the critical things you need to know.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Build a business case: developing custom apps
Learn how to maximize the value of custom applications by accelerating and simplifying their development.
Rethinking backup and recovery in the modern data center
Combining intelligence, operational analytics, and automation to enable efficient, data-driven IT organizations using the HP ABR approach.
Next gen security for virtualised datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.