Go to file
Paco Hope 67b14e5dcb initial commit 2021-11-01 22:51:42 -04:00
LICENSE.md initial commit 2021-11-01 22:51:42 -04:00
README.md initial commit 2021-11-01 22:51:42 -04:00
handbrake-batch.sh initial commit 2021-11-01 22:51:42 -04:00

README.md

Video Utility scripts

For now there's just the one script, handbrake-batch.sh.

handbrake-batch.sh

It recursively decends from a starting point, finding all files of a certain name pattern. It handles names that have spaces in them. I suspect it might not handle files that have lots of dots. (e.g., party.1.mov and party.2.mov)

When you run it, it will find every video file that matches the name, and run a standard HandBrakeCLI command to convert it. It creates a mirror of the directory hierarchy in a new place, and puts the new video file there. It makes whatever directories are necessary. It will also set the creation and modification times to be the same as the original source file.

I've tested it on MacOS. Probably runs with minimal modification on Linux.