My New Movie Server

13 January 2009
PowerMac G5

Photo © Apple Computer, Inc.

I’m lovin’ my new movie server. The PowerMac G5 is still a good machine for recording and playing back video. Principal advantages are its two drive bays for RAID-striping up to 2Tb and built-in 5.1 audio support over TOSLINK optical audio. Finally mine is doing more than just EyeTV recording and transcoding to MPEG 4 for Apple TV.

For years I had been plotting to use my G5 in this capacity but the problem was the video connection. I tried an adapter to go from DVI to component, as my TV’s best input is component (too old for HDMI), but despite reported compatibility with my video card, I could only get 800 x 600 resolution. Then my friend pointed out the obvious: stop striving for the pinnacle of video quality in favour of something that actually works, and get Apple’s own DVI to Video adapter. Instant solution. Now I’m living the dream.

It hasn’t replaced my Apple TV, which is still the keystone of my entertainment system. I have found that it is notoriously difficult to get good results in converting DVD to MPEG 4, so I’ve limited this process to TV only, for which the benefits of fully tagged separate episodes outweigh any slight loss of quality. Considering that a movie can be stored on a hard drive in the exact same format, and thus with no loss of quality, it is worth keeping movies in this way. I use Front Row, part of Mac OS X 10.5 “Leopard”, as my interface to the movies.

To save space, and as the movie itself is the main thing you will want to play, I extract the movie itself from the DVD and discard the rest. I have used MacTheRipper to rip as “main movie only”, but it produces lousy results (often crashes after ripping and the movies crash DVD Player if fast-forwarded), so I have started to use a Windows app, DVDFab Decrypter, exclusively. This app is stable and produces error-free rips. Most impressively, it also overcomes a lot of copy protection that MacTheRipper can’t cope with. Examples: Garth Marenghi’s Darkplace (ARccOS copy protection), The Dark Knight (Warner deliberately “damaged” the disc to prevent copying). The result is a separate folder for each movie containing a VIDEO_TS folder and sometimes an AUDIO_TS folder as well. In this movie folder, put artwork for the movie from your own scans or the internet. impawards.com is one of the best sources. The image file must be called Preview.jpg (case sensitive). Front Row uses this file as artwork to illustrate the movie. It interprets a movie folder as a discrete unit, as if it were a single file with embedded artwork.

I store the movies in the following subfolders in the Movies folder in my local account:

  • Movies: For movie-only movies.
  • Music Videos: Even though I rip all music videos for iPod so that I can take them with me, some DVDs warrant the respect they deserve in terms of video and audio quality, like concerts. This folder houses the more quality-critical DVDs for home viewing. The folder structure for this folder is Artist/Title. The Title folder is the DVD folder itself, e.g. ~/Movies/Music Videos/Flaming Lips, The/UFOs at the Zoo.
  • Short Films: Some DVDs consist of a number of short films, like Wallace and Gromit. I rip the films separately and put them here.
  • Special Features: When I buy a DVD, I rip the whole of a bonus DVD for convenient access. I delete the DVD folder when I’m finished with it to free up space.
  • _Spillover Video: This is actually an alias. I have 2 x 320Gb drives in the G5 but this is not enough. As a temporary measure, I am using some space on an external FireWire drive on my other desktop. Simply mount the drive as a share, then create an alias to the spillover movie folder in the Movies folder in your local account. The share will be mounted whenever you boot. Of course, the other desktop must be online to be able to access that content. When 1Tb drives drop in price, I will buy two and replace the two 320Gb drives currently in the machine.

There is a caveat with Front Row: If you put a series of movies into a subfolder, such as Dirty Harry, the folder will appear at the bottom of the list. There is no good reason for this, but you might not think to look at the bottom for a movie series. An alternative approach is to rename the movie folders with a prefix, such as Dirty Harry 1 | Dirty Harry, Dirty Harry 2 | Magnum Force, Dirty Harry 3 | The Enforcer, etc. I use a pipe character | instead of a colon as the colon is a reserved character in Mac OS X.

