I can't give you my install because it's very specific to my setup. I can describe the general set of steps that my RecordingDone script follows, and probably a few code snippets if you get stuck.
You'll need to be familiar with Applescript, or willing to learn. There is quite a bit of it for all this to work. You also need to be comfortable with command line utilities - whenever one is referenced below, the script builds the command line then executes a shell script.
Software required (all are open source, and the command line versions of Subler and MediaInfo are used, not the GUI versions):
- ffmpeg
- Subler
- mp4v2
- MediaInfo
- and of course EyeTV, comskip, iTunes, etc.
The steps:
- Get some basic information about the show just recorded from EyeTV - the recording id (a unique number that EyeTV assigns to the recording), the show name, episode title & description and park it all in variables that will be used later when adding metadata to the finished file.
- Troll the .eyetv file for the name of the file(s) that represent the actual recording and EyeTV metadata. The .eyetv file is actually a folder with a bunch of files inside that are named by EyeTV.
- Generate some POSIX paths from the above so the command line utilities will know where to find the files.
- Create a name for the finished file (I use the show title or the date/time stamp if there is no title).
- Run ComSkip.
- Use the EyeTV metadata file that was figured out in step 2 to get some more information about the show - season #, episode #, genre and air date. (This plus the basic info from step 1 gives me what I need to make iTunes/aTV work nicely. YMMV.). Also reformat the air date to a numeric string that can be used with the command line utilities later.
- Use MediaInfo to figure out how many channels (2 or 5.1) are in the original recording.
- Trancoding using ffmpeg. The exact steps and command line are going to be determined by your needs and the original input file. This is what I do:
- Transcode the original AC3 audio to a new AC3 audio file. This fixes some audio problems I encounter with the original audio from my calbe box.
- Transcode the original AC3 audio to a 2 channel AAC file.
- Copy the video stream to a new file. I don't need to do any encoding because I'm using the Hauppauge HDPVR so the video is already in h.264.
- Build the finished file using Subler and optimize the file for streaming.
- Disable the AAC track using mp4tags (part of mp4v2). AppleTV will then take the AC3 track by default, and iDevices will find the AAC track.
- Use mp4tags (part of mp4v2) to add all of the show metadata to the new file (identify as TV Show, show name, episode name, episode description, season #, episode #, genre, air date and also put the unique ID of the recording in the comments section (I use this in my clean-up script to delete the original from EyeTV)
- Import the chapters file created by Comskip using mp4chaps (part of mp4v2)
- Add cover art using mp4art (part of mp4v2). Pulls from a folder I manually maintain with cover art for the shows I watch regularly. Thought about querying thetvdb.com to do this but it's more effort than it's worth IMO. It also logs the name of any TV show that it can't find artwork for to a text file in case I want to go find some.
- Copy the finished file to the "automatically import to iTunes" folder, with a large timeout (a few minutes) so the file isn't deleted while copying.
- Clean up the working folder, deleting the chapters file, intermediate audio files and the finished video file.
That's it. I can try to answer any questions, but in some cases I've just copied code from wherever I found it so I don't always fully understand how it works, only that it works.
I can't take credit for parts of what I've done - I built on what others have posted not only for EyeTV but also Applescript in general - but I had so many sources, Google searches and the like that I can't point to what came from there to give proper credit.
I should also mention that I'm using Snow Leopard, not Mavericks, but there is no reason why anything I've done would not work on Mavericks.