Help scipting Video files -> HandBrakeCLI -> Tag/Cover Art -> iTunes
Posted: January 26th, 2010, 11:07 pm
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/
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/