Also, any folder starting with The, A or An will of course be incorrectly alphabetised. I put the article at the end, e.g. Golden Compass, The.

To control Front Row, I use Leopard’s screen-sharing feature with my laptop, then navigate using the arrow keys. This makes the laptop hot as it’s constantly refreshing the sharing window, so I tend to quit Screen Sharing once I’ve got the movie going. I’ll have to get a remote for playback. You can’t totally give up a keyboard and mouse as you need to be able to do operations like copying files, trimming the length of EyeTV recordings, etc. Sharing the screen is perfect because you don’t have to supply a keyboard and mouse for the machine.

In addition to running Front Row, I still use the machine to record TV with EyeTV, but I no longer have to transcode for Apple TV. It’s a revelation to simply play a recording. Sometimes I start watching it before it’s finished recording. Sometimes I even watch live TV!

There’s a lot to be said for the movie server. An older machine with plenty of storage makes a great complement to Apple TV, which can concentrate on movie rentals, TV shows, music and podcasts.


Anamorphic Video on iPod

26 November 2008

I’ve been experimenting with anamorphic video. I read after the the 2007 models came out that they supported anamorphic video, so the maximum matrix of 640 x 480 pixels can be used to squash a widescreen video with an anamorphic flag, so the iPod, iTunes and Apple TV would interpret it as roughly 855 x 480 pixels. Obviously the iPod would have to shrink this to 320 x 160 or so for its built-in screen.

Problem is, the results are disappointing. These two screenshots are from the same content and the exact same frame, Lemon Jelly’s ‘64-’95 DVD:

'64-'95 DVD (720 x 400)

Lemon Jelly: '64-'95 DVD (720 x 400) (Click to enlarge)

'64-'95 DVD (854 x 480)

Lemon Jelly: '64-'95 DVD (854 x 480 anamorphic) (Click to enlarge)

Lots of ugly artefacts in the anamorphic version. There are also frequent failures to resolve detail, with the effect that spots of the video suddenly go out of focus for a few frames. Movement has the occasional judder or skip. These are all present in non-anamorphic iPod rips, but far less frequent or noticeable.

I also did test rips of Sigur Ros’ Heima. What’s most disturbing about the results is the fact that the source in both cases is pristine, some of the highest bitrate, cleanest, most perfect DVD I’ve ever seen. If I ripped trash as anamorphic, the effect could only be more pronounced.

So I don’t think anamorphic is for me, despite the unassailable coolness this brings, especially as the increased resolution makes it more attractive for both iPod and computer/Apple TV use, perhaps leading to one version, not two.


Don’t Underestimate the Mac Mini

21 April 2008

Last year I upgraded my G5 to improve iTunes performance. As noted in that post, I achieved only moderate performance gains. The G5 was always pretty good at encoding with Handbrake, but now that I have added a number of tweaks to get better quality output, it was taking a very long time to encode video (about 18 hours for a 22-minute TV episode). That’s a little non-viable.

I was impressed that my MacBook Air was ripping video slightly faster than the G5. It’s Apple’s slowest machine, at 1.6GHz. I started to think that a Mac Mini would give me modest improvements on that, and because I appeared to have some hardware issues on the G5 with USB ports going offline, system lock-ups, etc., I decided to replace it now with a Mac Mini rather than wait for the next update to the line.

Given that I have plenty of external storage and an external DVD drive, I decided to save a little money and bought the entry-level 1.83GHz model, with 80Gb hard drive and combo optical. This is the slowest desktop Apple currently produces, so I wasn’t expecting it to be much better than the G5. It turns out that with most operations (opening windows, navigating through iTunes, etc.) it isn’t much different. I was starting to get a little buyer’s remorse when I ripped a TV episode to test it.

I had to check very carefully that it had produced a playable file of the entire episode because it ripped it about 5 times as fast as the G5! I was astonished at the difference, so impressed in fact that I considered buying another one just to rip video. It turns out that the MacBook Air was turning off one of its cores under the load of ripping, thus accounting for the lacklustre performance compared to the only slightly faster Mini.

