Josh (the blog)

I’ve delivered simple, clear and easy-to-use services for 20 years, for startups, scaleups and government. I write about the nerdy bits here.


@joahua

HD video test in various Linux media players

Jon Johansen posted a month or two ago about some HD trailers a guy called Ben Waggoner put together of The Island (with permission from Warner Bros, it’s all good :)).

I grabbed the more recent, 8Mbps VBR followup test. This is 1920×1080 stuff, no interlaced crap. To put things in perspective, this 1 minute 42 second trailer is roughly 100MB.

Quick summary, it works like this: gstreamer crapped out, mplayer wouldn’t start a lot, VLC kept crashing, xine puts in a great performance. mplayer was pretty good, too, when I tried enough times to get it to startup properly and play stuff… so long as I didn’t ‘jog’ the track or anything (I love the OSD that it and xine do, though… very nice.)

Running with xine, X.org and xine sat at 97% usage (split roughly 55/45… yeah, everything else was pretty much idle) on my Athlon 2200+ (1.8GHz) — and that was with the MPEG2 version. The WMV version worked well on a 3GHzish Pentium 4 built for playing back video… but it looked like crap coz it was hooked up to a display at not-quite-native resolution (the display is a very expensive piece of crap. Not my fault.) On my desktop, however, the WMV version would only start to load.

Actually, that’s not quite true. mplayer would play vision (with lots of dropped frames) all the way through, but ignore audio, xine would play jerky audio and no video (well, it’d grab the first frame and stick with that on display), and gstreamer wasn’t even game to try.

The Real Video 4/Cook Audio version was an interesting one. mplayer would play audio smoothly for a few seconds, then cut out, then play video smoothly to catch up, then audio would catch up, etc. Never both at once! And, strangely, it decided to try and display this version in 4:3 (the trailer is 16:9, and it detects that fine with all other versions). xine played video smoothly at about half speed (as in, consistently half, no obviously dropped frames), but had no audio. Possibly a codec thing, but I thought mplayer and xine were using the same w32codecs package here. Could be wrong. VLC took a look at the file and gave up (it didn’t crash, it just sat there expecting attention as it normally does. I’m no fan, can you tell?), whilst gstreamer was typically competent. (Typically for it, of course, meaning “did nothing.”)

Everything could play the MPEG2 version fine… except for the usual suspects, though performance wasn’t quite so bad this time. gstreamer was pretty poor, cutting out regularly, but VLC managed an almost-acceptable performance — its only fault was occasional slowness between high-motion frames, and loss of A/V sync. (Heh, I’m glad it managed to play this one. I don’t think I’d ever seen VLC successfully play video before. Well, aside from boring 320×240 stuff, anyway.)

The MOV was the worst in terms of all-round support. VLC played the AAC audio track fine, and only the first frame of video. Everything else choked, because the Linux drivers aren’t ready for Apple’s H.264 implementation (which, rumour has it, is crap anyway. Not that this makes a difference, seeing as they publish most of the world’s trailers — we’re all going to clamour to see them, just coz they’re in sexy HD), and neither mplayer nor xine separate streams like VLC does (at least, that’s what it looks like. I don’t really know :P). gstreamer I have no great idea about.

The quality was… very impressive. As in, I couldn’t fault it :P This is what I imagined DVD to be like before I actually encountered it, though, because they marketed the crap out of it even when the product itself was thoroughly mediocre. Aside from the digital/multi-channel audio and extra features thing, DVD really doesn’t do it for me in terms of quality… because it’s (often fairly heavily) compressed, medium-resolution MPEG2 (maxing out at 720×480, IIRC).

Incidentally, that’s one reason why I’m glad this whole HD DVD vs. Blu-Ray thing seems to be going Blu-Ray’s way: hopefully, the extra space will mean that content producers are less likely to compress things too badly anymore, and we’ll actually enjoy the benefits of the format. With Blu-Ray’s highest test and theoretical limits more than double what HD DVD has achieved, I’m looking forward to some absolutely awesome quality video in the not-too-distant future. (Sure, it’ll be another five years til I can afford it, but meh!) Here’s a good comparison of the two from Engadget.

I’m currently torrenting the 18Mbps version… if I don’t post about it, it’s possibly because my computer exploded in a fireball large enough to engulf me when trying to process massive amounts of video information.

Whoa, no, it works fine. Admittedly, my computer can do absolutely nothing else at the same time, including resize the window, but it’s still not a bad thing. Quality is pretty much imperceptibly different (or, I think it might be better, but can’t really say for certain — placebo effect and all that –, so I’m not going to).