Add post-auto-rip hook
Would it be possible to add a hook script (similar to the handbrake container) that runs after the auto-ripper has completed?
My use case is:
- Rip a DVD or Blu-Ray using MakeMKV
- Use handbrake to transcode the MKV file
When I was using my own scripts to run this process, I would have MakeMKV write the output file to the local disk, and then copy the complete file over to a NAS before I ran handbrake. I used this process because the performance of MakeMKV was a lot better writing to the local disk than it was to a NAS, and because I wanted to keep as much local space free as possible.
Now that I'm using the docker containers with the auto-ripper and automated transcode, I'm letting the handbrake container watch the (local) output directory of the MakeMKV container, and just transcoding the local file. While I admit that this is probably good enough, it would be nice to have the option to run a post-rip hook to move the file over to my NAS, and have handbrake pick it up from there.
Thanks.
This would be ideal, and pass it on the "watch directory" of jlesage HandBrake Docker image!
My workaround was to run a cronjob script every x minutes to detect if makemkvcon was running and if there were any files in a directory. If there were files in the directory but makemkvcon was running exit; if there were files in the directory and makemkvcon was NOT running (or a lockfile? was not present) then move the title*.mkv files to the HandBrake watch directory...
...what do you think?
Would love to have something like that as well, simply to notify me when transocding is finished, since auto-eject (or any eject) doesn't work on Synology (#84).