Sorting Media into iTunes

I recently bought an Apple TV, order and I totally love it. But in order to watch stuff on it, I needed to convert a lot of files to its m4v format. To do so, I followed this tutorial in three parts:

I haven’t done part three with the renaming yet, and I had to hack some scripts to take care of FLAC conversion to MP3s, and then I’m using HandBrakeCLI to convert files instead of Quicktime, but it’s working out really well. I’ll have to expand on it when I get some more time.