Feeds

Tiny C code bests seven-line DVD decoder

Smaller, way faster

  • alert
  • submit to reddit

Providing a secure and efficient Helpdesk

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

Secure remote control for conventional and virtual desktops

More from The Register

next story
Microsoft WINDOWS 10: Seven ATE Nine. Or Eight did really
Windows NEIN skipped, tech preview due out on Wednesday
Business is back, baby! Hasta la VISTA, Win 8... Oh, yeah, Windows 9
Forget touchscreen millennials, Microsoft goes for mouse crowd
Apple: SO sorry for the iOS 8.0.1 UPDATE BUNGLE HORROR
Apple kills 'upgrade'. Hey, Microsoft. You sure you want to be like these guys?
ARM gives Internet of Things a piece of its mind – the Cortex-M7
32-bit core packs some DSP for VIP IoT CPU LOL
Microsoft on the Threshold of a new name for Windows next week
Rebranded OS reportedly set to be flung open by Redmond
Lotus Notes inventor Ozzie invents app to talk to people on your phone
Imagine that. Startup floats with voice collab app for Win iPhone
'Google is NOT the gatekeeper to the web, as some claim'
Plus: 'Pretty sure iOS 8.0.2 will just turn the iPhone into a fax machine'
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Storage capacity and performance optimization at Mizuno USA
Mizuno USA turn to Tegile storage technology to solve both their SAN and backup issues.
The next step in data security
With recent increased privacy concerns and computers becoming more powerful, the chance of hackers being able to crack smaller-sized RSA keys increases.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.
A strategic approach to identity relationship management
ForgeRock commissioned Forrester to evaluate companies’ IAM practices and requirements when it comes to customer-facing scenarios versus employee-facing ones.