In attempting to automate some things with HandBrake, I've started using bash wrappers to handle passing the proper sets of parameters for the type of encode desired.
One hiccup I've noticed is that some DVDs have their directories upper case, while others have them as lower case.
My solution, after doing some searching online for how to use the bash built-in tests is as follows.
#!/bin/bash
if [ -d "/media/dvd/VIDEO_TS" ]; then
location="/media/dvd/VIDEO_TS";
else
location="/media/dvd/video_ts";
fi
HandBrakeCLI -i $location -t 0
No comments:
Post a Comment