• Home
  • Assertions
  • Poetry
  • Programming

Record and Reverie

General things I find interesting

Feed on
Posts
Comments
« Quick vacation for the weekend
Recruiting week »

Ripping DVDs to play on the AppleTV

Aug 26th, 2007 by Graham Booker

First, I should start off with the prerequisites for the AppleTV itself.

  • I have hacked my ATV and installed Perian.
  • I also have installed Sapphire to play back the content.
  • And lastly, I have installed the USB kernel extensions to allow use of an external hard drive, but this piece is not a necessity.

The second piece I used is Handbrake to actually rip the DVDs.

Most people try to make the choice between AVI or MP4 file formats. There are problems with both of these approaches.

  • AVI is not designed to handle frames whose decode order doesn’t match the display order, and so in order to stuff advanced video codecs in the container, people use a series of hacks. AVI is also not designed to handle several other advanced features such as chapters. IMHO, it is a format that should be allowed to die.
  • MP4 handles many of the advanced features that AVI lacks, but it is restricted in terms of the codecs allowed within the container. Most notable, it disallows the use of AC3 audio.

So, it would be nice to get all the advanced features of MP4 with AC3 audio. Here is how I did it.

I rip to MKV (Matroska) files. This worked well before the latest release, but shortly before version 0.9, the developers broke chapter support (infinite loop), and haven’t fixed it (even in SVN). Anyway, I use AC3 passthrough, and H.264 video. For the video, I am currently testing Constant Quality of 56% (CRF not CQP, set in the prefs) and advanced H.264 settings:

ref=3: mixed-refs=1: bframes=3: b-pyramid=1: brdo=1: bime=1: weightb=1: subq=6: analyse=all: 8x8dct=1: vbv-maxrate=25000

Note: this is high profile h.264, and Apple’s decoder in Quicktime is incapable of decoding it. Quicktime < 7.2 would often tell you it can’t decode it, the one on the AppleTV would crash, and now Quicktime 7.2 will just freeze. Perian on the other hand, works just fine.
So, that is the end of it, right?

Wrong. See, the creators of Matroska in their <sarcasm>infinite wisdom</sarcasm> discouraged a full sample index of the file. This means that importing the file into Quicktime takes a fair amount of time. So, my final stage is to open the MKV in Quicktime Player and wait for the import to complete. Then, I simply save as a self contained mov file, and then I am done.

It is also interesting to note that the mov file is actually slightly smaller. So, the end result is a mov file, with high quality video and audio and a device that plays it well on the TV. So far, the only disadvantage is the encoding time and the MKV intermediate step.

Now I need to buy more hard drive space to store the data, and put the DVDs in permanent storage.

Posted in Programming

One Response to “Ripping DVDs to play on the AppleTV”

  1. on 20 Sep 2007 at 6:33 am1Radoslav

    Nice site Graham! I’m signing up for the mac listserv next; after I finish this delicious Jack-in-the-Box :P.

  • Recent Posts

    • Google’s Analytics Mistake
    • Switching back to Safari
    • Apple has become the new Microsoft
    • Sapphire Plugin
    • Key Fixed
    • Sometimes you just got to laugh
  • Archives

    2022
    April 2022 (1)
    2021
    May 2021 (1)August 2021 (1)
    2020
    March 2020 (1)
    2019
    November 2019 (1)
    2018
    June 2018 (1)July 2018 (1)December 2018 (1)
    2017
    January 2017 (2)June 2017 (1)August 2017 (1)
    2016
    June 2016 (1)August 2016 (1)
    2015
    January 2015 (1)February 2015 (1)December 2015 (1)
    2014
    June 2014 (1)July 2014 (1)August 2014 (2)
    2013
    February 2013 (2)March 2013 (1)April 2013 (1)June 2013 (1)November 2013 (1)
    2012
    April 2012 (2)May 2012 (1)June 2012 (1)November 2012 (1)
    2011
    January 2011 (1)October 2011 (1)November 2011 (1)December 2011 (1)
    2010
    February 2010 (2)April 2010 (1)June 2010 (1)July 2010 (1)August 2010 (1)September 2010 (1)October 2010 (2)December 2010 (3)
    2009
    January 2009 (1)February 2009 (1)March 2009 (2)May 2009 (1)July 2009 (3)September 2009 (1)
    2008
    January 2008 (1)February 2008 (4)March 2008 (1)April 2008 (6)May 2008 (1)June 2008 (3)August 2008 (1)September 2008 (2)October 2008 (2)December 2008 (1)
    2007
    January 2007 (1)February 2007 (4)March 2007 (5)April 2007 (4)May 2007 (1)June 2007 (6)August 2007 (3)September 2007 (3)November 2007 (3)December 2007 (4)
    2006
    January 2006 (4)February 2006 (10)March 2006 (4)April 2006 (6)May 2006 (2)June 2006 (4)July 2006 (1)August 2006 (1)September 2006 (4)October 2006 (6)November 2006 (3)December 2006 (3)
    2005
    October 2005 (6)November 2005 (13)December 2005 (1)
    2004
    February 2004 (2)March 2004 (1)April 2004 (1)May 2004 (6)June 2004 (6)July 2004 (3)August 2004 (2)September 2004 (1)November 2004 (5)
    2003
    September 2003 (1)October 2003 (3)November 2003 (1)December 2003 (1)
  • Categories

    • Breakaway (5)
    • Family (4)
    • Friends (2)
    • General (151)
    • Nature Pictures (8)
    • Politics (2)
    • Programming (41)
    • School (11)
    • SysAdmin (8)
    • Teaching (2)
  • Tags

    AC3 Ads Code Frontrow Java Objective-C Open Source Perian Perl permissions plex plugin RSS Sapphire School Servers ZFS

  • Pages

    • Assertions
      • Female Friends Who Won’t Date You
      • Not Dating Friends
    • Poetry
      • Curtis Staying Over
      • Girl Questions
      • Scaring Girls Off
      • Summer’s End
    • Programming
      • Fire Development
      • Kyocera Ringtone Converter for the Mac
      • Perian
      • Text Compression

Record and Reverie © 2022 All Rights Reserved.

WordPress Themes | Web Hosting Bluebook