|
|
Scripting a Watch Folder for Handbrake
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
This is way above my skill level. I’m expecting pain.
Just installed fswatch. The documentation is words words words.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
Just occurred to me this might be more easily accomplished with Python.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
Just realized this is way more complicated than I thought.
Monitoring a Mac’s file system doesn’t seem too hard, but the folder I want watched is on a network volume. What I actually need to do is monitor the file system on my server.
Back to square one. Probably for the best, though. It’s made me consider other options, and I think there’s one staring me right in the face which I should have been doing right from the start. I’ll report back.
|
|
|
|
|
|
|
|
|
Administrator
Join Date: Jun 2000
Location: California
Status:
Offline
|
|
Must it notice immediately? You could script it once-a-minute, to pull the catalog of that folder. Parse for suitable file-types, and trigger Handbrake as needed. Might have to compare against the output folder, so you don't trigger for a file already done or in processing.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
Right off the bat, that’s a much better and simpler way to do it than I was imagining.
However, it looks like the software I’m using to manage renders can be set to give an alert when a render has finished.
As a nice touch on the part of the developer, the alert itself is a user-editable terminal command. Should be easy to have that trigger Handbrake.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
That surprisingly worked.
Surprisingly, because everything else I’ve tried over the last three days didn’t.
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Apr 2007
Location: Iowa, how long can this be? Does it really ruin the left column spacing?
Status:
Offline
|
|
Is this something that Automator can help with? I remember setting it up back in the day to monitor my Dropbox photo upload folder, then triggering a copy and resize of any photos as they're added.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
I’ve avoided Automator because I’m assuming it’s only a matter of time before Apple does it dirty like they did AppleScript.
One of the issues with that method, or almost any method really, is I’d need to write logic (no… not Logic you fuckhead phone) to stop it from passing an unfinished render to Handbrake. Since the method I used is triggered internally by a “render complete” alert, it eliminates the need to build in a cooldown period to make sure the original file is no longer being modified.
(
Last edited by subego; Apr 11, 2023 at 02:58 PM.
)
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
Aaaaaand… just realized the company who makes my render management software decided to stop development. So, even though what I have now works, it’s only a matter of time before something breaks. As it stands now, it’s already forcing me to stay with After Effects 2022.
Safest plan is to eject this part of the workflow entirely and see if I can get distributed rendering and h264 encoding functionality natively.
|
|
|
|
|
|
|
|
|
Administrator
Join Date: Jun 2000
Location: California
Status:
Offline
|
|
... or remain with the production OS version you're using, so nothing breaks at all. Worry about an altered render path when it's time to upgrade. Until then, keep the render farm disconnected from the internet for security. In a decade, when you need to upgrade your solution, you'll have more options to choose from. Or a competing product that can replace the abandoned one.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
I’d actually be tempted to do that, but too many subscription based services which won’t work unless they can periodically phone home.
|
|
|
|
|
|
|
|
|
Administrator
Join Date: Jun 2000
Location: California
Status:
Offline
|
|
SaS - ugh. I'd rebuild a render farm just to get rid of all that.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
Originally Posted by reader50
SaS - ugh. I'd rebuild a render farm just to get rid of all that.
Actually, this has gotten me thinking I might be able to nuke one of my ridiculously overpriced filter suite subscriptions, so thank you for prompting the idea!
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
Originally Posted by reader50
keep the render farm disconnected from the internet for security.
On the subject of security risks, the revised workflow is going to force me to enable ssh.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: Chicago, Bang! Bang!
Status:
Offline
|
|
Every python and shell script I’ve needed or thought I’d need to manage my render farm has fallen by the wayside. Whole thing runs on a simple macro now.
Silver lining is I get to disable ssh.
(
Last edited by subego; May 14, 2023 at 05:21 PM.
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|