WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Batch encoding of video files. (Read 3085 times)
Kai
YaBB Newbies
*
Offline



Posts: 3
Batch encoding of video files.
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!
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2238
The Netherlands
Re: Batch encoding of video files.
Reply #1 - 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?
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Kai
YaBB Newbies
*
Offline



Posts: 3
Re: Batch encoding of video files.
Reply #2 - 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?
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2238
The Netherlands
Re: Batch encoding of video files.
Reply #3 - 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.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Kai
YaBB Newbies
*
Offline



Posts: 3
Re: Batch encoding of video files.
Reply #4 - 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. Smiley
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1