Knowledge Base/Community Help

Answered

Script or option to watch folders for new videos to convert

Gavin Smith
asked this on August 17, 2011 02:10

Pretty much as subject  - I'm looking for a script or option to watch folders for new videos appearing, which iFlicks will pickup and convert and put into my iTunes library. For example, if I have a download which automatically appears in a "Pending Movies" folder, iFlicks would watch this folder and check for new movies (including inside sub-folders). I bought iFlicks recently and I'm really enjoying it apart from this one thing.

Is this possible? Or is it a feature request?

 

Comments

User photo
Scott

Go to this page and follow the instructions: 

http://winfred.vankuijk.net/2010/01/from-torrent-to-itunes-an-autom...

Works incredibly well for me!

August 19, 2011 20:17
User photo
Gavin Smith

Sounds good - I had everything else in place apart from the Folder Action. I'm not sure it will dig down into sub-folders - for example, if a movie is downloaded from a torrent and is wrapped up in other folders, I'm not sure this would pick it up. But it's a great start, thanks.

August 21, 2011 10:51
User photo
Jamesvdm

The script that comes with iFlicks will go into sub folders. The problem I had is the script adds everything I downloaded to iFlicks (mp3, etc).

To combat this problem I made a group in Transmission that downloads all AVI and MKVs to a different folder.

August 24, 2011 02:04
User photo
Robert Hargrave

I don't seem to have the script on my system. I installed iFlicks via the App Store. (Not sure if that makes a difference)

September 21, 2011 21:43
User photo
Daniel Knight

I'm having the same problem. Installed iFlicks from the App Store and I don't have the scripts. I saw one post somewhere mention telling it to install them from the iFlicks Preferences, but there's no option for that. How do I get the scripts?

September 22, 2011 02:02
User photo
Søren Korsbæk

hello

Can any off you people help. I am trying to get the flicks options in automator, but i can figure out how to do it.

September 29, 2011 20:21
User photo
Jamesvdm
September 30, 2011 08:01
User photo
Søren Korsbæk

thanks a lot. 

September 30, 2011 09:24
User photo
Søren Korsbæk

Hello again

I have played with the script and it works just fine. But is it possible to modify it so it uses the apple TV 2 profile for .avi and still uses the iTunes compatible for mkv, mov and m4v?

September 30, 2011 09:45
User photo
Søren Korsbæk

I have found a way to do it. 

September 30, 2011 13:10
User photo
Karl Mitchell

Hi Søren.  Any way you could send me that script?  That's just what I want.  Thanks, -Karl

October 03, 2011 20:07
User photo
Dan Moroni

I second Karl, anyway you could post that script?

 

Many Thanks 

October 04, 2011 06:19
User photo
Søren Korsbæk

Yes off course.

here is the script i use. i have also added so it deletes the original file when it is done. if don't won't that just delete this in the script "with deleting" 

October 04, 2011 07:49
User photo
Karl Mitchell

Okay, I've been having a play, and the attached is what I came up with for my own purposes.  However, what I'd like to do is check the size and, if HD (xsize > 1000 or ysize > 576) run iFlicks an additional time to import as an SD file.  Suggestions as to how to read the size?

Another modification that might be nice is to look to see if addedItems includes folders and, if it does, apply the process recursively.

October 04, 2011 17:44
User photo
Karl Mitchell

I've been taking this a little further with mixed success.  I've done most of the heavy lifting, but I've hit a stumbling block.  Apparently it's possible to read the movie dimensions using the movie file suit of the "System Events" application.  However, it's giving me a -10000 error that I can't work out.  File is attached in case anyone has more of a clue than I.

At the moment, the script works from either selected Finder files of when called using Folder Actions.  It is supposed to then work out the dimensions and use that to decide how to encode (or not).

All help welcomed.

-Karl

October 04, 2011 23:35
User photo
Karl Mitchell

I managed to work this out with a little help. I hope it's of use.  I use it for converting EyeTV files after HandBrakeCLI processing, but it should work well enough for torrents, etc.  At the moment I've set it to recode mkv, because it's difficult to be sure that it's compatible with iTunes, but you can change this behavior by adding to the QTFormats property line near the top.

