Page 1 of 1

Help scipting Video files -> HandBrakeCLI -> Tag/Cover Art -> iTunes

Posted: January 26th, 2010, 11:07 pm
by randyharris
I don't know the first thing about code or creating scripts. So I am hoping there may be something similar or a kind soul looking for some good karma who can help. I searched around a bit but didn't find something that would quite do what I was hoping to accomplish.

SITUATION: SABnzbd downloads MKV and AVI files and unarchives them, and I am left to manually transcode and tag for AppleTV.

GOAL:

1) Feed the video AVI or MKV that SAB unarchives to the HandBrakeCLI with the AppleTV preset.
./HandBrakeCLI -i [SAB avi/mkv file] -o ~/Movies/[SAB avi/mkv file].mp4 --preset="AppleTV"

2) Now for tagging and injection into iTunes.
Today I use iDentify[.app] which automatically tags, adds cover art and injects it into iTunes and hence is then available on the AppleTV; maybe Atomic Parsley would be easier from a scripting perspective?

3) Clean up: If the conversion finished, delete the folder containing unarchived files from the SAB unarchive process.

4) Fire off an email that [SAB avi/mkv file] has been converted for AppleTV and is now available in your library to jon@inter.net.

I hope this isn't anything difficult, and I most certainly would appreciate help.

Thanks!

For purposes of discussion:

my username is Jon
Movies folder would be: Macintosh HD/Users/Jon/Movies/     OR     ~/Movies
Handbrake is in the Applications folder: Macintosh/Applications/HandBrakeCLI
Sabnzbd can be set to any folder for downloads, for now assume: Macintosh HD/Users/Jon/Downloads/SAB/    OR ~/Downloads/SAB/

Re: Help scipting Video files -> HandBrakeCLI -> Tag/Cover Art -> iTunes

Posted: January 27th, 2010, 6:26 pm
by imthenachoman
Check this script I wrote http://forums.sabnzbd.org/http://forums ... 175#p25175

It converts to iPhone format but changing one line will convert to AppleTV.

Adding to it to do the rest of what you want should be easy...

Re: Help scipting Video files -> HandBrakeCLI -> Tag/Cover Art -> iTunes

Posted: January 27th, 2010, 6:41 pm
by randyharris
imthenachoman wrote: Check this script I wrote http://forums.sabnzbd.org/http://forums ... 175#p25175

It converts to iPhone format but changing one line will convert to AppleTV.

Adding to it to do the rest of what you want should be easy...
Thanks, I actually just found that minutes ago.

Could you help me have HandBrakeCLI output the file to my ~/Movies directory ? I can't figure how to add that bit.

Re: Help scipting Video files -> HandBrakeCLI -> Tag/Cover Art -> iTunes

Posted: February 1st, 2010, 6:37 pm
by imthenachoman