Of course it comes five years of development time after the G5, so that dampens the surprise a little, but I think this proves that the Mac Mini is a pretty good performer despite its position in the product hierarchy, and you should consider it.


Music Video: Why Can’t Artists Get it Right?

20 February 2008

Time for one of my infrequent rants.

Why is it that artists (or their technical people) constantly make a hash of music videos? Case in point: the independent, Karmacoda. They’ve just released a new video on their website. I downloaded the iPod-ready version and it looked funny. The native aspect ratio of the video, 16:9, had been squashed horizontally into 4:3 and was between QVGA (320 x 240) and the iPod standard VGA (640 x 480). The slightly larger version (”for computer”) looked correct (heads not squashed) but even it was 3:2. Here’s the real kicker in this case: it was shot in HD. That means the trouble and expense of 720 or 1080, which should look amazing, has been squandered on a lousy postage stamp. A prior music video, also shot in HD, was made available on DVD, which I bought. I knew it was going to be NTSC (480 pixels vertical), but was unpleasantly surprised to find that it was 4:3 letterboxed. This just should not be. It’s not hard to make anamorphic video these days. Again, the quality of HD was wasted on this 720 x 400 video (after cropping).

My frustration with Karmacoda stems from the poor responses to emails I sent. The first, after I received the DVD, was extensive and contained a breakdown of the technical issues with the DVD and the free version and offered solutions. I also said that I would like to buy a HD version from their site. The response was a mere acknowledgement that I had sent something. I tried again after getting this new video. Same thing. I’m giving valuable feedback and advice. As they are an independent band, I expected a meaningful two-way conversation with the artists themselves but seemed to have been screened by a manager.

It’s not just independents at fault. Prior to the release of Daft Punk’s Alive 2007, I downloaded a teaser trailer in VGA resolution, H.264 video, AAC audio. Looked quite good. When the album arrived, the enhanced CD included a music video. The specs? QVGA, MPEG 1 muxed. What is EMI thinking? When will record companies wake up and start providing iPod-ready video on enhanced CDs? Nobody is going to want to put the CD in a computer to watch the video.

So why aren’t they done right in the first place? A possible solution is to make the video available on iTunes–after all, they’re giving it away for free on their site, and we know that free often doesn’t mean quality. If they package it for sale, the consumer can be assured of a certain level of quality.

Music video is being denigrated by ignorance or unwillingness to produce a good product. In the past, it’s been used solely as promotional material, where marginal quality would be a non-issue. It’s only been since the iTunes Store started selling them as a product in their own right that quality should be something that artists are aware of.

Am I alone in thinking this?


New Music Video Standard

26 November 2007

Yes, I’ve changed again. I follow Apple’s lead. They believe in H.264, so I do too.

The main reason I was using MPEG4 instead of H.264 was an incorrect assumption that 720 x 400 (16:9) was only iPod compatible if the file was MPEG4. I believe I would have tested this resolution with H.264 in the past–I always test–and would have found it incompatible, so I went with MPEG4 instead. Well, I’ve just done another test with four videos and lo and behold, it worked. This means that they upgraded the standard or that my earlier testing was poor. Either possibility is reasonable.

So what does this boil down to? Music videos are now specified as follows:

  • H.264 @ 1500kbps, 640 x 480 (4:3), 720 x 400 (16:9)
  • AAC @ 128kbps

If the source is a video file from an enhanced CD or the web, I don’t get fancy: I open in QuickTime Player and export to iPod. If it’s letterboxed (bane of the video collector’s life), I use MPEG Streamclip to achieve the same result, only I also crop the margins off (QuickTime Player can’t easily do this).

If the source is DVD, Handbrake is of course employed. I start with the iPod High Rez setting, then add 2-pass and greyscale (if appropriate). For audio, you can actually convert 5.1 to Dolby ProLogic II and the iPod will support it. Of course, you’ll only hear the stereo on an iPod, but this is good for using on both iPod and Apple TV, which might be connected to equipment that can support it. It does make a difference and is quite nice to listen to.

