This commit is contained in:
2024-07-16 13:00:13 -05:00
parent 17ac1e43b9
commit 0d21a0f5cc
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@@ -14,4 +14,5 @@ x264
x265*
googletest
vpx
hdr10plus
.last_opts

View File

@@ -11,8 +11,8 @@ BUILDER_DIR="$(dirname "$SCRIPT_DIR")"
usage() {
echo "encode -i input_file [-p -c -s true/false] [-g NUM] [output_file_name] [-I] [-U]"
echo -e "\t-p print the command instead of executing it [optional]"
echo -e "\t-c use cropdetect [default=true, optional]"
echo -e "\t-s use same container as input [default is always mkv, optional]"
echo -e "\t-c use cropdetect [default=false, optional]"
echo -e "\t-s use same container as input [default=false, always mkv, optional]"
echo -e "\t-g set film grain for encode [optional]"
echo -e "\toutput_file_name if not set, will create at $HOME/ [optional]"
echo -e "\t-I Install this as /usr/local/bin/encode [optional]"
@@ -149,7 +149,7 @@ MAX_OPT=$(( NUM_OPTS + 1 ))
test "$#" -lt $MIN_OPT && echo "not enough arguments" && usage && exit 1
test "$#" -gt $MAX_OPT && echo "too many arguments" && usage && exit 1
# default crop value
CROP='true'
CROP='false'
while getopts "$OPTS" flag; do
case "${flag}" in
I)