Home Page‎ > ‎

HDTV to DVD and iDevice formats




Convert High Definition Video to DVD and iDevice formats via AppleScript

Mac OS X 10.6.8 required



Important News 7-13-11

I've recently developed some Applescript droplets that not only include methods for converting video files to iPod and iPhone compatible formats, but provide methods for conversion of EyeTV native export formats. That process has worked so well for me that I've replaced many details on this page with information that serves primarily to supplement the documentation that accompanies that package. Have a look!



Here is a method I've developed to build and install the open source software needed to convert HD video captured by my Hauppauge HD-PVR into high quality DVD format as well as iPod, iPhone, and iPad formats using AppleScript.


I do it this way because I like to store some of the videos on Video DVDs and to keep other for use on portable devices. Also, I don't believe it's possible to preserve 5.1 audio when converting video with these specifications to DVD format any other way.


Requirements:

  • My MEncoder Video Conversion AppleScript Droplets
  • Hauppauge HD-PVR with firmware 1.5.7.0 or higher.
    The most recent version of the firmware is available as an update (version 1.5.7.0 as of this writing) from the Hauppauge web site - http://www.hauppauge.com/site/support/support_hdpvr.html. The update requires Windows. I've never been able to apply the update to the device in any other way than and running the update while connected to the device from a PC. I was able to use a Boot Camp Windows installation, but the update was not successful when I tried using a virtualization program to apply the update from within Windows.
  • Elgato EyeTV software from elgato.com. (I've used version 3.5.2, which is available as of this writing.
  • Set Top Cable/Satellite/other TV receiver or Blu-ray or other DVD player with 1080i component output and S/PDIF connections for 5.1 audio.
  • MPEG Streamclip
  • Mplayer OSX Extended or MPlayerX (available from the Mac App Store)
  • SmallDVD, Toast, or other DVD authoring solution.
  • An Administrator account on a Mac running 10.6.8, and Apple's Developer Tools (I've tested version 3.2.6, not version 4) installed, and probably a dual-layer SuperDrive. (I'm using a 17-inch MacBook Pro mid-2009 model).
  • Some working knowledge of Mac OS X's Terminal application.
  • Assorted open source software packages as described below.

Here are the steps I've used to make the process work.


Step One: Install 10.5.8 or 10.6.1 with X11 support enabled.


Step Two: Set up the HD-PVR with the configuration noted above, and install the EyeTV software, or otherwise acquire one or more EyeTV Archive files (.eyetv packages) that have been recorded using EyeTV 3.5.2 or higher (3.5.2 as of this writing) to capture video with the above specifications from the HD-PVR.


Step Three: Install Apple's Developer Tools (version 3.2.6 for Snow Leopard), now available from the Mac Developer Program web site with a free membership.


Now it's time to download and install a number of free and open source apps.


Common Software Installation


Download and install these packages:


Imagine Photo


SmallDVD 2


MPlayer OSX Extended or MPlayerX


You may also wish to install MPEG StreamClip and Mediainfo [direct download]


(Note: To prevent confusion regarding directory traversal in the Terminal when following these instructions, you may wish to quit the Terminal application after each package is installed.)


Download, build, and install faac. Get latest the latest faac from here.

  1. Use the TAR.BZ2 Package or the TAR.GZ Package, then follow these steps:

  2. Expand the archive into your home folder.

  3. Rename the expanded folder to faac.

  4. Open Terminal and type cd faac then press Return.

  5. Type ./configure CC=gcc-4.2 then press Return.

  6. When Terminal activity ceases and you once again see the command prompt, type sudo make install and press Return. Enter your password when prompted and press return again.


Download and install Git from http://code.google.com/p/git-osx-installer.

Note: It's important to successfully install Git before going any further because the Git installer makes important changes to your login shell's path environment that allow subsequent installations to be completed successfully.

Download, build, and install Yasm. Download the latest the latest Yasm from here. Locate the latest release directory that contains file with a name in this form: yasm-rXXXX.tar.gz. I used http://www.tortall.net/projects/yasm/snapshots/r2366/yasm-r2366.tar.gz

  1. Use the tar.gz ackage, then follow these steps:

  2. Expand the archive into your home folder.

  3. Rename the expanded folder to yasm.

  4. Open Terminal and type cd yasm then press Return.

  5. Type ./configure then press Return.

  6. When Terminal activity ceases and you once again see the command prompt, type sudo make install and press Return. Enter your password when prompted and press return again.


Download, build, and install X264. Get latest x264 from this directory,and follow these steps:

  1. Expand the archive into your home folder (I simply sorted the folder in descending order by date in the Finder and dragged the latest to the Desktop).

  2. Rename the expanded folder to x264.

    Open Terminal and type cd x264 then press Return.

  3. Type ./configure --host=x86_64-apple-darwin10 --enable-static then press Return.

  4. When Terminal activity ceases and you once again see the command prompt, type sudo make install and press Return. Enter your password when prompted and press Return again.


Download, build, and install SoX (SOund eXchange). Get latest SoX from here, and follow these steps:

  1. Expand the archive into your home folder

  2. Rename the expanded folder to sox.

  3. Open Terminal and type cd sox then press Return.

  4. Type ./configure --disable-gomp then press Return.

  5. When Terminal activity ceases and you once again see the command prompt, type sudo make install and press Return. Enter your password when prompted and press Return again.

Download and install MPlayer (including MEncoder, which handles the bulk of the conversion process):

  1. Open a new Terminal window and type svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer.

  2. When Terminal activity ceases and you once again see the command prompt, type cd mplayer and press Return.

  3. Type ./configure --cc=gcc-4.2 and press Return. Press Return again when prompted to download ffmpeg.

  4. When Terminal activity ceases and you once again see the command prompt, type sudo make install and press Return. Enter your password when prompted and press Return again.


Install ffmpeg (downloaded inside the mplayer directory when you installed MPlayer):

  1. Open a new Terminal window and type cd mplayer/ffmpeg and press Return.

  2. Type ./configure --cc=gcc-4.2 --enable-gpl --enable-libfaac --enable-pthreads --enable-ffplay --enable-nonfree --enable-libx264 and press Return.

  3. When Terminal activity ceases and you once again see the command prompt, type sudo make install and press Return. Enter your password when prompted and press Return again.


This completes the software installation.


Step 4: Use the AppleScript droplets and their documentation to transcode the video to the formats you choose.

ċ
HDTV_To_DVD_Automation_Tools.dmg
(11080k)
Laine Lee,
Jul 11, 2011, 7:49 AM
ċ
Laine Lee,
Nov 14, 2012, 6:57 AM
Comments