Handbrake 0.9.1’s new enhanced chaptering facility, where you can now name the chapters, is a great excuse to rerip video, and I especially like to rip long-form video such as concerts, Enigma’s A Posteriori DVD, Lemon Jelly’s ‘64-’95 DVD, Bowie’s Ziggy Stardust and the Spiders from Mars: The Motion Picture, etc. with the proper chapter markers. Strangely, the Touch, where I play music video the most, does not display the chapter names. If you tap the screen while a video is playing, it will say Chapter X of X, but doesn’t display the name. Apple has been notified.

Don’t muck with the advanced settings. They’re very good for tweaking video intended for the Apple TV or computer, as these devices are tolerant, but I’ve found that changing the slightest setting will prevent the video from transferring to an iPod (see my earlier post on this matter). You have to stick with stock-standard iPod settings to guarantee compatibility.

So I’m going to start ripping my music video again. The amount of work this entails is made palatable by remembering that I’ve got a number that don’t work with the new iPods and of course, my favourite, the chaptering excuse!


TV Shows: Air Date or Production Sequence?

6 November 2007

The downside to TV shows is having to make the decision between tagging in air-date sequence or production sequence. I’ve found it common that episodes produced in a particular sequence are not aired in that sequence. There are probably many reasons why the show creators did this, but you must make a decision so that you can enjoy the episodes in a way that makes sense, if any continuity is to be maintained. Here are some examples:

The Venture Bros, Season 1. The DVDs presented the episodes in production sequence. Bad move. Three episodes from the end of the sequence, an event profoundly changes the show so that the final two episodes no longer make sense. I won’t spoil this for those who haven’t seen it, but I suggest you look up the air-date sequence on Wikipedia and watch it that way. I was pissed when this happened to me, but I didn’t know ahead of time. In this case, definitely tag them so that they appear in air-date sequence.

SpongeBob SquarePants, Season 2: The episodes appear on the DVDs in production sequence, but they were aired in a different sequence. There seems to be no good reason for this, particularly since the first season’s episodes’ production sequence is the same as they one in which they aired. In this case, I chose air-date sequence, but you could go either way. As each episode is an isolated story, you won’t ruin any continuity.

Blackadder, Series 2: Air-date sequence has episodes 1 & 2 reversed. It also violates continuity as a result, so I tagged them in production sequence.

The Weird Al Show: Production sequence was thrown out the window. When I listened to the commentary, it was clear that the air-date sequence was out of his control, and that’s the way viewers saw the episodes, so I chose the air-date sequence.

Family Guy: This is the worst organised set of TV seasons I’ve seen on DVD. In Australia, we’ve just had “Season 6″ released, but in the US, it was season 5. Also, three episodes are missing from the end of the season. This pattern started early on with these DVDs with the result that each DVD since season 3 actually represents the season earlier than it’s labelled. It’s a mess. The only clear choice was to put them in US air-date sequence and ignore the labelling.

My primary source of both air dates and production numbers is Wikipedia. I have found this to be relatively trustworthy. I also confirm when possible on the TV shows’ official sites.


Video for the New iPods: Compatibility or Quality?

5 October 2007

The type of content I’ve most enjoyed on the Touch so far is music video. I’ve filled mine about 75% with music video which I watch at work. As I have 414 separate videos, I’ve been rotating them through and one thing has become clear: compatibility is more important than quality, especially if the prime target for viewing this content is an iPod. I’ve just had a batch of MPEG4-encoded videos, all of which played on my 5th-Gen, fail to display video on playback on both the Touch and Classic. Audio is fine, just no video. I think this is because I used to push the envelope, encoding at 1500kbps MPEG4, which is the highest MPEG4 video bitrate the iPod can support, and also because I made 16:9 videos 720 x 400 pixels instead of the iPod standard of 640 x 360. Result is incompatibility or, at best, borderline compatibility.

