sparuj Posted October 15, 2020 Posted October 15, 2020 Greetings, I'm currently encoding my clips and I have a folder for the encoding process called "in_progress". My question is, is there a way to move the file to a different folder "complete" after the encoding process from HandBrake is complete? I'm guessing that there should be a script that constrantly checks if the file is not in use and after it's not in use anymore to move it to the "complete" folder. I would appreciate any tips or advice on how to do that. Cheers!
sparuj Posted October 15, 2020 Author Posted October 15, 2020 Please excsue me for the title mistake. I meant "Move to another folder", not rename.
sparuj Posted October 15, 2020 Author Posted October 15, 2020 Okay... I've found a way to do that too. Please excuse me for spaming like this, but it seems that I don't have the options to delete or edit my comments.
JockoDundee Posted October 15, 2020 Posted October 15, 2020 Have you considered the “Send File To” option of handbrake? It gets triggered on completion and should be enough to let you execute a command/script to move the file. Code hard, but don’t hard code...
sparuj Posted October 15, 2020 Author Posted October 15, 2020 Thank you for the advice, but I've found a way around it. Really appreciate your time in order to help me.
JockoDundee Posted October 15, 2020 Posted October 15, 2020 Whaddya do? Code hard, but don’t hard code...
sparuj Posted October 15, 2020 Author Posted October 15, 2020 I used this script and edited it to my needs.
JockoDundee Posted October 15, 2020 Posted October 15, 2020 4 hours ago, sparuj said: I used this script and edited it to my needs Interesting. So you are going to poll/look for the handbrake process to end before moving your file(s)? If it’s like that you could maybe just RunWait the handbrake process yourself (from your own script) and then move the file after it completes. Might be a little cleaner. Good luck! Code hard, but don’t hard code...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now