My aim of creating HD-SD versions I decided to drop for the time being, as I handle it elsewhere in my system, but it's easy enough to re-add. 

Note that, as well as working from as a Folder Action Script, I have also set it up to work by simple highlighting movies in Finder and running the script manually.  This was useful for debugging.  With a little know how it should be possible to set up an automator service.

 

Enjoy.

October 05, 2011 02:07
User photo
Drhharvey

iFlicks tries to convert .avi files as soon as they arrive in the folder it is watching. This causes iFlicks to crash unexpectedly, because the .avi file hasn't finished downloading. Is there any way to edit the script so that it only starts converting movies once they've finished downloading?

October 25, 2011 13:38
User photo
Andreas Hägg

Karl, this can really be something! 

I love the way you want to split avi-files and so, I have tried your script but I can't get it to work. iFlicks isn't receiving any files at all.

Is it possible to change so iFlicks uses "iTunes compatible" for mkv etc?

Thanks for all the work you're doing to help us who don't know how!!!

//Andreas 

October 31, 2011 15:12
User photo
Samuel H Watson

hey - am looking to run the applescript to check a certain folder and all subfolders for .avi .mkv and any other video format's i specify - the script i have does this to a certain extent as it ignores .mp3 .jpg files but for some reason it doesn't ignore .txt files (this isn't a major issue as i can delete this from iTunes later and takes milliseconds to import) but as a result it then proceeds to ignore the .mkv file in the same folder (big issue)

can anyone see what is wrong

October 31, 2011 17:24
User photo
Samuel H Watson

hey again,

just been playing around with it a bit more and discovered that the functionality does work for the initial folder but not the sub folders.

in an attempt to sort this i 'essentially' copied the first process down to the subfolder level in the script. it now still does the same thing for the initial folder but now doesn't add anything from the sub folder (i tried with the exact same files at each level)

let me know what you think

October 31, 2011 17:45
User photo
Brant Winter

Use Hazel with the option to "Run rules on folder contents" - I have AppleScripts that automatically process auto downloaded TV shows and have it set up so it will work down a folder path through all seasons of a show. Works fine.

November 07, 2011 12:41
User photo
Niklas Karlsson

I´m having some strange issues with the built in script. Most of my files in the watched folder gets "processed" but this morning both The Colbert Report and Daily show wouldnt get added. The recent episode of Greys Anatomy worked though. My computer is never put to sleep at nights (only monitor goes to sleep).

I still cant get a script to work for subfolders. Any guides using Hazel perhaps or what would you guys recommend?

 

/Niklas

January 06, 2012 12:17
User photo
Adam Schoales

Obviously I agree that this would be great to see included officially (even better the ability to build more advanced scripts in the app) however I don't mind "hacking" it myself to make it work.

That said, both the links to the original site and the subsequent drop-box link don't work...

I'm simply looking for a script to watch a folder, and bring the content into iFlicks automatically. I dont want it to nescicarilly run automatically since I may want to make some tag changes (though obviously I could do that after the fact if need be).

Thanks in advanced all!

January 17, 2012 05:36
User photo
Tim Campbell

I'm using the original script built into iflicks for mkv's in hd. I added it to my downloads folder and it works with sub-folders really well. Just had to change the settings in my nzb program to not download the sample file. The only thing I am occasionally having a problem with is that the file that pops up in iTunes plays like normal, then at a certain point the video stops and the audio continues. the original mkv was fine when i played it. I deleted it out of iTunes and put the file in to iflicks my self and it works fine. I then tried moving the file back into the download script folder to make it automatically go and it was fine again.
There doesn't seem to be much of a pattern. Though I would love it to stop. 

I need a fix for this problem, any help would be great fully appreciated.    Thanks

thanks 

 

January 25, 2012 14:20
User photo
Jason

Enough with the scripting - I'd like to have iFlicks watch one or more folders for files to process, and then be able to use the rules to specify how I wanted them to be processed (e.g., MKV:delete source:AppleTV2:iTunes, AVI:delete source:Universal:iTunes, M4V::Compatible:iTunes). 

January 29, 2012 11:46