So I’ve made the decision to make every music video iPod-compatible. It will result in lower-resolution 16:9 videos but honestly, I can’t be bothered trying to push the envelope any more. I’ve got too much on and I’ve been enjoying the iPod quality. QuickTime Player or iTunes will convert a non-DVD video between 320 and 640 pixels wide into a H.264 video with the same resolution. Handbrake 0.9’s new GUI access to the command-line parameters gives much better results. The new chaptering feature adds another reason to redo your long-form video.

So that’s my advice to you. This of course applies to any content targeted at an iPod. I still rip DVD movies and TV Shows at a much higher quality because they are aimed at Apple TV.


Future-Proofing Your Video for Upcoming iPod Video

5 July 2007

With the iPhone released, it’s pretty obvious that this is the future of the iPod. Video fans are expecting the next iPod to be essentially the same as the iPhone, only just the iPod part. I’m not going to speculate beyond that, but it’s also what I believe, and that it will be released this iPod Season (Sep./Oct. this year).

So what about all the work you’re putting into ripping of your DVDs? What standard do you adopt? Do you stick with the iPod and iTunes standard or do you tweak it higher? Well, it’s pretty obvious that the next-generation iPod should have more video power (I’m guessing that iPhone does, but its official supported video specs are the same as the iPod’s), but without published specs, it’s pointless trying to guess.

Personally, I’ve decided not to watch TV shows on my iPod. I really like the full-resolution versions that I’m watching on Apple TV. I only watch 30-45 minutes of video on my iPod per day and that’s the perfect time to catch up on a number of video podcasts. I like to watch music videos sometimes at work and am therefore still interested in producing iPod-compatible music videos. Here’s the summary of my situation:

  • Movies: Apple TV only, not iPod
  • TV Shows: Apple TV only, not iPod (one or two exceptions, which are strictly from EyeTV, not DVD)
  • Music Videos: iPod-optimised, also for Apple TV.

It’s only 2 months (minimum) to iPod Season, so my feeling is if you want to produce files compatible with it, either make them iPod compatible now or just wait until we see the new specs. If you’re a quality hound, you will probably want to wait.


DVD: The Ultimate Video Source

24 January 2007

The Ultimate Video Source

I promise that this won’t be all about video. It’s just that I’ve been doing a lot of video conversion recently and I’m going to post stuff that I think about, in no particular order.

The best source of video is of course, DVD. iTunes currently has a limitation on 2.0 audio, so I make it a policy to only rip video that has 2.0 sound, not 5.1. You don’t want to sacrifice that rich audio experience for the convenience of playing video through iTunes. I do rip music videos that I might want to carry with me on the ’Pod, however, regardless of their audio. That’s the exception.

So why bother to put DVD video into iTunes? It’s so convenient. You can select and start playing a video in seconds. No waiting for DVDs to load, then waiting for legal notices to display for agonising seconds. This is very bad with TV shows. Watch a couple of Seinfelds, then shut down your DVD player and walk away. Come back to watch the next one or two half-hour shows, and you have to sit through all that crap again.

Secondly, you can watch it on an iPod or Apple TV. It’s a lovely experience to sync through iTunes and the iPod organises video marvellously. You need to tag music videos and TV shows specially, though, in order for the iPod, Apple TV or even Front Row to recognise them properly. This is one of the coolest things about ripping on a Mac. I have a gem of an app that tags these things which I’ll cover later.

Thirdly, for those who get annoyed when they buy a complete series of a TV show only to find out that the stupid publisher decided to randomise the episodes across the various discs, you can reorder them in just the way they aired in history.

So DVD is a prime target for content. I’ve become hooked on TV-on-DVD, which I think is one of the best forms of content to have been provided in this format. It’s so easy to rip and watch a show or two. It’s one of the best things I’ve done with a computer.

By the way, if you’re wondering, I did scan that SpongeBob cover, and all those screenshots came from the episodes I ripped from the DVD. I’m an artwork fanatic, so you’ll read about album art almost all the time.