WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> Batch encoding of video files.
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1283495626

Message started by Kai on Sep 3rd, 2010 at 8:33am

Title: Batch encoding of video files.
Post by Kai on Sep 3rd, 2010 at 8:33am
Hi there, I have an interesting problem. WatchDirectory is awesome and does _almost_ everything I need for automating a process I'm perfroming.

Basically I have a directory that video files are uploaded to regularly via FTP. I then (when the files finish uploading) want to encode the files into a high quality and low quality mp4 for web delivery.

I'm using the command line version of handbrake to encode the files with Watchdirectroy. The problem is that if multiple clients upload videos at the same time (It can sometimes be up to 10 at once) then watchdirectory opens up 10 encoding windows and my encoder box melts. Ideally I want watchdirectory to be able to see that a new file has appeared ion a directory and add it to a Queue to be processed by the selected command line. Not executed immediately.

That was files could keep getting added to the FTP directory and would just slot into the end of the encoding queue to be processed as watchdirectory detected the finishing of the previous encoding session. (command line exits)

Is something like this possible? I can't see any way of easily doing it with any of the existing plugins. The Execute any command plugin suffers from the problem I detailed above of opening 10 handbrake encoding sessions, one for each file.

Any help you could provide would be awesome. If I can use this for my task I will slap down the $$$ for it immediately!

Title: Re: Batch encoding of video files.
Post by Gert on Sep 3rd, 2010 at 8:43am
Hello Kai,

If you set the option to "wait for the program to exit" ( http://www.watchdirectory.net/wdhelp/plugins/wdopAutoLaunch.html ), only one instance of your handbrake program will be active at any time.

Did you try that option?

Title: Re: Batch encoding of video files.
Post by Kai on Sep 3rd, 2010 at 8:50am
Hrmm I did try that option but after 60 seconds WatchDirectory killed my Handbrake encode and some of them take up to 50 min. I assumed it was an option that killed a stuck process.

So If I turn this on then set the seconds to be some arbitrarily huge number than it should perform the encodes one at a time and let them fully finish?

Title: Re: Batch encoding of video files.
Post by Gert on Sep 3rd, 2010 at 8:54am
Correct.

I will make sure a future release of this task will also have an option to "[ ] Wait Forever". For the time being if you enter 7200 seconds (2 hours), it should work fine.

Title: Re: Batch encoding of video files.
Post by Kai on Sep 3rd, 2010 at 9:04am
Cool, I'm trying it now and it seems to be working. Will update you if it all goes smoothly.

It's a pretty damn awesome app! I tried some of the other watch folder apps out there and this one blows them all out of the water. :)

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.